Skip to content

Commit 1e5d66f

Browse files
authored
Merge pull request #91 from swisstopo/ltbam-patch-1
Set no_proxy, fix valhalla URL
2 parents 0e94c7d + 880a174 commit 1e5d66f

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/deploy-int.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
MAX_CACHE_SIZE=${{ vars.MAX_CACHE_SIZE }}
3939
HTTP_PROXY=${{ vars.HTTP_PROXY }}
4040
HTTPS_PROXY=${{ vars.HTTPS_PROXY }}
41+
NO_PROXY=${{ vars.NO_PROXY }}
4142
EOF
4243
4344
cat > .env <<EOF

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=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"
19+
environment=no_proxy="%(ENV_NO_PROXY)s",%(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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

33
cmd=${1}
44

5-
# either starts a worker or the app itself
5+
# starts the worker
6+
# access valhalla server with http://app
67
if [ "${cmd}" == 'worker' ]; then
78
# Start the worker
89
exec /app/app_venv/bin/arq routing_packager_app.worker.WorkerSettings
10+
# starts the app
11+
# access valhalla server with http://app or http://localhost
912
elif [ "${cmd}" == 'app' ]; then
1013
# SSL? Provided by .docker_env with path mapped in docker-compose.yml
1114
opts=''
@@ -23,6 +26,7 @@ elif [ "${cmd}" == 'app' ]; then
2326
-e "s|%(ENV_CONCURRENCY)s|${CONCURRENCY}|g" \
2427
-e "s|%(ENV_HTTP_PROXY)s|${HTTP_PROXY}|g" \
2528
-e "s|%(ENV_HTTPS_PROXY)s|${HTTPS_PROXY}|g" \
29+
-e "s|%(ENV_NO_PROXY)s|${NO_PROXY}|g" \
2630
"$CONF_FILE"
2731

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

scripts/run_valhalla.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ log_message() {
2222
#set from .docker_env file
2323
log_message "INFO: http_proxy set to $http_proxy"
2424
log_message "INFO: https_proxy set to $https_proxy"
25+
log_message "INFO: no_proxy set to $no_proxy"
2526

2627
#set from .docker_env file in conf/valhalla.conf
2728
log_message "INFO: CONCURRENCY set to $CONCURRENCY"

0 commit comments

Comments
 (0)