add building of images when images not available
(cherry picked from commit eb7f725994c99bece3185869204aac206d6578b2)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user