Skip to content

Commit

Permalink
fix(dockerfile): Fix build graph flag info
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelsJP committed Feb 2, 2024
1 parent 719067e commit 5d50c59
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ if [[ "${ors_config_location}" = *.json ]]; then
print_migration_info="true"
elif [[ "${ors_config_location}" = *.yml ]]; then
warning "Using custom yml config: ${ors_config_location}"
warning "The env variables will override configuration variables from config files."
warning "Consider switching to the new environment configuration containers"
warning "The env variables will have precedence over configuration variables from config files."
warning "Consider switching to configuring your container with environment variables."
print_migration_info="true"
else
success "Using environment variables for configuration."
success "Using only environment variables for configuration."
fi

# Build graphs is only possible when not using a config file
Expand Down Expand Up @@ -189,19 +189,19 @@ success "Populated ORS_HOME=${ORS_HOME} with the default folders: files, logs, c

# Remove existing graphs if BUILD_GRAPHS is set to true
if [ "${ors_build_graphs}" = "true" ]; then
warning "BUILD_GRAPHS is set to true. Trying to remove existing graphs."
# Warn if ors.engine.graphs_root_path is not set or empty
if [ -z "${ors_engine_graphs_root_path}" ]; then
warning "ors.engine.graphs_root_path ENV not set or empty. Skipping cleanup."
elif [ -d "${ors_engine_graphs_root_path}" ]; then
# Check the ors.engine.graphs_root_path folder exists
info "Assume graph at ${ors_engine_graphs_root_path}. Removing it."
info "Remove graph at ${ors_engine_graphs_root_path}."
rm -rf "${ors_engine_graphs_root_path:?}"/* || warning "Could not remove ${ors_engine_graphs_root_path}"
success "Removed existing graphs."
else
info "ors.engine.graphs_root_path=${ors_engine_graphs_root_path} does not exist (yet). Skipping cleanup."
fi
# Create the graphs folder again
mkdir -p "${ors_engine_graphs_root_path}" || warning "Could not create ${ors_engine_graphs_root_path}"
mkdir -p "${ors_engine_graphs_root_path}" || warning "Could not populate graph folder at ${ors_engine_graphs_root_path}"
fi

# Do the same for the example-ors-config.env
Expand Down

0 comments on commit 5d50c59

Please sign in to comment.