21461: Avoids recreating the WB2 docker image if it already exists.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 20 Feb 2024 20:37:47 +0000 (17:37 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Tue, 20 Feb 2024 20:37:47 +0000 (17:37 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

services/workbench2/Makefile

index 00efa38fc9ef3c146ee70377dc32ee01ee7c5605..0b0175a77d199fd48e31bfec5d58b7b515c14092 100644 (file)
@@ -187,4 +187,5 @@ packages-in-docker: check-arvados-directory workbench2-build-image
                sh -c 'git config --global --add safe.directory /tmp/workbench2 && make packages'
 
 workbench2-build-image:
-       docker build -t workbench2-build -f docker/Dockerfile ${ARVADOS_DIRECTORY}
+       docker inspect workbench2-build &> /dev/null || \
+               docker build -t workbench2-build -f docker/Dockerfile ${ARVADOS_DIRECTORY}