From b32e8fee3d2aafb4c87c3bb4a69adb74bdbd66bc Mon Sep 17 00:00:00 2001 From: Thomas Peetz Date: Thu, 29 Jan 2026 20:30:38 +0100 Subject: [PATCH] add building of images when images not available (cherry picked from commit eb7f725994c99bece3185869204aac206d6578b2) --- script/setup | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/script/setup b/script/setup index 634b7f2..fef8094 100755 --- a/script/setup +++ b/script/setup @@ -83,6 +83,12 @@ 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" +else + echo " => Baue Image localhost/kontor-spring:0.3.0" + buildah build -t kontor-spring:0.3.0 kontor-spring +fi if podman container exists kontor-spring; then if podman ps -q --filter "name=kontor-spring"; then echo " => kontor-spring is running" @@ -97,6 +103,12 @@ else 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" +else + echo " => Baue Image localhost/kontor-api:0.3.0" + buildah build -t kontor-api:0.3.0 kontor-api +fi if podman container exists kontor-api; then if podman ps -q --filter "name=kontor-api"; then echo " => kontor-api is running" @@ -116,6 +128,12 @@ else 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" +else + echo " => Baue Image localhost/kontor-quarkus:0.3.0" + buildah build -t kontor-quarkus:0.3.0 kontor-quarkus +fi if podman container exists kontor-quarkus; then if podman ps -q --filter "name=kontor-quarkus"; then echo " => kontor-quarkus is running"