File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
tests/e2e/testhelpers/setup Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ services:
20
20
- API_KEYS=${API_KEYS}
21
21
- TARGET_POLL_DURATION=${TARGET_POLL_DURATION}
22
22
- GENERATE_OFFLINE_CONFIG=${GENERATE_OFFLINE_CONFIG}
23
+ - PORT=${PORT}
23
24
build :
24
25
context : ./
25
26
dockerfile : ./Dockerfile
Original file line number Diff line number Diff line change @@ -31,4 +31,16 @@ if [ -v target ]; then
31
31
echo " * ${target} ,over_http" > /etc/pushpin/routes
32
32
fi
33
33
34
+ # Update routes file to use $PORT if set
35
+ if [ -w /etc/pushpin/routes ]; then
36
+ if [ -n " ${PORT} " ]; then
37
+ echo " Setting internal relay proxy port to ${PORT} "
38
+ sed -i \
39
+ -e " s/8000/${PORT} /g" \
40
+ /etc/pushpin/routes
41
+ fi
42
+ else
43
+ echo " docker-entrypoint.sh: unable to write to /etc/pushpin/routes, readonly"
44
+ fi
45
+
34
46
exec " $@ "
Original file line number Diff line number Diff line change @@ -36,7 +36,8 @@ ORG_IDENTIFIER=%s
36
36
ADMIN_SERVICE_TOKEN=%s
37
37
API_KEYS=%s
38
38
AUTH_SECRET=my_secret
39
- REDIS_ADDRESS=redis:6379`
39
+ REDIS_ADDRESS=redis:6379
40
+ PORT=9000`
40
41
41
42
var generateOfflineConfigTemplate = `ACCOUNT_IDENTIFIER=%s
42
43
ORG_IDENTIFIER=%s
You can’t perform that action at this time.
0 commit comments