Skip to content

Commit 1780c1c

Browse files
hbouhadjidiemol
andauthored
Update to Ubuntu 20.04 (#1169)
* Update to Ubuntu 20.04 * Fix libffmpeg error on ubuntu 20.04 (opera) Co-authored-by: Diego Molina <[email protected]>
1 parent d701fd4 commit 1780c1c

File tree

9 files changed

+23
-17
lines changed

9 files changed

+23
-17
lines changed

.github/workflows/build-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# Skip job based on the commit message, only works in push to branches for now
1414
if: contains(toJson(github.event.commits), '[skip ci]') == false
1515
name: Build & test Docker images with random user
16-
runs-on: ubuntu-18.04
16+
runs-on: ubuntu-20.04
1717
strategy:
1818
matrix:
1919
use-random-user: [false, true]

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
# Only continue if the commit message has '[deploy]' in it
1111
if: contains(toJson(github.event.commits), '[deploy]') == true
1212
name: Deploy Docker images
13-
runs-on: ubuntu-18.04
13+
runs-on: ubuntu-20.04
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v2

.github/workflows/test-video.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
# Skip job based on the commit message, only works in push to branches for now
1414
if: contains(toJson(github.event.commits), '[skip ci]') == false
1515
name: Test video recorded through Docker Selenium
16-
runs-on: ubuntu-18.04
16+
runs-on: ubuntu-20.04
1717
strategy:
1818
matrix:
1919
use-random-user: [false, true]

Base/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM ubuntu:bionic-20201119
1+
FROM ubuntu:focal-20201106
22
LABEL authors="Selenium <[email protected]>"
33

44
#================================================
55
# Customize sources for apt-get
66
#================================================
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
1010

1111
# No interactive frontend during docker build
1212
ENV DEBIAN_FRONTEND=noninteractive \

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -382,9 +382,9 @@ test_video: video hub chrome firefox opera
382382
done
383383
# Using ffmpeg to verify file integrity
384384
# 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
388388

389389
.PHONY: \
390390
all \

NodeBase/start-xvfb.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ if [ "${START_XVFB}" = true ] ; then
66
rm -f /tmp/.X*lock
77

88
# 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
1212
/usr/bin/xvfb-run --server-num=${DISPLAY_NUM} \
1313
--listen-tcp \
1414
--server-args="-screen 0 ${GEOMETRY} -fbdir /var/tmp -dpi ${SCREEN_DPI} -listen tcp -noreset -ac +extension RANDR" \

NodeOpera/Dockerfile.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ USER root
1313
# latest (equivalent to opera-stable)
1414
# opera-beta (pull latest beta)
1515
#============================================
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+
1619
ARG OPERA_VERSION="opera-stable"
1720
RUN wget -q -O - https://deb.opera.com/archive.key | apt-key add - \
1821
&& echo "deb https://deb.opera.com/opera-stable/ stable non-free" >> /etc/apt/sources.list.d/opera-stable.list \

NodeOpera/generate.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ echo "# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" > ./Dockerfile
77
echo "# NOTE: DO *NOT* EDIT THIS FILE. IT IS GENERATED." >> ./Dockerfile
88
echo "# PLEASE UPDATE Dockerfile.txt INSTEAD OF THIS FILE" >> ./Dockerfile
99
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
1013
echo FROM ${NAMESPACE}/node-base:${VERSION} >> ./Dockerfile
1114
echo LABEL authors="$AUTHORS" >> ./Dockerfile
1215
echo "" >> ./Dockerfile

Video/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
FROM jrottenberg/ffmpeg:4.3.1-ubuntu1804
1+
FROM jrottenberg/ffmpeg:4.3.1-ubuntu2004
22
LABEL authors="Selenium <[email protected]>"
33

44
#================================================
55
# Customize sources for apt-get
66
#================================================
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
1010

1111
# No interactive frontend during docker build
1212
ENV DEBIAN_FRONTEND=noninteractive \

0 commit comments

Comments
 (0)