VNC-151 Refine container build script to fix matching logic and add debug run option

This commit is contained in:
El 2026-02-19 06:28:52 +00:00
parent a0df17011c
commit 02a8df41e3
No known key found for this signature in database
GPG key ID: EB3F4C9EA29CDE59

View file

@ -18,7 +18,7 @@ cp -r kasmweb/dist "$current_dir"/builder/www
for file in "$script_dir"/dockerfile.*.build; do
if [[ "$file" == *deb* ]] || [[ "$file" == *apk* ]] || [[ "$file" == *rpm* ]] || [[ "$file" == *www* ]]; then
if [[ "$file" == *.deb.build ]] || [[ "$file" == *.apk.build ]] || [[ "$file" == *.rpm.build ]] || [[ "$file" == *www* ]]; then
continue
fi
@ -52,6 +52,8 @@ for file in "$script_dir"/dockerfile.*.build; do
echo "Container for image '$image_name' "
if [ $exit_code -ne 0 ]; then
docker run -it --entrypoint /bin/bash -u root -v "$current_dir/builder/build":/build --device=/dev/dri:/dev/dri "$image_name"
echo "exited with error (exit code $exit_code)."
break
else