Skip to content

Commit

Permalink
Merge pull request #4 from joinhandshake/brianreath/DEVX-3
Browse files Browse the repository at this point in the history
Add --include-deps option to Docker image pulls and retries to Docker service startups
  • Loading branch information
bjreath authored Sep 10, 2020
2 parents 270dc76 + 2b637ea commit 41ce244
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions commands/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ fi

# If there are multiple services to pull, run it in parallel (although this is now the default)
if [[ ${#pull_services[@]} -gt 1 ]] ; then
pull_params+=("pull" "--parallel" "${pull_services[@]}")
pull_params+=("pull" "--parallel" "--include-deps" "${pull_services[@]}")
elif [[ ${#pull_services[@]} -eq 1 ]] ; then
pull_params+=("pull" "${pull_services[0]}")
pull_params+=("pull" "--include-deps" "${pull_services[0]}")
fi

# Pull down specified services
Expand Down Expand Up @@ -152,9 +152,9 @@ fi
if [[ "$(plugin_read_config DEPENDENCIES "true")" == "true" ]] ; then
echo "~~~ :docker: Starting dependencies"
if [[ ${#up_params[@]} -gt 0 ]] ; then
run_docker_compose "${up_params[@]}" up -d --scale "${run_service}=0" "${run_service}"
retry "$pull_retries" run_docker_compose "${up_params[@]}" up -d --scale "${run_service}=0" "${run_service}"
else
run_docker_compose up -d --scale "${run_service}=0" "${run_service}"
retry "$pull_retries" run_docker_compose up -d --scale "${run_service}=0" "${run_service}"
fi

# Sometimes docker-compose leaves unfinished ansi codes
Expand Down

0 comments on commit 41ce244

Please sign in to comment.