Skip to content

Commit 2a3df56

Browse files
authored
Merge pull request SeleniumHQ#591 from gkiszczak/hub-port-allow-to-change
Allow to change hub port
2 parents 7bcba0b + 32eb00a commit 2a3df56

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)