File tree Expand file tree Collapse file tree 9 files changed +23
-17
lines changed Expand file tree Collapse file tree 9 files changed +23
-17
lines changed Original file line number Diff line number Diff line change 13
13
# Skip job based on the commit message, only works in push to branches for now
14
14
if : contains(toJson(github.event.commits), '[skip ci]') == false
15
15
name : Build & test Docker images with random user
16
- runs-on : ubuntu-18 .04
16
+ runs-on : ubuntu-20 .04
17
17
strategy :
18
18
matrix :
19
19
use-random-user : [false, true]
Original file line number Diff line number Diff line change 10
10
# Only continue if the commit message has '[deploy]' in it
11
11
if : contains(toJson(github.event.commits), '[deploy]') == true
12
12
name : Deploy Docker images
13
- runs-on : ubuntu-18 .04
13
+ runs-on : ubuntu-20 .04
14
14
steps :
15
15
- name : Checkout code
16
16
uses : actions/checkout@v2
Original file line number Diff line number Diff line change 13
13
# Skip job based on the commit message, only works in push to branches for now
14
14
if : contains(toJson(github.event.commits), '[skip ci]') == false
15
15
name : Test video recorded through Docker Selenium
16
- runs-on : ubuntu-18 .04
16
+ runs-on : ubuntu-20 .04
17
17
strategy :
18
18
matrix :
19
19
use-random-user : [false, true]
Original file line number Diff line number Diff line change 1
- FROM ubuntu:bionic-20201119
1
+ FROM ubuntu:focal-20201106
2
2
LABEL authors=
"Selenium <[email protected] >"
3
3
4
4
# ================================================
5
5
# Customize sources for apt-get
6
6
# ================================================
7
- RUN echo "deb http://archive.ubuntu.com/ubuntu bionic main universe\n " > /etc/apt/sources.list \
8
- && echo "deb http://archive.ubuntu.com/ubuntu bionic -updates main universe\n " >> /etc/apt/sources.list \
9
- && echo "deb http://security.ubuntu.com/ubuntu bionic -security main universe\n " >> /etc/apt/sources.list
7
+ RUN echo "deb http://archive.ubuntu.com/ubuntu focal main universe\n " > /etc/apt/sources.list \
8
+ && echo "deb http://archive.ubuntu.com/ubuntu focal -updates main universe\n " >> /etc/apt/sources.list \
9
+ && echo "deb http://security.ubuntu.com/ubuntu focal -security main universe\n " >> /etc/apt/sources.list
10
10
11
11
# No interactive frontend during docker build
12
12
ENV DEBIAN_FRONTEND=noninteractive \
Original file line number Diff line number Diff line change @@ -382,9 +382,9 @@ test_video: video hub chrome firefox opera
382
382
done
383
383
# Using ffmpeg to verify file integrity
384
384
# https://superuser.com/questions/100288/how-can-i-check-the-integrity-of-a-video-file-avi-mpeg-mp4
385
- docker run -v $$(pwd ) :$$(pwd ) -w $$(pwd ) jrottenberg/ffmpeg:4.3.1-ubuntu1804 -v error -i ./tests/videos/chrome_video.mp4 -f null - 2> error.log
386
- docker run -v $$(pwd ) :$$(pwd ) -w $$(pwd ) jrottenberg/ffmpeg:4.3.1-ubuntu1804 -v error -i ./tests/videos/firefox_video.mp4 -f null - 2> error.log
387
- docker run -v $$(pwd ) :$$(pwd ) -w $$(pwd ) jrottenberg/ffmpeg:4.3.1-ubuntu1804 -v error -i ./tests/videos/opera_video.mp4 -f null - 2> error.log
385
+ docker run -v $$(pwd ) :$$(pwd ) -w $$(pwd ) jrottenberg/ffmpeg:4.3.1-ubuntu2004 -v error -i ./tests/videos/chrome_video.mp4 -f null - 2> error.log
386
+ docker run -v $$(pwd ) :$$(pwd ) -w $$(pwd ) jrottenberg/ffmpeg:4.3.1-ubuntu2004 -v error -i ./tests/videos/firefox_video.mp4 -f null - 2> error.log
387
+ docker run -v $$(pwd ) :$$(pwd ) -w $$(pwd ) jrottenberg/ffmpeg:4.3.1-ubuntu2004 -v error -i ./tests/videos/opera_video.mp4 -f null - 2> error.log
388
388
389
389
.PHONY : \
390
390
all \
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ if [ "${START_XVFB}" = true ] ; then
6
6
rm -f /tmp/.X* lock
7
7
8
8
# Command reference
9
- # http://manpages.ubuntu.com/manpages/bionic /man1/xvfb-run.1.html
10
- # http://manpages.ubuntu.com/manpages/bionic /man1/Xvfb.1.html
11
- # http://manpages.ubuntu.com/manpages/bionic /man1/Xserver.1.html
9
+ # http://manpages.ubuntu.com/manpages/focal /man1/xvfb-run.1.html
10
+ # http://manpages.ubuntu.com/manpages/focal /man1/Xvfb.1.html
11
+ # http://manpages.ubuntu.com/manpages/focal /man1/Xserver.1.html
12
12
/usr/bin/xvfb-run --server-num=${DISPLAY_NUM} \
13
13
--listen-tcp \
14
14
--server-args=" -screen 0 ${GEOMETRY} -fbdir /var/tmp -dpi ${SCREEN_DPI} -listen tcp -noreset -ac +extension RANDR" \
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ USER root
13
13
# latest (equivalent to opera-stable)
14
14
# opera-beta (pull latest beta)
15
15
#============================================
16
+ # to avoid installing chromium-ffmpeg with snap (https://snapcraft.io/chromium-ffmpeg)
17
+ COPY --from=builder-codecs-ffmpeg /usr/lib/chromium-browser/libffmpeg.so /usr/lib/chromium-browser/libffmpeg.so
18
+
16
19
ARG OPERA_VERSION="opera-stable"
17
20
RUN wget -q -O - https://deb.opera.com/archive.key | apt-key add - \
18
21
&& echo "deb https://deb.opera.com/opera-stable/ stable non-free" >> /etc/apt/sources.list.d/opera-stable.list \
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ echo "# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" > ./Dockerfile
7
7
echo " # NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED." >> ./Dockerfile
8
8
echo " # PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE" >> ./Dockerfile
9
9
echo " # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" >> ./Dockerfile
10
+ echo " FROM ubuntu:bionic AS builder-codecs-ffmpeg" >> ./Dockerfile
11
+ echo " RUN apt-get update -qqy && apt-get -qqy install chromium-codecs-ffmpeg-extra" >> ./Dockerfile
12
+ echo " " >> ./Dockerfile
10
13
echo FROM ${NAMESPACE} /node-base:${VERSION} >> ./Dockerfile
11
14
echo LABEL authors=" $AUTHORS " >> ./Dockerfile
12
15
echo " " >> ./Dockerfile
Original file line number Diff line number Diff line change 1
- FROM jrottenberg/ffmpeg:4.3.1-ubuntu1804
1
+ FROM jrottenberg/ffmpeg:4.3.1-ubuntu2004
2
2
LABEL authors=
"Selenium <[email protected] >"
3
3
4
4
# ================================================
5
5
# Customize sources for apt-get
6
6
# ================================================
7
- RUN echo "deb http://archive.ubuntu.com/ubuntu bionic main universe\n " > /etc/apt/sources.list \
8
- && echo "deb http://archive.ubuntu.com/ubuntu bionic -updates main universe\n " >> /etc/apt/sources.list \
9
- && echo "deb http://security.ubuntu.com/ubuntu bionic -security main universe\n " >> /etc/apt/sources.list
7
+ RUN echo "deb http://archive.ubuntu.com/ubuntu focal main universe\n " > /etc/apt/sources.list \
8
+ && echo "deb http://archive.ubuntu.com/ubuntu focal -updates main universe\n " >> /etc/apt/sources.list \
9
+ && echo "deb http://security.ubuntu.com/ubuntu focal -security main universe\n " >> /etc/apt/sources.list
10
10
11
11
# No interactive frontend during docker build
12
12
ENV DEBIAN_FRONTEND=noninteractive \
You can’t perform that action at this time.
0 commit comments