]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change builder always create container
authorBastian Dehn <hhaalo@arcor.de>
Thu, 26 Dec 2024 08:52:33 +0000 (09:52 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Thu, 26 Dec 2024 08:52:33 +0000 (09:52 +0100)
builder/build-in-container

index 79b40cfe6d0791331666eee6b465348823fcc67e..de8e9b69ec31b62cba51e7d0c2aa2165c404107e 100755 (executable)
@@ -2,16 +2,10 @@
 
 main()
 {
-       imageExists=$(podman image ls | grep sane-kds-s2000w-net-builder-bookworm)
-       if [ -z "$imageExists" ]; then
-               podman build -f builder/Containerfile-bookworm -t sane-kds-s2000w-net-builder-bookworm
-       fi
+       podman build -f builder/Containerfile-bookworm -t sane-kds-s2000w-net-builder-bookworm
        podman run -tiv ./:/app --rm sane-kds-s2000w-net-builder-bookworm
 
-       imageExists=$(podman image ls | grep sane-kds-s2000w-net-builder-trixie)
-       if [ -z "$imageExists" ]; then
-               podman build -f builder/Containerfile-trixie -t sane-kds-s2000w-net-builder-trixie
-       fi
+       podman build -f builder/Containerfile-trixie -t sane-kds-s2000w-net-builder-trixie
        podman run -tiv ./:/app --rm sane-kds-s2000w-net-builder-trixie
 }