separate podman pod creation in several files
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s

This commit is contained in:
Thomas Peetz
2026-09-15 13:42:09 +02:00
parent d80aefe6b2
commit 0ad1969614
17 changed files with 541 additions and 353 deletions
+34
View File
@@ -0,0 +1,34 @@
#!/bin/bash
# script/setup: Set up container for the first time after cloning
set -e
cd "$(dirname "$0")/.."
source version
script/bootstrap
echo "==> Setting up container kontor-quarkus"
if podman image exists localhost/kontor-quarkus:$kontorVersion; then
echo " => Image localhost/kontor-quarkus:$kontorVersion available"
fi
if podman container exists kontor-quarkus; then
if podman ps -q --filter "name=kontor-quarkus"; then
echo " => kontor-quarkus is running"
fi
else
podman run -d \
--replace \
--pod kontor \
--name kontor-quarkus \
--label "io.containers.autoupdate=local" \
--label "PODMAN_SYSTEMD_UNIT=container-kontor-quarkus.service" \
--health-cmd='curl -f http://kontor-quarkus:8300/q/health || exit 1' \
--health-interval=1s \
--health-timeout=5s \
--health-retries=10 \
localhost/kontor-quarkus:$kontorVersion
fi