Skip to content

Commit aeb7119

Browse files
committed
Use environment variables when connecting to hub.
Enable docker orchestration tools to set the variables and control where the hub is running. Closes SeleniumHQ#12
1 parent 8dc8502 commit aeb7119

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

NodeBase/entry_point.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function shutdown {
2121
xvfb-run --server-args="$DISPLAY -screen 0 $GEOMETRY -ac +extension RANDR" \
2222
java -jar /opt/selenium/selenium-server-standalone.jar \
2323
-role node \
24-
-hub http://hub:4444/grid/register \
24+
-hub http://$HUB_PORT_4444_TCP_ADDR:$HUB_PORT_4444_TCP_PORT/grid/register \
2525
-nodeConfig /opt/selenium/config.json &
2626
NODE_PID=$!
2727

0 commit comments

Comments
 (0)