From 2a97960d0c4217025c15fc03efd1ce7d3748c4c1 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 21 Jun 2024 22:33:04 +0200 Subject: build-all-with-docker: wait for containers --- build-all-with-docker | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'build-all-with-docker') 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 -- cgit v1.2.3-70-g09d2