File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,14 @@ if [ ! -z "$SE_OPTS" ]; then
24
24
echo " Appending Selenium options: ${SE_OPTS} "
25
25
fi
26
26
27
+ if [ ! -z " $SE_NODE_GRID_URL " ]; then
28
+ echo " Appending Grid url: ${SE_NODE_GRID_URL} "
29
+ SE_GRID_URL=" --grid-url ${SE_NODE_GRID_URL} "
30
+ fi
31
+
27
32
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server.jar node \
28
33
--publish-events tcp://" ${SE_EVENT_BUS_HOST} " :${SE_EVENT_BUS_PUBLISH_PORT} \
29
34
--subscribe-events tcp://" ${SE_EVENT_BUS_HOST} " :${SE_EVENT_BUS_SUBSCRIBE_PORT} \
30
35
--detect-drivers false \
31
36
--config /opt/bin/config.toml \
32
- ${SE_OPTS}
37
+ ${SE_GRID_URL} ${ SE_OPTS}
Original file line number Diff line number Diff line change @@ -11,6 +11,12 @@ relax-checks = ${SE_RELAX_CHECKS}
11
11
" > /opt/selenium/config.toml
12
12
13
13
echo " [node]" >> /opt/selenium/config.toml
14
+ # String, Url where the Grid can be reached
15
+ if [[ -z " ${SE_NODE_GRID_URL} " ]]; then
16
+ echo " Setting up SE_NODE_GRID_URL..."
17
+ else
18
+ echo " grid-url = \" ${SE_NODE_GRID_URL} \" " >> /opt/selenium/config.toml
19
+ fi
14
20
echo " session-timeout = \" ${SE_NODE_SESSION_TIMEOUT} \" " >> /opt/selenium/config.toml
15
21
echo " override-max-sessions = ${SE_NODE_OVERRIDE_MAX_SESSIONS} " >> /opt/selenium/config.toml
16
22
echo " detect-drivers = false" >> /opt/selenium/config.toml
Original file line number Diff line number Diff line change @@ -9,8 +9,13 @@ if [ ! -z "$SE_OPTS" ]; then
9
9
echo " Appending Selenium options: ${SE_OPTS} "
10
10
fi
11
11
12
+ if [ ! -z " $SE_NODE_GRID_URL " ]; then
13
+ echo " Appending Grid url: ${SE_NODE_GRID_URL} "
14
+ SE_GRID_URL=" --grid-url ${SE_NODE_GRID_URL} "
15
+ fi
16
+
12
17
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server.jar standalone \
13
18
--relax-checks ${SE_RELAX_CHECKS} \
14
19
--detect-drivers false \
15
20
--config /opt/bin/config.toml \
16
- ${SE_OPTS}
21
+ ${SE_GRID_URL} ${ SE_OPTS}
You can’t perform that action at this time.
0 commit comments