Skip to content

Commit

Permalink
Add --build opt to up.sh
Browse files Browse the repository at this point in the history
Signed-off-by: wslulciuc <[email protected]>
  • Loading branch information
wslulciuc committed May 24, 2020
1 parent 28f506e commit d4b0fe8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docker/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ set -e
project_root=$(git rev-parse --show-toplevel)
cd "${project_root}"

files="-f docker-compose.yml"
compose_files="-f docker-compose.yml"
args="-V --force-recreate"

if [ "${1}" = "--local" ]; then
files+=" -f docker-compose.local.yml"
compose_files+=" -f docker-compose.local.yml"
args+=" --build"
fi

docker-compose down && docker-compose $files up -V --force-recreate --build
docker-compose down && docker-compose $compose_files up $args

0 comments on commit d4b0fe8

Please sign in to comment.