Skip to content

Commit b3d2770

Browse files
committed
Fix: Add recent changes to related Dockerfile.txt.
1 parent d63d666 commit b3d2770

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

NodeChrome/Dockerfile.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ COPY chrome_launcher.sh /opt/google/chrome/google-chrome
3737
RUN chmod +x /opt/google/chrome/google-chrome
3838

3939
USER seluser
40+
# Following line fixes
41+
# https://github.com/SeleniumHQ/docker-selenium/issues/87
42+
ENV DBUS_SESSION_BUS_ADDRESS=/dev/null

NodeFirefox/Dockerfile.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,17 @@ USER root
55
#=========
66
# Firefox
77
#=========
8+
ENV FIREFOX_VERSION 45.0.2
89
RUN apt-get update -qqy \
9-
&& apt-get -qqy --no-install-recommends install \
10-
firefox \
11-
&& rm -rf /var/lib/apt/lists/*
10+
&& apt-get -qqy --no-install-recommends install firefox \
11+
&& rm -rf /var/lib/apt/lists/* \
12+
&& wget --no-verbose -O /tmp/firefox.tar.bz2 https://download-installer.cdn.mozilla.net/pub/firefox/releases/$FIREFOX_VERSION/linux-x86_64/en-US/firefox-$FIREFOX_VERSION.tar.bz2 \
13+
&& apt-get -y purge firefox \
14+
&& rm -rf /opt/firefox \
15+
&& tar -C /opt -xjf /tmp/firefox.tar.bz2 \
16+
&& rm /tmp/firefox.tar.bz2 \
17+
&& mv /opt/firefox /opt/firefox-$FIREFOX_VERSION \
18+
&& ln -fs /opt/firefox-$FIREFOX_VERSION/firefox /usr/bin/firefox
1219

1320
#========================
1421
# Selenium Configuration

0 commit comments

Comments
 (0)