diff --git a/docker/build b/docker/build index f3966951f8b..95cfbc43dec 100755 --- a/docker/build +++ b/docker/build @@ -4,5 +4,9 @@ set -e # This script builds the Docker container, seeds the app with sample data, and logs the screen output. DATE=`date +%Y%m%d-%H%M%S-%3N` -docker/build-log 2>&1 | tee log/build-$DATE.log +if [ -n "$1" ]; then + docker/build-log $1 2>&1 | tee log/build-$DATE.log +else + docker/build-log 2>&1 | tee log/build-$DATE.log +fi docker/seed 2>&1 | tee log/seed-$DATE.log diff --git a/docker/build-log b/docker/build-log index d2cbc2fa759..5a30056ac8b 100755 --- a/docker/build-log +++ b/docker/build-log @@ -6,7 +6,12 @@ wait echo '###########################' echo 'BEGIN: docker compose build' echo '###########################' -docker compose build # Set up the Docker containers +if [ -n "$1" ]; then + docker compose build $1 . # Set up the Docker containers +else + docker compose build # Set up the Docker containers +fi +docker compose build $1 # Set up the Docker containers echo '##############################' echo 'FINISHED: docker compose build' echo '##############################'