This commit is contained in:
+27
-25
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# script/setup: Set up container for the first time after cloning
|
||||
|
||||
@@ -6,6 +6,8 @@ set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
source version
|
||||
|
||||
script/bootstrap
|
||||
|
||||
#script/cibuild
|
||||
@@ -91,8 +93,8 @@ else
|
||||
fi
|
||||
|
||||
echo "==> Setting up container kontor-spring"
|
||||
if podman image exists localhost/kontor-spring:0.3.0; then
|
||||
echo " => Image localhost/kontor-spring:0.3.0 available"
|
||||
if podman image exists localhost/kontor-spring:i$kontorVersion; then
|
||||
echo " => Image localhost/kontor-spring:$kontorVersion available"
|
||||
fi
|
||||
if podman container exists kontor-spring; then
|
||||
if podman ps -q --filter "name=kontor-spring"; then
|
||||
@@ -105,12 +107,12 @@ else
|
||||
--name kontor-spring \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-spring.service" \
|
||||
localhost/kontor-spring:0.3.0
|
||||
localhost/kontor-spring:$kontorVersion
|
||||
fi
|
||||
|
||||
echo "==> Setting up container kontor-api"
|
||||
if podman image exists localhost/kontor-api:0.3.0; then
|
||||
echo " => Image localhost/kontor-api:0.3.0 available"
|
||||
if podman image exists localhost/kontor-api:$kontorVersion; then
|
||||
echo " => Image localhost/kontor-api:$kontorVersion available"
|
||||
fi
|
||||
if podman container exists kontor-api; then
|
||||
if podman ps -q --filter "name=kontor-api"; then
|
||||
@@ -127,12 +129,12 @@ else
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
--health-retries=10 \
|
||||
localhost/kontor-api:0.3.0
|
||||
localhost/kontor-api:$kontorVersion
|
||||
fi
|
||||
|
||||
echo "==> Setting up container kontor-quarkus"
|
||||
if podman image exists localhost/kontor-quarkus:0.3.0; then
|
||||
echo " => Image localhost/kontor-quarkus:0.3.0 available"
|
||||
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
|
||||
@@ -149,12 +151,12 @@ else
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
--health-retries=10 \
|
||||
localhost/kontor-quarkus:0.3.0
|
||||
localhost/kontor-quarkus:$kontorVersion
|
||||
fi
|
||||
|
||||
echo "==> Setting up container kontor-echo"
|
||||
if podman image exists localhost/kontor-echo:0.3.0; then
|
||||
echo " => Image localhost/kontor-echo:0.3.0 available"
|
||||
if podman image exists localhost/kontor-echo:$kontorVersion; then
|
||||
echo " => Image localhost/kontor-echo:$kontorVersion available"
|
||||
fi
|
||||
if podman container exists kontor-echo; then
|
||||
if podman ps -q --filter "name=kontor-echo"; then
|
||||
@@ -171,12 +173,12 @@ else
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
--health-retries=10 \
|
||||
localhost/kontor-echo:0.3.0
|
||||
localhost/kontor-echo:$kontorVersion
|
||||
fi
|
||||
|
||||
echo "==> Setting up container kontor-fiber"
|
||||
if podman image exists localhost/kontor-fiber:0.3.0; then
|
||||
echo " => Image localhost/kontor-fiber:0.3.0 available"
|
||||
if podman image exists localhost/kontor-fiber:$kontorVersion; then
|
||||
echo " => Image localhost/kontor-fiber:$kontorVersion available"
|
||||
fi
|
||||
if podman container exists kontor-fiber; then
|
||||
if podman ps -q --filter "name=kontor-fiber"; then
|
||||
@@ -193,12 +195,12 @@ else
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
--health-retries=10 \
|
||||
localhost/kontor-fiber:0.3.0
|
||||
localhost/kontor-fiber:$kontorVersion
|
||||
fi
|
||||
|
||||
echo "==> Setting up container kontor-javalin"
|
||||
if podman image exists localhost/kontor-javalin:0.3.0; then
|
||||
echo " => Image localhost/kontor-javalin:0.3.0 available"
|
||||
if podman image exists localhost/kontor-javalin:$kontorVersion; then
|
||||
echo " => Image localhost/kontor-javalin:$kontorVersion available"
|
||||
fi
|
||||
if podman container exists kontor-javalin; then
|
||||
if podman ps -q --filter "name=kontor-javalin"; then
|
||||
@@ -215,12 +217,12 @@ else
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
--health-retries=10 \
|
||||
localhost/kontor-javalin:0.3.0
|
||||
localhost/kontor-javalin:$kontorVersion
|
||||
fi
|
||||
|
||||
echo "==> Setting up container kontor-vue"
|
||||
if podman image exists localhost/kontor-vue:0.3.0; then
|
||||
echo " => Image localhost/kontor-vue:0.3.0 available"
|
||||
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
|
||||
@@ -233,12 +235,12 @@ else
|
||||
--name kontor-vue \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-vue.service" \
|
||||
localhost/kontor-vue:0.3.0
|
||||
localhost/kontor-vue:$kontorVersion
|
||||
fi
|
||||
|
||||
echo "==> Setting up container kontor-angular"
|
||||
if podman image exists localhost/kontor-angular:0.3.0; then
|
||||
echo " => Image localhost/kontor-angular:0.3.0 available"
|
||||
if podman image exists localhost/kontor-angular:$kontorVersion; then
|
||||
echo " => Image localhost/kontor-angular:$kontorVersion available"
|
||||
fi
|
||||
if podman container exists kontor-angular; then
|
||||
if podman ps -q --filter "name=kontor-angular"; then
|
||||
@@ -251,6 +253,6 @@ else
|
||||
--name kontor-angular \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-angular.service" \
|
||||
localhost/kontor-angular:0.3.0
|
||||
localhost/kontor-angular:$kontorVersion
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user