Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit 3f1dafb

Browse files
committed
Drop support for Selenium 2
1 parent 71ce28a commit 3f1dafb

File tree

6 files changed

+10
-50
lines changed

6 files changed

+10
-50
lines changed

Dockerfile

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -224,24 +224,9 @@ RUN apt-get -qqy update \
224224
USER seluser
225225
WORKDIR /home/seluser
226226

227-
#========================
228-
# Selenium 2 (deprecated)
229-
#========================
230-
# Layer size: medium: 21.23 MB
231-
ENV SEL_MAJOR_VER="2.53" \
232-
SEL_PATCH_LEVEL_VER="1"
233-
ENV SEL_VER="${SEL_MAJOR_VER}.${SEL_PATCH_LEVEL_VER}"
234-
RUN export SELBASE="https://selenium-release.storage.googleapis.com" \
235-
&& export SELPATH="${SEL_MAJOR_VER}/selenium-server-standalone-${SEL_VER}.jar" \
236-
&& wget -nv ${SELBASE}/${SELPATH} \
237-
&& ln -s "selenium-server-standalone-${SEL_VER}.jar" \
238-
"selenium-server-standalone-2.jar" \
239-
&& ln -s "selenium-server-standalone-${SEL_VER}.jar" \
240-
"selenium-server-standalone.jar"
241-
242-
#============
243-
# Selenium 3
244-
#============
227+
#=================
228+
# Selenium latest
229+
#=================
245230
# Layer size: medium ~22 MB
246231
ENV SEL_DIRECTORY="3.3" \
247232
SEL_VER="3.3.1"
@@ -572,20 +557,6 @@ RUN wget -nv "${FF_URL}" -O "firefox.tar.bz2" \
572557
&& mv firefox firefox-for-sel-3 \
573558
&& sudo ln -fs /home/seluser/firefox-for-sel-3/firefox /usr/bin/firefox
574559

575-
#--- Stable for Selenium 2
576-
# Layer size: big: 107 MB
577-
ENV FF_VER="47.0.1"
578-
ENV FF_COMP="firefox-${FF_VER}.tar.bz2"
579-
ENV FF_URL="${FF_BASE_URL}/${FF_INNER_PATH}/${FF_VER}/${FF_PLATFORM}/${FF_LANG}/${FF_COMP}"
580-
RUN wget -nv "${FF_URL}" -O "firefox.tar.bz2" \
581-
&& bzip2 -d "firefox.tar.bz2" \
582-
&& tar xf "firefox.tar" \
583-
&& rm "firefox.tar" \
584-
&& mv firefox firefox-for-sel-2 \
585-
&& sudo ln -fs /home/seluser/firefox-for-sel-2/firefox /usr/bin/firefox
586-
587-
LABEL selenium2_firefox_version "47.0.1"
588-
LABEL selenium3_firefox_version "52.0.2"
589560
LABEL selenium_firefox_version "52.0.2"
590561

591562
#=============================
@@ -616,8 +587,6 @@ ENV CHROME_VERSION_TRIGGER="58.0.3029.110" \
616587
CHROME_BASE_DEB_PATH="/home/seluser/chrome-deb/google-chrome" \
617588
GREP_ONLY_NUMS_VER="[0-9.]{2,20}"
618589

619-
LABEL selenium2_chrome_version "58.0.3029.110"
620-
LABEL selenium3_chrome_version "58.0.3029.110"
621590
LABEL selenium_chrome_version "58.0.3029.110"
622591

623592
# Layer size: huge: 196.3 MB
@@ -688,8 +657,6 @@ ENV DEFAULT_SELENIUM_HUB_PORT="24444" \
688657

689658
# Commented for now; all these versions are still available at
690659
# https://github.com/elgalu/docker-selenium/releases/tag/2.47.1m
691-
# USE_SELENIUM "2" / "3"
692-
# Selenium 2 or 3
693660
# CHROME_FLAVOR "stable"
694661
# Default chrome flavor, options no longer available: beta|unstable
695662
# PICK_ALL_RANDOM_PORTS "true" / "false"

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Selenium 3 `docker run ... elgalu/selenium:latest`
2121
![docker-selenium-grid](./images/grid3_console.png)
2222

