From ca7b7e836983d4997f1bf6b1f44d89ca58088de5 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Sun, 23 Apr 2017 23:25:13 +0200 Subject: [PATCH 1/3] Leaving the original commit made in #182 that fixed #87, this time to fix #465 --- NodeChrome/Dockerfile.txt | 9 ++++----- NodeFirefox/Dockerfile.txt | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/NodeChrome/Dockerfile.txt b/NodeChrome/Dockerfile.txt index ac823b0f2..35529371d 100644 --- a/NodeChrome/Dockerfile.txt +++ b/NodeChrome/Dockerfile.txt @@ -57,15 +57,14 @@ COPY generate_config /opt/selenium/generate_config RUN chmod +x /opt/selenium/generate_config #================================= -# Chrome Launch Script Modication +# Chrome Launch Script Modification #================================= COPY chrome_launcher.sh /opt/google/chrome/google-chrome RUN chmod +x /opt/google/chrome/google-chrome RUN chown -R seluser:seluser /opt/selenium -# Following line fixes -# https://github.com/SeleniumHQ/docker-selenium/issues/87 -RUN echo "DBUS_SESSION_BUS_ADDRESS=/dev/null" >> /etc/environment +# Following line fixes https://github.com/SeleniumHQ/docker-selenium/issues/87 +ENV DBUS_SESSION_BUS_ADDRESS=/dev/null -USER seluser \ No newline at end of file +USER seluser diff --git a/NodeFirefox/Dockerfile.txt b/NodeFirefox/Dockerfile.txt index 61abcf6ae..d162bd62f 100644 --- a/NodeFirefox/Dockerfile.txt +++ b/NodeFirefox/Dockerfile.txt @@ -53,8 +53,7 @@ COPY generate_config /opt/selenium/generate_config RUN chmod +x /opt/selenium/generate_config \ && chown -R seluser:seluser /opt/selenium -# Following line fixes -# https://github.com/SeleniumHQ/docker-selenium/issues/87 -RUN echo "DBUS_SESSION_BUS_ADDRESS=/dev/null" >> /etc/environment +# Following line fixes https://github.com/SeleniumHQ/docker-selenium/issues/87 +ENV DBUS_SESSION_BUS_ADDRESS=/dev/null USER seluser From 084960412c387e7f340d493a2eee389c6f7a433e Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Mon, 24 Apr 2017 10:16:53 +0200 Subject: [PATCH 2/3] Running the tests agains the generated images in the Travis build, not the latest release. --- Makefile | 8 ++++---- sa-test.sh | 3 ++- test.sh | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 3e11f8259..af78ea060 100644 --- a/Makefile +++ b/Makefile @@ -227,10 +227,10 @@ release: tag_major_minor docker push $(NAME)/standalone-firefox-debug:$(MAJOR_MINOR_PATCH) test: - ./test.sh - ./sa-test.sh - ./test.sh debug - ./sa-test.sh debug + VERSION=$(VERSION) ./test.sh + VERSION=$(VERSION) ./sa-test.sh + VERSION=$(VERSION) ./test.sh debug + VERSION=$(VERSION) ./sa-test.sh debug .PHONY: \ all \ diff --git a/sa-test.sh b/sa-test.sh index d93b901da..f034851a8 100755 --- a/sa-test.sh +++ b/sa-test.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash DEBUG='' +VERSION=${VERSION:-3.4.0-bismuth} if [ -n "$1" ] && [ $1 == 'debug' ]; then DEBUG='-debug' @@ -13,7 +14,7 @@ function test_standalone { BROWSER=$1 echo Starting Selenium standalone-$BROWSER$DEBUG container - SA=$(docker run -d selenium/standalone-$BROWSER$DEBUG:3.4.0-bismuth) + SA=$(docker run -d selenium/standalone-$BROWSER$DEBUG:${VERSION}) SA_NAME=$(docker inspect -f '{{ .Name }}' $SA | sed s:/::) TEST_CMD="node smoke-$BROWSER.js" diff --git a/test.sh b/test.sh index 26af255e6..56e3f308c 100755 --- a/test.sh +++ b/test.sh @@ -24,7 +24,7 @@ echo Building test container image docker build -t selenium/test:local ./Test echo 'Starting Selenium Hub Container...' -HUB=$(docker run -d selenium/hub:3.4.0-bismuth) +HUB=$(docker run -d selenium/hub:${VERSION}) HUB_NAME=$(docker inspect -f '{{ .Name }}' $HUB | sed s:/::) echo 'Waiting for Hub to come online...' docker logs -f $HUB & From 48f8e7e787bed315b799afcf42f24a9d18867674 Mon Sep 17 00:00:00 2001 From: Diego Molina Date: Tue, 25 Apr 2017 09:18:27 +0200 Subject: [PATCH 3/3] Removing dbus package. --- NodeBase/Dockerfile.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/NodeBase/Dockerfile.txt b/NodeBase/Dockerfile.txt index 9a7117624..62404abe4 100644 --- a/NodeBase/Dockerfile.txt +++ b/NodeBase/Dockerfile.txt @@ -10,7 +10,6 @@ RUN apt-get update -qqy \ && apt-get -qqy install \ locales \ xvfb \ - dbus \ && rm -rf /var/lib/apt/lists/* /var/cache/apt/* #==============================