diff options
author | Erich Eckner <git@eckner.net> | 2024-06-21 22:33:04 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2024-06-21 22:33:04 +0200 |
commit | 2a97960d0c4217025c15fc03efd1ce7d3748c4c1 (patch) | |
tree | 0ec0311054212231e7fc6f89e0e95c2aa2bc3497 /build-all-with-docker | |
parent | e26924c826a68d43a7ff922038082e426bc2a94e (diff) | |
download | archlinuxewe-2a97960d0c4217025c15fc03efd1ce7d3748c4c1.tar.xz |
build-all-with-docker: wait for containers
Diffstat (limited to 'build-all-with-docker')
-rwxr-xr-x | build-all-with-docker | 18 |
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 |