Skip to content

Commit c256bbb

Browse files
authored
Merge pull request #469 from diemol/master
Fixing #87 (again), #465 and similar ones
2 parents ebf037b + 48f8e7e commit c256bbb

File tree

6 files changed

+13
-15
lines changed

6 files changed

+13
-15
lines changed

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ release: tag_major_minor
227227
docker push $(NAME)/standalone-firefox-debug:$(MAJOR_MINOR_PATCH)
228228

229229
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
234234

235235
.PHONY: \
236236
all \

NodeBase/Dockerfile.txt

-1
Original file line numberDiff line numberDiff 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
#==============================

NodeChrome/Dockerfile.txt

+4-5
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,14 @@ COPY generate_config /opt/selenium/generate_config
5757
RUN chmod +x /opt/selenium/generate_config
5858

5959
#=================================
60-
# Chrome Launch Script Modication
60+
# Chrome Launch Script Modification
6161
#=================================
6262
COPY chrome_launcher.sh /opt/google/chrome/google-chrome
6363
RUN chmod +x /opt/google/chrome/google-chrome
6464

6565
RUN 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

NodeFirefox/Dockerfile.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ COPY generate_config /opt/selenium/generate_config
5353
RUN 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

6059
USER seluser

sa-test.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
DEBUG=''
4+
VERSION=${VERSION:-3.4.0-bismuth}
45

56
if [ -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

test.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ echo Building test container image
2424
docker build -t selenium/test:local ./Test
2525

2626
echo 'Starting Selenium Hub Container...'
27-
HUB=$(docker run -d selenium/hub:3.4.0-bismuth)
27+
HUB=$(docker run -d selenium/hub:${VERSION})
2828
HUB_NAME=$(docker inspect -f '{{ .Name }}' $HUB | sed s:/::)
2929
echo 'Waiting for Hub to come online...'
3030
docker logs -f $HUB &

0 commit comments

Comments
 (0)