Skip to content

Commit 32eb00a

Browse files
g.kiszczakg.kiszczak
authored andcommitted
Allow to change hub port
Because it was not possible to change hub port now it can be changed by GRID_HUB_PORT env variable
1 parent 7bcba0b commit 32eb00a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Hub/Dockerfile.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ ENV GRID_BROWSER_TIMEOUT 0
2222
ENV GRID_TIMEOUT 30
2323
# Debug
2424
ENV GRID_DEBUG false
25+
# As integer, maps to "port"
26+
ENV GRID_HUB_PORT 4444
2527

2628
COPY generate_config \
2729
entry_point.sh \

Hub/generate_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
cat <<_EOF
44
{
55
"host": null,
6-
"port": 4444,
6+
"port": $GRID_HUB_PORT,
77
"role": "hub",
88
"maxSession": $GRID_MAX_SESSION,
99
"newSessionWaitTimeout": $GRID_NEW_SESSION_WAIT_TIMEOUT,

0 commit comments

Comments
 (0)