aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2023-07-12 13:01:58 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2023-07-12 13:01:58 -0700
commitf06bc1ea46909f74196a414d57c1cdcefcc94085 (patch)
tree376eeb82bbf17d7f8e4ce5f34e196d81478df73b
parentdownloads: try to provide shortcuts to download other arches (diff)
downloadwww-f06bc1ea46909f74196a414d57c1cdcefcc94085.tar.gz
www-f06bc1ea46909f74196a414d57c1cdcefcc94085.tar.bz2
www-f06bc1ea46909f74196a414d57c1cdcefcc94085.zip
bin/build: tweak build command
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xbin/build.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/build.sh b/bin/build.sh
index d879f43..70b5789 100755
--- a/bin/build.sh
+++ b/bin/build.sh
@@ -7,5 +7,12 @@ source "$(dirname "$0")"/docker-helper.inc
# https://github.com/jekyll/jekyll/issues/3747
# By including a container name, we automatically ensure that only one instance is running!
# We may need to explore extra timeouts in future
-DOCKER_RUN_OPTIONS=( --name "gentoo.sites.www.build" )
+
+# Need to be able to build one per www & wwwtest concurrently.
+name=gentoo.sites.www.build
+[[ "$0" != "${0/build-wwwtest}" ]] && name=gentoo.sites.wwwtest.build
+DOCKER_RUN_OPTIONS=( --name "$name" )
+
+# TODO: sometimes this got stuck and the previous container was stopped but not
+# removed despite the --rm. We need to detect that and clean it up in future.
docker_run_net_none jekyll build