summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2024-06-21 22:33:04 +0200
committerErich Eckner <git@eckner.net>2024-06-21 22:33:04 +0200
commit2a97960d0c4217025c15fc03efd1ce7d3748c4c1 (patch)
tree0ec0311054212231e7fc6f89e0e95c2aa2bc3497
parente26924c826a68d43a7ff922038082e426bc2a94e (diff)
downloadarchlinuxewe-2a97960d0c4217025c15fc03efd1ce7d3748c4c1.tar.xz
build-all-with-docker: wait for containers
-rwxr-xr-xbuild-all-with-docker18
1 files changed, 13 insertions, 5 deletions
diff --git a/build-all-with-docker b/build-all-with-docker
index 14d9410ab..f7dc4f9d5 100755
--- a/build-all-with-docker
+++ b/build-all-with-docker
@@ -2,9 +2,17 @@
cd "$(dirname "$(readlink -e "$0")")"
-for pkg in */PKGBUILD; do
- cd "${pkg%/PKGBUILD}"
- docker run -d -v .:/build arch-build:latest
- docker run -d -v .:/build artix-build:latest
- cd ..
+ids=$(
+ for pkg in */PKGBUILD; do
+ cd "${pkg%/PKGBUILD}"
+ docker run -d -v .:/build arch-build:latest
+ docker run -d -v .:/build artix-build:latest
+ cd ..
+ done \
+ | tee /dev/stderr
+)
+
+while docker ps --no-trunc | grep -wF "${ids}"; do
+ sleep 10
+ date
done