Skip to content

Commit d601b70

Browse files
authored
Merge pull request #86 from swisstopo/ltbam-patch-1
Update run_valhalla.sh
2 parents 83adb5b + 9762074 commit d601b70

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

conf/valhalla.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ stdout_logfile=/app/tmp_data/logs/builder.log
1616
stdout_logfile_maxbytes=10MB
1717
# stdout_logfile=/proc/1/fd/1
1818
# stdout_logfile_maxbytes=0
19-
environment=MAX_CACHE_SIZE="%(ENV_MAX_CACHE_SIZE)s",CONCURRENCY="%(ENV_CONCURRENCY)s",DATA_DIR="/app/data",TMP_DATA_DIR="/app/tmp_data"
19+
environment=https_proxy="%(ENV_HTTPS_PROXY)s",http_proxy="%(ENV_HTTP_PROXY)s",MAX_CACHE_SIZE="%(ENV_MAX_CACHE_SIZE)s",CONCURRENCY="%(ENV_CONCURRENCY)s",DATA_DIR="/app/data",TMP_DATA_DIR="/app/tmp_data"

scripts/docker-entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ elif [ "${cmd}" == 'app' ]; then
2121
sed -i \
2222
-e "s|%(ENV_MAX_CACHE_SIZE)s|${MAX_CACHE_SIZE}|g" \
2323
-e "s|%(ENV_CONCURRENCY)s|${CONCURRENCY}|g" \
24+
-e "s|%(ENV_HTTP_PROXY)s|${HTTP_PROXY}|g" \
25+
-e "s|%(ENV_HTTPS_PROXY)s|${HTTPS_PROXY}|g" \
2426
"$CONF_FILE"
2527

2628
# make sure the log directory exists for supervisor to be able to log

scripts/run_valhalla.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ log_message "INFO: https_proxy set to $https_proxy"
2525

2626
#set from .docker_env file in conf/valhalla.conf
2727
log_message "INFO: CONCURRENCY set to $CONCURRENCY"
28-
log_message "INFO: https_proxy set to $MAX_CACHE_SIZE"
28+
log_message "INFO: MAX_CACHE_SIZE set to $MAX_CACHE_SIZE"
2929

3030
# watch the .lock file every 10 secs
3131
wait_for_lock() {

0 commit comments

Comments
 (0)