File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ Arguments:
164164 --domain DOMAIN Domain to configure. [default: localhost:8443]
165165 --application APP Application to configure. [default: backoffice]
166166 --analytics Set-up analytics stack, including MQTT & InfluxDB & Chronograf
167+ --no-pull Skip pulling Docker images (for local development).
167168 -v, --verbose Write logs to STDOUT in addition to the log file.
168169 -h, --help Display this message.
169170EOF
@@ -174,6 +175,7 @@ start_environment() (
174175 hard_reset=false
175176 enable_analytics=false
176177 enable_lgtm=false
178+ no_pull=false
177179 email_argument=" "
178180 password_argument=" "
179181 domain_argument=" "
@@ -215,6 +217,9 @@ start_environment() (
215217 --lgtm)
216218 enable_lgtm=true
217219 ;;
220+ --no-pull)
221+ no_pull=true
222+ ;;
218223 -v | --verbose)
219224 VERBOSE=" true"
220225 ;;
@@ -310,11 +315,12 @@ start_environment() (
310315 " Generating secrets..." \
311316 " Failed to generate secrets."
312317
313-
314- run_or_abort \
315- " docker compose --env-file='${EMPTY_FILE} ' --project-directory='${base_path} ' ${PROFILES} pull --quiet" \
316- " Pulling images..." \
317- " Failed to pull images."
318+ if [ ${no_pull} == " false" ]; then
319+ run_or_abort \
320+ " docker compose --env-file='${EMPTY_FILE} ' --project-directory='${base_path} ' ${PROFILES} pull --quiet" \
321+ " Pulling images..." \
322+ " Failed to pull images."
323+ fi
318324
319325 [ ${hard_reset} == " true" ] && hard_reset
320326
You can’t perform that action at this time.
0 commit comments