1- # ##################################################
2- # Selenium standalone docker for Chrome & Firefox #
3- # ##################################################
41# == Ubuntu xenial is 16.04, i.e. FROM ubuntu:16.04
5- # search for more at https://registry. hub.docker.com/_/ubuntu/tags/manage /
2+ # Find latest images at https://hub.docker.com/r/library/ubuntu /
63FROM ubuntu:xenial-20161010
74ENV UBUNTU_FLAVOR="xenial" \
85 UBUNTU_DATE="20161010"
96
10- # == Ubuntu wily is 15.10, i.e. FROM ubuntu:15.10
11- # FROM ubuntu:wily-20151208
12- # ENV UBUNTU_FLAVOR wily
13-
14- # == Ubuntu vivid is 15.04, i.e. FROM ubuntu:15.04
15- # https://cloud-images.ubuntu.com/releases/15.04/
16- # FROM ubuntu:vivid-20150611
17- # ENV UBUNTU_FLAVOR vivid
18-
19- # == Ubuntu trusty is 14.04, i.e. FROM ubuntu:14.04
20- # == Could also use ubuntu:latest but for the sake I replicating an precise env...
21- # https://cloud-images.ubuntu.com/releases/14.04/
22- # FROM ubuntu:trusty-20150630
23- # ENV UBUNTU_FLAVOR trusty
24-
25- # == Ubuntu precise is 12.04, i.e. FROM ubuntu:12.04
26- # == Could also use ubuntu:latest but for the sake I replicating an precise env...
27- # https://cloud-images.ubuntu.com/releases/12.04/
28- # FROM ubuntu:precise-20150612
29- # ENV UBUNTU_FLAVOR precise
30-
317# == Ubuntu flavors - common
328RUN echo "deb http://archive.ubuntu.com/ubuntu ${UBUNTU_FLAVOR} main universe\n " > /etc/apt/sources.list \
33- && echo "deb http://archive.ubuntu.com/ubuntu ${UBUNTU_FLAVOR}-updates main universe\n " >> /etc/apt/sources.list
9+ && echo "deb http://archive.ubuntu.com/ubuntu ${UBUNTU_FLAVOR}-updates main universe\n " >> /etc/apt/sources.list \
10+ && echo "deb http://archive.ubuntu.com/ubuntu ${UBUNTU_FLAVOR}-security main universe\n " >> /etc/apt/sources.list
3411
35- MAINTAINER Leo Gallucci <
[email protected] >
12+ MAINTAINER Leo Gallucci <elgalu3+team-tip @gmail.com>
3613
14+ # No interactive frontend during docker build
3715ENV DEBIAN_FRONTEND=noninteractive \
3816 DEBCONF_NONINTERACTIVE_SEEN=true
3917
@@ -172,29 +150,6 @@ RUN echo "Setting time zone to '${TZ}'" \
172150# Regarding urandom see
173151# http://stackoverflow.com/q/26021181/511069
174152# https://github.com/SeleniumHQ/docker-selenium/issues/14#issuecomment-67414070
175- # RUN apt-get -qqy update \
176- # && apt-get -qqy install \
177- # software-properties-common \
178- # && echo debconf shared/accepted-oracle-license-v1-1 \
179- # select true | debconf-set-selections \
180- # && echo debconf shared/accepted-oracle-license-v1-1 \
181- # seen true | debconf-set-selections \
182- # && add-apt-repository ppa:webupd8team/java \
183- # && apt-get -qqy update \
184- # && apt-get -qqy install \
185- # oracle-java8-installer \
186- # && sed -i 's/securerandom.source=file:\/dev\/urandom/securerandom.source=file:\/dev\/.\/urandom/g' \
187- # /usr/lib/jvm/java-8-oracle/jre/lib/security/java.security \
188- # && sed -i 's/securerandom.source=file:\/dev\/random/securerandom.source=file:\/dev\/.\/urandom/g' \
189- # /usr/lib/jvm/java-8-oracle/jre/lib/security/java.security \
190- # && rm -rf /var/lib/apt/lists/*
191-
192- # ==================
193- # Java9 - Oracle
194- # ==================
195- # Regarding urandom see
196- # http://stackoverflow.com/q/26021181/511069
197- # https://github.com/SeleniumHQ/docker-selenium/issues/14#issuecomment-67414070
198153RUN apt-get -qqy update \
199154 && apt-get -qqy install \
200155 software-properties-common \
@@ -205,13 +160,36 @@ RUN apt-get -qqy update \
205160 && add-apt-repository ppa:webupd8team/java \
206161 && apt-get -qqy update \
207162 && apt-get -qqy install \
208- oracle-java9 -installer \
163+ oracle-java8 -installer \
209164 && sed -i 's/securerandom.source=file:\/ dev\/ urandom/securerandom.source=file:\/ dev\/ .\/ urandom/g' \
210- /usr/lib/jvm/java-9 -oracle/conf /security/java.security \
165+ /usr/lib/jvm/java-8 -oracle/jre/lib /security/java.security \
211166 && sed -i 's/securerandom.source=file:\/ dev\/ random/securerandom.source=file:\/ dev\/ .\/ urandom/g' \
212- /usr/lib/jvm/java-9 -oracle/conf /security/java.security \
167+ /usr/lib/jvm/java-8 -oracle/jre/lib /security/java.security \
213168 && rm -rf /var/lib/apt/lists/*
214169
170+ # ================
171+ # Java9 - Oracle
172+ # ================
173+ # Regarding urandom see
174+ # http://stackoverflow.com/q/26021181/511069
175+ # https://github.com/SeleniumHQ/docker-selenium/issues/14#issuecomment-67414070
176+ # RUN apt-get -qqy update \
177+ # && apt-get -qqy install \
178+ # software-properties-common \
179+ # && echo debconf shared/accepted-oracle-license-v1-1 \
180+ # select true | debconf-set-selections \
181+ # && echo debconf shared/accepted-oracle-license-v1-1 \
182+ # seen true | debconf-set-selections \
183+ # && add-apt-repository ppa:webupd8team/java \
184+ # && apt-get -qqy update \
185+ # && apt-get -qqy install \
186+ # oracle-java9-installer \
187+ # && sed -i 's/securerandom.source=file:\/dev\/urandom/securerandom.source=file:\/dev\/.\/urandom/g' \
188+ # /usr/lib/jvm/java-9-oracle/conf/security/java.security \
189+ # && sed -i 's/securerandom.source=file:\/dev\/random/securerandom.source=file:\/dev\/.\/urandom/g' \
190+ # /usr/lib/jvm/java-9-oracle/conf/security/java.security \
191+ # && rm -rf /var/lib/apt/lists/*
192+
215193# =========================
216194# Fonts & video libraries
217195# =========================
@@ -353,9 +331,9 @@ RUN mkdir -p ${NORMAL_USER_HOME}/tmp && cd ${NORMAL_USER_HOME}/tmp \
353331 && mv websockify-${WEBSOCKIFY_SHA} \
354332 ${NORMAL_USER_HOME}/noVNC/utils/websockify
355333
356- # ===============================
357- # ffmpeg/libav and video codecs
358- # ===============================
334+ # ======================================
335+ # ffmpeg/libav/avconv and video codecs
336+ # ======================================
359337# ffmpeg (ffmpeg): Is a better alternative to Pyvnc2swf
360338# (use in Ubuntu >= 15) packages: ffmpeg
361339# RUN apt-get -qqy update \
@@ -366,9 +344,9 @@ RUN mkdir -p ${NORMAL_USER_HOME}/tmp && cd ${NORMAL_USER_HOME}/tmp \
366344# ffmpeg \
367345# && rm -rf /var/lib/apt/lists/*
368346
369- # ===============================
370- # ffmpeg/libav and video codecs
371- # ===============================
347+ # ======================================
348+ # ffmpeg/libav/avconv and video codecs
349+ # ======================================
372350# libav-tools (avconv): Is a fork of ffmpeg
373351# (use in Ubuntu <= 14) packages: libav-tools libx264-142
374352RUN apt-get -qqy update \
@@ -800,7 +778,7 @@ ENV CHROME_DRIVER_FILE "chromedriver_linux${CPU_ARCH}.zip"
800778ENV CHROME_DRIVER_BASE "chromedriver.storage.googleapis.com"
801779# Gets latest chrome driver version. Or you can hard-code it, e.g. 2.15
802780RUN mkdir -p ${NORMAL_USER_HOME}/tmp && cd ${NORMAL_USER_HOME}/tmp \
803- && CHROME_DRIVER_VERSION="2.24 " \
781+ && CHROME_DRIVER_VERSION="2.25 " \
804782 && CHROME_DRIVER_URL="https://${CHROME_DRIVER_BASE}/${CHROME_DRIVER_VERSION}/${CHROME_DRIVER_FILE}" \
805783 && wget -nv -O chromedriver_linux${CPU_ARCH}.zip ${CHROME_DRIVER_URL} \
806784 && cd ${SEL_HOME} \
@@ -1113,7 +1091,6 @@ ENV DEFAULT_SELENIUM_HUB_PORT="24444" \
11131091# Run docker from inside docker
11141092# Usage: docker run -v /var/run/docker.sock:/var/run/docker.sock
11151093# -v $(which docker):$(which docker)
1116-
11171094ENV FIREFOX_VERSION="${FF_VER}" \
11181095 USE_SELENIUM="2" \
11191096 CHROME_FLAVOR="stable" \
@@ -1205,6 +1182,7 @@ ENV FIREFOX_VERSION="${FF_VER}" \
12051182 VIDEO_FLUSH_SECS="0.5" \
12061183 VIDEO_CHUNK_SECS="00:05:00" \
12071184 VIDEO_CHUNKS_MAX=999 \
1185+ VIDEO_STOP_SLEEP_SECS="1" \
12081186 VIDEOS_DIR="${NORMAL_USER_HOME}/videos" \
12091187 XMANAGER="fluxbox" \
12101188 SAUCE_TUNNEL="false" \
@@ -1316,6 +1294,7 @@ WORKDIR ${NORMAL_USER_HOME}
13161294# ENTRYPOINT ["entry.sh"]
13171295# CMD ["supervisord", "-c", "/etc/supervisor/supervisord.conf"]
13181296
1319- # Using the string form `CMD "entry.sh"` causes Docker to run your process
1320- # using bash which doesn’t handle signals properly
1297+ # IMPORTANT: Using the string form `CMD "entry.sh"` without
1298+ # brackets [] causes Docker to run your process
1299+ # And using `bash` which doesn’t handle signals properly
13211300CMD ["entry.sh" ]
0 commit comments