File tree 6 files changed +13
-15
lines changed
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
227
227
docker push $(NAME ) /standalone-firefox-debug:$(MAJOR_MINOR_PATCH )
228
228
229
229
test :
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
234
234
235
235
.PHONY : \
236
236
all \
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ RUN apt-get update -qqy \
10
10
&& apt-get -qqy install \
11
11
locales \
12
12
xvfb \
13
- dbus \
14
13
&& rm -rf /var/lib/apt/lists/* /var/cache/apt/*
15
14
16
15
#==============================
Original file line number Diff line number Diff line change @@ -57,15 +57,14 @@ COPY generate_config /opt/selenium/generate_config
57
57
RUN chmod +x /opt/selenium/generate_config
58
58
59
59
#=================================
60
- # Chrome Launch Script Modication
60
+ # Chrome Launch Script Modification
61
61
#=================================
62
62
COPY chrome_launcher.sh /opt/google/chrome/google-chrome
63
63
RUN chmod +x /opt/google/chrome/google-chrome
64
64
65
65
RUN chown -R seluser:seluser /opt/selenium
66
66
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
70
69
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
53
53
RUN chmod +x /opt/selenium/generate_config \
54
54
&& chown -R seluser:seluser /opt/selenium
55
55
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
59
58
60
59
USER seluser
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
DEBUG=' '
4
+ VERSION=${VERSION:- 3.4.0-bismuth}
4
5
5
6
if [ -n " $1 " ] && [ $1 == ' debug' ]; then
6
7
DEBUG=' -debug'
@@ -13,7 +14,7 @@ function test_standalone {
13
14
BROWSER=$1
14
15
echo Starting Selenium standalone-$BROWSER$DEBUG container
15
16
16
- SA=$( docker run -d selenium/standalone-$BROWSER$DEBUG :3.4.0-bismuth )
17
+ SA=$( docker run -d selenium/standalone-$BROWSER$DEBUG :${VERSION} )
17
18
SA_NAME=$( docker inspect -f ' {{ .Name }}' $SA | sed s:/::)
18
19
TEST_CMD=" node smoke-$BROWSER .js"
19
20
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ echo Building test container image
24
24
docker build -t selenium/test:local ./Test
25
25
26
26
echo ' Starting Selenium Hub Container...'
27
- HUB=$( docker run -d selenium/hub:3.4.0-bismuth )
27
+ HUB=$( docker run -d selenium/hub:${VERSION} )
28
28
HUB_NAME=$( docker inspect -f ' {{ .Name }}' $HUB | sed s:/::)
29
29
echo ' Waiting for Hub to come online...'
30
30
docker logs -f $HUB &
You can’t perform that action at this time.
0 commit comments