Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions placeos
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ Arguments:
--domain DOMAIN Domain to configure. [default: localhost:8443]
--application APP Application to configure. [default: backoffice]
--analytics Set-up analytics stack, including MQTT & InfluxDB & Chronograf
--no-pull Skip pulling Docker images (for local development).
-v, --verbose Write logs to STDOUT in addition to the log file.
-h, --help Display this message.
EOF
Expand All @@ -174,6 +175,7 @@ start_environment() (
hard_reset=false
enable_analytics=false
enable_lgtm=false
no_pull=false
email_argument=""
password_argument=""
domain_argument=""
Expand Down Expand Up @@ -215,6 +217,9 @@ start_environment() (
--lgtm)
enable_lgtm=true
;;
--no-pull)
no_pull=true
;;
-v | --verbose)
VERBOSE="true"
;;
Expand Down Expand Up @@ -310,11 +315,12 @@ start_environment() (
"Generating secrets..." \
"Failed to generate secrets."


run_or_abort \
"docker compose --env-file='${EMPTY_FILE}' --project-directory='${base_path}' ${PROFILES} pull --quiet" \
"Pulling images..." \
"Failed to pull images."
if [ ${no_pull} == "false" ]; then
run_or_abort \
"docker compose --env-file='${EMPTY_FILE}' --project-directory='${base_path}' ${PROFILES} pull --quiet" \
"Pulling images..." \
"Failed to pull images."
fi

[ ${hard_reset} == "true" ] && hard_reset

Expand Down