File tree Expand file tree Collapse file tree 18 files changed +103
-61
lines changed Expand file tree Collapse file tree 18 files changed +103
-61
lines changed Original file line number Diff line number Diff line change @@ -11,21 +11,20 @@ MAINTAINER Selenium <selenium-developers@googlegroups.com>
11
11
12
12
EXPOSE 4444
13
13
14
- ENV GRID_THROW_ON_CAPABILITY_NOT_PRESENT true
15
- # In milliseconds
14
+ # As integer, maps to "maxSession"
15
+ ENV GRID_MAX_SESSION 5
16
+ # In milliseconds, maps to "newSessionWaitTimeout"
16
17
ENV GRID_NEW_SESSION_WAIT_TIMEOUT -1
18
+ # As a boolean, maps to "throwOnCapabilityNotPresent"
19
+ ENV GRID_THROW_ON_CAPABILITY_NOT_PRESENT true
20
+ # As an integer
17
21
ENV GRID_JETTY_MAX_THREADS -1
18
- # In milliseconds
19
- ENV GRID_NODE_POLLING 5000
20
- # In milliseconds
22
+ # In milliseconds, maps to "cleanUpCycle"
21
23
ENV GRID_CLEAN_UP_CYCLE 5000
22
- # In seconds
23
- ENV GRID_TIMEOUT 30
24
- # In seconds
24
+ # In seconds, maps to "browserTimeout"
25
25
ENV GRID_BROWSER_TIMEOUT 0
26
- ENV GRID_MAX_SESSION 5
27
- # In milliseconds
28
- ENV GRID_UNREGISTER_IF_STILL_DOWN_AFTER 30000
26
+ # In seconds, maps to "timeout"
27
+ ENV GRID_TIMEOUT 30
29
28
30
29
COPY generate_config /opt/selenium/generate_config
31
30
COPY entry_point.sh /opt/bin/entry_point.sh
@@ -34,5 +33,4 @@ RUN chown -R seluser /opt/selenium
34
33
35
34
USER seluser
36
35
37
- CMD ["/opt/bin/entry_point.sh" ]
38
-
36
+ CMD ["/opt/bin/entry_point.sh" ]
Original file line number Diff line number Diff line change @@ -6,21 +6,20 @@ MAINTAINER Selenium <selenium-developers@googlegroups.com>
6
6
7
7
EXPOSE 4444
8
8
9
- ENV GRID_THROW_ON_CAPABILITY_NOT_PRESENT true
10
- # In milliseconds
9
+ # As integer, maps to "maxSession"
10
+ ENV GRID_MAX_SESSION 5
11
+ # In milliseconds, maps to "newSessionWaitTimeout"
11
12
ENV GRID_NEW_SESSION_WAIT_TIMEOUT -1
13
+ # As a boolean, maps to "throwOnCapabilityNotPresent"
14
+ ENV GRID_THROW_ON_CAPABILITY_NOT_PRESENT true
15
+ # As an integer
12
16
ENV GRID_JETTY_MAX_THREADS -1
13
- # In milliseconds
14
- ENV GRID_NODE_POLLING 5000
15
- # In milliseconds
17
+ # In milliseconds, maps to "cleanUpCycle"
16
18
ENV GRID_CLEAN_UP_CYCLE 5000
17
- # In seconds
18
- ENV GRID_TIMEOUT 30
19
- # In seconds
19
+ # In seconds, maps to "browserTimeout"
20
20
ENV GRID_BROWSER_TIMEOUT 0
21
- ENV GRID_MAX_SESSION 5
22
- # In milliseconds
23
- ENV GRID_UNREGISTER_IF_STILL_DOWN_AFTER 30000
21
+ # In seconds, maps to "timeout"
22
+ ENV GRID_TIMEOUT 30
24
23
25
24
COPY generate_config /opt/selenium/generate_config
26
25
COPY entry_point.sh /opt/bin/entry_point.sh
@@ -29,5 +28,4 @@ RUN chown -R seluser /opt/selenium
29
28
30
29
USER seluser
31
30
32
- CMD ["/opt/bin/entry_point.sh"]
33
-
31
+ CMD ["/opt/bin/entry_point.sh"]
Original file line number Diff line number Diff line change @@ -26,5 +26,4 @@ java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
26
26
NODE_PID=$!
27
27
28
28
trap shutdown SIGTERM SIGINT
29
- wait $NODE_PID
30
-
29
+ wait $NODE_PID
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ echo "# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED." >> ./Dockerfile
6
6
echo " # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE" >> ./Dockerfile
7
7
echo " # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >> ./Dockerfile
8
8
echo FROM selenium/base:$VERSION >> ./Dockerfile
9
- cat ./Dockerfile.txt >> ./Dockerfile
9
+ cat ./Dockerfile.txt >> ./Dockerfile
Original file line number Diff line number Diff line change 4
4
{
5
5
\" host\" : null,
6
6
\" port\" : 4444,
7
- \" prioritizer\" : null,
7
+ \" maxSession\" : $GRID_MAX_SESSION ,
8
+ \" newSessionWaitTimeout\" : $GRID_NEW_SESSION_WAIT_TIMEOUT ,
8
9
\" capabilityMatcher\" : \" org.openqa.grid.internal.utils.DefaultCapabilityMatcher\" ,
9
10
\" throwOnCapabilityNotPresent\" : $GRID_THROW_ON_CAPABILITY_NOT_PRESENT ,
10
- \" newSessionWaitTimeout\" : $GRID_NEW_SESSION_WAIT_TIMEOUT ,
11
11
\" jettyMaxThreads\" : $GRID_JETTY_MAX_THREADS ,
12
- \" nodePolling\" : $GRID_NODE_POLLING ,
13
12
\" cleanUpCycle\" : $GRID_CLEAN_UP_CYCLE ,
14
- \" timeout\" : $GRID_TIMEOUT ,
15
13
\" browserTimeout\" : $GRID_BROWSER_TIMEOUT ,
16
- \" maxSession\" : $GRID_MAX_SESSION ,
17
- \" unregisterIfStillDownAfter\" : $GRID_UNREGISTER_IF_STILL_DOWN_AFTER
18
- }"
19
-
20
-
14
+ \" timeout\" : $GRID_TIMEOUT ,
15
+ \" prioritizer\" : null,
16
+ }"
Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ ENV DISPLAY :99.0
35
35
36
36
USER seluser
37
37
38
- CMD ["/opt/bin/entry_point.sh" ]
38
+ CMD ["/opt/bin/entry_point.sh" ]
Original file line number Diff line number Diff line change @@ -30,4 +30,4 @@ ENV DISPLAY :99.0
30
30
31
31
USER seluser
32
32
33
- CMD ["/opt/bin/entry_point.sh"]
33
+ CMD ["/opt/bin/entry_point.sh"]
Original file line number Diff line number Diff line change @@ -44,4 +44,4 @@ xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR"
44
44
NODE_PID=$!
45
45
46
46
trap shutdown SIGTERM SIGINT
47
- wait $NODE_PID
47
+ wait $NODE_PID
Original file line number Diff line number Diff line change 3
3
# https://github.com/SeleniumHQ/docker-selenium/issues/184
4
4
function get_server_num() {
5
5
echo $( echo $DISPLAY | sed -r -e ' s/([^:]+)?:([0-9]+)(\.[0-9]+)?/\2/' )
6
- }
7
-
6
+ }
Original file line number Diff line number Diff line change @@ -6,4 +6,4 @@ echo "# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED." >> ./Dockerfile
6
6
echo " # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE" >> ./Dockerfile
7
7
echo " # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >> ./Dockerfile
8
8
echo FROM selenium/base:$VERSION >> ./Dockerfile
9
- cat ./Dockerfile.txt >> ./Dockerfile
9
+ cat ./Dockerfile.txt >> ./Dockerfile
You can’t perform that action at this time.
0 commit comments