add kontor-javalin to podman pod
This commit is contained in:
@@ -25,6 +25,7 @@ else
|
||||
-p 8300:8300 \
|
||||
-p 8400:8400 \
|
||||
-p 8500:8500 \
|
||||
-p 8600:8600 \
|
||||
-p 8900:8080 \
|
||||
-p 61616:61616 \
|
||||
-p 8161:8161 \
|
||||
@@ -101,6 +102,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-spring \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-spring.service" \
|
||||
localhost/kontor-spring:0.3.0
|
||||
fi
|
||||
|
||||
@@ -204,3 +206,28 @@ else
|
||||
localhost/kontor-fiber:0.3.0
|
||||
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"
|
||||
else
|
||||
echo " => Baue Image localhost/kontor-javalin:0.3.0"
|
||||
buildah build -t kontor-javalin:0.3.0 kontor-javalin
|
||||
fi
|
||||
|
||||
if podman container exists kontor-javalin; then
|
||||
if podman ps -q --filter "name=kontor-javalin"; then
|
||||
echo " => kontor-javalin is running"
|
||||
fi
|
||||
else
|
||||
podman run -d \
|
||||
--replace \
|
||||
--pod kontor \
|
||||
--name kontor-javalin \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-javalin.service" \
|
||||
--health-cmd='curl -f http://kontor-echo:8600/health || exit 1' \
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
--health-retries=10 \
|
||||
localhost/kontor-javalin:0.3.0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user