2323
Selenium 2 `docker run ... elgalu/selenium:2` **no longer maintained**
24-
![docker-selenium-grid](./images/grid2_console.png)
2524

2625
### Purpose
2726
The purpose of this project is to have [Selenium][] running as simple and as fast as possible.

bin/entry.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ sudo cp /capabilities3.json /home/seluser/caps.json
4747
#---------------------
4848
# Fix/extend ENV vars
4949
#---------------------
50-
export SELENIUM_JAR_PATH="/home/seluser/selenium-server-standalone-${USE_SELENIUM}.jar"
51-
export FIREFOX_DEST_BIN="/home/seluser/firefox-for-sel-${USE_SELENIUM}/firefox"
50+
export SELENIUM_JAR_PATH="/home/seluser/selenium-server-standalone-3.jar"
51+
export FIREFOX_DEST_BIN="/home/seluser/firefox-for-sel-3/firefox"
5252
sudo ln -fs ${FIREFOX_DEST_BIN} /usr/bin/firefox
5353
export DOSEL_VERSION=$(cat VERSION)
5454
export FIREFOX_VERSION=$(firefox_version)
@@ -61,19 +61,19 @@ echo "-- INFO: Chrome..... Version: ${CHROME_VERSION}"
6161
echo "-- INFO: Firefox.... Version: ${FIREFOX_VERSION}"
6262

6363
if [ "${USE_SELENIUM}" == "2" ]; then
64-
# In the future this warning will be changed to an error and exit command
65-
echo "-- INFO: Using Selenium.....: ${USE_SELENIUM}"
6664
echo -e "\n\n\n\n"
6765
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
6866
echo "!!! WARNING!!! You are using the unmaintained Selenium 2 !!!"
6967
echo "!!! to continue using Selenium 2 please use the proper tag:"
7068
echo "!!! docker pull elgalu/selenium:2 !!!"
69+
echo "!!! !!!"
70+
echo "!!! Will start with Selenium 3 anyway !!!"
7171
echo "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
7272
echo -e "\n\n\n\n"
73-
else
74-
echo "-- INFO: Using Selenium.....: ${SEL_VER}"
7573
fi
7674

75+
echo "-- INFO: Using Selenium.....: ${SEL_VER}"
76+
7777
# export PATH="${PATH}:${BIN_UTILS}"
7878
export SUPERVISOR_PIDFILE="${RUN_DIR}/supervisord.pid"
7979
export DOCKER_SELENIUM_STATUS="${LOGS_DIR}/docker-selenium-status.log"

bin/geckodriver_version

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ set -e
99
# Example:
1010
#=> 0.10.0
1111
CMD="geckodriver"
12-
[ "${USE_SELENIUM}" == "2" ] && CMD="/opt/geckodriver"
1312
if ${CMD} --version >/dev/null 2>&1; then
1413
${CMD} --version 2>&1 | grep -Po '(?<=geckodriver )([a-z0-9\.]+)'
1514
else

selenium-node-firefox/bin/start-selenium-node-firefox.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ timeout --foreground ${WAIT_TIMEOUT} wait-xvfb.sh
2626
timeout --foreground ${WAIT_TIMEOUT} wait-xmanager.sh
2727
timeout --foreground ${WAIT_TIMEOUT} wait-selenium-hub.sh
2828

29-
if [ "${USE_SELENIUM}" == "3" ]; then
30-
JAVA_OPTS="-Dwebdriver.gecko.driver=/usr/bin/geckodriver ${JAVA_OPTS}"
31-
fi
32-
29+
JAVA_OPTS="-Dwebdriver.gecko.driver=/usr/bin/geckodriver ${JAVA_OPTS}"
3330
JAVA_OPTS="$(java-dynamic-memory-opts.sh) ${JAVA_OPTS}"
3431
echo "INFO: JAVA_OPTS are '${JAVA_OPTS}'"
3532

test/python_test.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
help='in which browser to test')
1919
args = parser.parse_args()
2020

21-
current_selenium = os.environ.get('USE_SELENIUM', '3')
22-
2321
# http://selenium-python.readthedocs.org/en/latest/api.html
2422
if args.browser == 'chrome':
2523
caps = DesiredCapabilities.CHROME

0 commit comments

Comments
 (0)