Files
kontor/script/create_container_kontor-vue
T
Thomas Peetz 0ad1969614
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
separate podman pod creation in several files
2026-09-15 13:42:09 +02:00

31 lines
736 B
Bash
Executable File

#!/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-vue"
if podman image exists localhost/kontor-vue:$kontorVersion; then
echo " => Image localhost/kontor-vue:$kontorVersion available"
fi
if podman container exists kontor-vue; then
if podman ps -q --filter "name=kontor-vue"; then
echo " => kontor-vue is running"
fi
else
podman run -d \
--replace \
--pod kontor \
--name kontor-vue \
--label "io.containers.autoupdate=local" \
--label "PODMAN_SYSTEMD_UNIT=container-kontor-vue.service" \
localhost/kontor-vue:$kontorVersion
fi