Skip to content

Commit 41ce244

Browse files
authored
Merge pull request #4 from joinhandshake/brianreath/DEVX-3
Add --include-deps option to Docker image pulls and retries to Docker service startups
2 parents 270dc76 + 2b637ea commit 41ce244

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

commands/run.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ fi
6262

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

7070
# Pull down specified services
@@ -152,9 +152,9 @@ fi
152152
if [[ "$(plugin_read_config DEPENDENCIES "true")" == "true" ]] ; then
153153
echo "~~~ :docker: Starting dependencies"
154154
if [[ ${#up_params[@]} -gt 0 ]] ; then
155-
run_docker_compose "${up_params[@]}" up -d --scale "${run_service}=0" "${run_service}"
155+
retry "$pull_retries" run_docker_compose "${up_params[@]}" up -d --scale "${run_service}=0" "${run_service}"
156156
else
157-
run_docker_compose up -d --scale "${run_service}=0" "${run_service}"
157+
retry "$pull_retries" run_docker_compose up -d --scale "${run_service}=0" "${run_service}"
158158
fi
159159

160160
# Sometimes docker-compose leaves unfinished ansi codes

0 commit comments

Comments
 (0)