File tree Expand file tree Collapse file tree 6 files changed +13
-15
lines changed Expand file tree Collapse file tree 6 files changed +13
-15
lines changed Original file line number Diff line number Diff line change @@ -227,10 +227,10 @@ release: tag_major_minor
227227 docker push $(NAME ) /standalone-firefox-debug:$(MAJOR_MINOR_PATCH )
228228
229229test :
230- ./test.sh
231- ./sa-test.sh
232- ./test.sh debug
233- ./sa-test.sh debug
230+ VERSION= $( VERSION ) ./test.sh
231+ VERSION= $( VERSION ) ./sa-test.sh
232+ VERSION= $( VERSION ) ./test.sh debug
233+ VERSION= $( VERSION ) ./sa-test.sh debug
234234
235235.PHONY : \
236236 all \
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ RUN apt-get update -qqy \
1010 && apt-get -qqy install \
1111 locales \
1212 xvfb \
13- dbus \
1413 && rm -rf /var/lib/apt/lists/* /var/cache/apt/*
1514
1615#==============================
Original file line number Diff line number Diff line change @@ -57,15 +57,14 @@ COPY generate_config /opt/selenium/generate_config
5757RUN chmod +x /opt/selenium/generate_config
5858
5959#=================================
60- # Chrome Launch Script Modication
60+ # Chrome Launch Script Modification
6161#=================================
6262COPY chrome_launcher.sh /opt/google/chrome/google-chrome
6363RUN chmod +x /opt/google/chrome/google-chrome
6464
6565RUN chown -R seluser:seluser /opt/selenium
6666
67- # Following line fixes
68- # https://github.com/SeleniumHQ/docker-selenium/issues/87
69- RUN echo "DBUS_SESSION_BUS_ADDRESS=/dev/null" >> /etc/environment
67+ # Following line fixes https://github.com/SeleniumHQ/docker-selenium/issues/87
68+ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
7069
71- USER seluser
70+ USER seluser
Original file line number Diff line number Diff line change @@ -53,8 +53,7 @@ COPY generate_config /opt/selenium/generate_config
5353RUN chmod +x /opt/selenium/generate_config \
5454 && chown -R seluser:seluser /opt/selenium
5555
56- # Following line fixes
57- # https://github.com/SeleniumHQ/docker-selenium/issues/87
58- RUN echo "DBUS_SESSION_BUS_ADDRESS=/dev/null" >> /etc/environment
56+ # Following line fixes https://github.com/SeleniumHQ/docker-selenium/issues/87
57+ ENV DBUS_SESSION_BUS_ADDRESS=/dev/null
5958
6059USER seluser
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
33DEBUG=' '
4+ VERSION=${VERSION:- 3.4.0-bismuth}
45
56if [ -n " $1 " ] && [ $1 == ' debug' ]; then
67 DEBUG=' -debug'
@@ -13,7 +14,7 @@ function test_standalone {
1314 BROWSER=$1
1415 echo Starting Selenium standalone-$BROWSER$DEBUG container
1516
16- SA=$( docker run -d selenium/standalone-$BROWSER$DEBUG :3.4.0-bismuth )
17+ SA=$( docker run -d selenium/standalone-$BROWSER$DEBUG :${VERSION} )
1718 SA_NAME=$( docker inspect -f ' {{ .Name }}' $SA | sed s:/::)
1819 TEST_CMD=" node smoke-$BROWSER .js"
1920
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ echo Building test container image
2424docker build -t selenium/test:local ./Test
2525
2626echo ' Starting Selenium Hub Container...'
27- HUB=$( docker run -d selenium/hub:3.4.0-bismuth )
27+ HUB=$( docker run -d selenium/hub:${VERSION} )
2828HUB_NAME=$( docker inspect -f ' {{ .Name }}' $HUB | sed s:/::)
2929echo ' Waiting for Hub to come online...'
3030docker logs -f $HUB &
You can’t perform that action at this time.
0 commit comments