Skip to content

Commit

Permalink
Allow to change hub port
Browse files Browse the repository at this point in the history
Because it was not possible to change hub port
now it can be changed by GRID_HUB_PORT env variable
  • Loading branch information
g.kiszczak authored and g.kiszczak committed Oct 12, 2017
1 parent 7bcba0b commit 32eb00a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Hub/Dockerfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ ENV GRID_BROWSER_TIMEOUT 0
ENV GRID_TIMEOUT 30
# Debug
ENV GRID_DEBUG false
# As integer, maps to "port"
ENV GRID_HUB_PORT 4444

COPY generate_config \
entry_point.sh \
Expand Down
2 changes: 1 addition & 1 deletion Hub/generate_config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cat <<_EOF
{
"host": null,
"port": 4444,
"port": $GRID_HUB_PORT,
"role": "hub",
"maxSession": $GRID_MAX_SESSION,
"newSessionWaitTimeout": $GRID_NEW_SESSION_WAIT_TIMEOUT,
Expand Down

0 comments on commit 32eb00a

Please sign in to comment.