Skip to content

Commit dbcb200

Browse files
Merge pull request #1 from addteq-andrew/2.53.1
update images to use selenium version 2.53.1 and chrome webdriver 2.22
2 parents 910b4f6 + 006a234 commit dbcb200

File tree

10 files changed

+32
-23
lines changed

10 files changed

+32
-23
lines changed

Base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN apt-get update -qqy \
2727
# Selenium
2828
#==========
2929
RUN mkdir -p /opt/selenium \
30-
&& wget --no-verbose https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.0.jar -O /opt/selenium/selenium-server-standalone.jar
30+
&& wget --no-verbose https://selenium-release.storage.googleapis.com/2.53/selenium-server-standalone-2.53.1.jar -O /opt/selenium/selenium-server-standalone.jar
3131

3232
#========================================
3333
# Add normal user with passwordless sudo

Hub/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM selenium/base:2.53.0
1+
FROM selenium/base:2.53.1
22
MAINTAINER Selenium <[email protected]>
33

44
#========================

NodeBase/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM selenium/base:2.53.0
1+
FROM selenium/base:2.53.1
22
MAINTAINER Selenium <[email protected]>
33

44
ENV DEBIAN_FRONTEND noninteractive

NodeBase/entry_point.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ if [ ! -e /opt/selenium/config.json ]; then
99
exit 1
1010
fi
1111

12-
if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then
13-
echo Not linked with a running Hub container 1>&2
14-
exit 1
15-
fi
12+
# if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then
13+
# echo Not linked with a running Hub container 1>&2
14+
# exit 1
15+
# fi
1616

1717
function shutdown {
1818
kill -s SIGTERM $NODE_PID
@@ -32,10 +32,13 @@ fi
3232
# TODO: Look into http://www.seleniumhq.org/docs/05_selenium_rc.jsp#browser-side-logs
3333

3434
SERVERNUM=$(get_server_num)
35+
36+
rm -f /tmp/.X*lock
37+
3538
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \
3639
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
3740
-role node \
38-
-hub http://$HUB_PORT_4444_TCP_ADDR:$HUB_PORT_4444_TCP_PORT/grid/register \
41+
-hub http://hub:4444/grid/register \
3942
${REMOTE_HOST_PARAM} \
4043
-nodeConfig /opt/selenium/config.json \
4144
${SE_OPTS} &

NodeChrome/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM selenium/node-base:2.53.0
1+
FROM selenium/node-base:2.53.1
22
MAINTAINER Selenium <[email protected]>
33

44
USER root
@@ -17,7 +17,7 @@ RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key
1717
#==================
1818
# Chrome webdriver
1919
#==================
20-
ENV CHROME_DRIVER_VERSION 2.21
20+
ENV CHROME_DRIVER_VERSION 2.22
2121
RUN wget --no-verbose -O /tmp/chromedriver_linux64.zip https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip \
2222
&& rm -rf /opt/selenium/chromedriver \
2323
&& unzip /tmp/chromedriver_linux64.zip -d /opt/selenium \

NodeChromeDebug/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM selenium/node-chrome:2.53.0
1+
FROM selenium/node-chrome:2.53.1
22
MAINTAINER Selenium <[email protected]>
33

44
USER root

NodeChromeDebug/entry_point.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ if [ ! -e /opt/selenium/config.json ]; then
99
exit 1
1010
fi
1111

12-
if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then
13-
echo Not linked with a running Hub container 1>&2
14-
exit 1
15-
fi
12+
# if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then
13+
# echo Not linked with a running Hub container 1>&2
14+
# exit 1
15+
# fi
1616

1717
function shutdown {
1818
kill -s SIGTERM $NODE_PID
@@ -32,6 +32,9 @@ fi
3232
# TODO: Look into http://www.seleniumhq.org/docs/05_selenium_rc.jsp#browser-side-logs
3333

3434
SERVERNUM=$(get_server_num)
35+
36+
rm -f /tmp/.X*lock
37+
3538
env | cut -f 1 -d "=" | sort > asroot
3639
sudo -E -u seluser -i env | cut -f 1 -d "=" | sort > asseluser
3740
sudo -E -i -u seluser \
@@ -40,7 +43,7 @@ env | cut -f 1 -d "=" | sort > asroot
4043
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \
4144
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
4245
-role node \
43-
-hub http://$HUB_PORT_4444_TCP_ADDR:$HUB_PORT_4444_TCP_PORT/grid/register \
46+
-hub http://hub:4444/grid/register \
4447
${REMOTE_HOST_PARAM} \
4548
-nodeConfig /opt/selenium/config.json \
4649
${SE_OPTS} &

NodeFirefox/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM selenium/node-base:2.53.0
1+
FROM selenium/node-base:2.53.1
22
MAINTAINER Selenium <[email protected]>
33

44
USER root

NodeFirefoxDebug/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM selenium/node-firefox:2.53.0
1+
FROM selenium/node-firefox:2.53.1
22
MAINTAINER Selenium <[email protected]>
33

44
USER root

NodeFirefoxDebug/entry_point.sh

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ if [ ! -e /opt/selenium/config.json ]; then
99
exit 1
1010
fi
1111

12-
if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then
13-
echo Not linked with a running Hub container 1>&2
14-
exit 1
15-
fi
12+
# if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then
13+
# echo Not linked with a running Hub container 1>&2
14+
# exit 1
15+
# fi
1616

1717
function shutdown {
1818
kill -s SIGTERM $NODE_PID
@@ -32,6 +32,9 @@ fi
3232
# TODO: Look into http://www.seleniumhq.org/docs/05_selenium_rc.jsp#browser-side-logs
3333

3434
SERVERNUM=$(get_server_num)
35+
36+
rm -f /tmp/.X*lock
37+
3538
env | cut -f 1 -d "=" | sort > asroot
3639
sudo -E -u seluser -i env | cut -f 1 -d "=" | sort > asseluser
3740
sudo -E -i -u seluser \
@@ -40,7 +43,7 @@ env | cut -f 1 -d "=" | sort > asroot
4043
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \
4144
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \
4245
-role node \
43-
-hub http://$HUB_PORT_4444_TCP_ADDR:$HUB_PORT_4444_TCP_PORT/grid/register \
46+
-hub http://hub:4444/grid/register \
4447
${REMOTE_HOST_PARAM} \
4548
-nodeConfig /opt/selenium/config.json \
4649
${SE_OPTS} &

0 commit comments

Comments
 (0)