Skip to content

Commit 4d89d64

Browse files
committed
Add ubuntu-20.04
1 parent 81ada68 commit 4d89d64

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,12 @@ Ubuntu 19.04.
6363
In addition, this image contains GCC 9 to check if LibrePCB can be built with
6464
a recent compiler.
6565

66+
### `ubuntu-20.04`
67+
68+
Based on Ubuntu 20.04, containing Qt from the official Ubuntu package
69+
repository. This image is intended to check if LibrePCB compiles on a standard
70+
Ubuntu 20.04.
71+
6672

6773
## Updating Images
6874

ubuntu-20.04/Dockerfile

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
FROM ubuntu:20.04
2+
3+
# Install APT packages
4+
ARG DEBIAN_FRONTEND=noninteractive
5+
RUN apt-get update -q && apt-get -y -q install --no-install-recommends \
6+
bzip2 \
7+
ca-certificates \
8+
clang \
9+
curl \
10+
dbus \
11+
doxygen \
12+
file \
13+
g++ \
14+
git \
15+
graphviz \
16+
libc++-dev \
17+
libc++abi-dev \
18+
libglu1-mesa-dev \
19+
libqt5opengl5 \
20+
libqt5opengl5-dev \
21+
libqt5svg5-dev \
22+
libqt5sql5-sqlite \
23+
make \
24+
openssl \
25+
python3 \
26+
python3-pip \
27+
python3-setuptools \
28+
python3-wheel \
29+
qt5-default \
30+
qtdeclarative5-dev \
31+
qttools5-dev-tools \
32+
qttranslations5-l10n \
33+
wget \
34+
xvfb \
35+
zlib1g \
36+
zlib1g-dev \
37+
&& rm -rf /var/lib/apt/lists/*
38+
39+
# Set Python3 as default Python version
40+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 100
41+
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 100
42+
43+
# Install Python packages
44+
RUN pip install \
45+
"future==0.17.1" \
46+
"flake8==3.7.7"
47+
48+
# LibrePCB's unittests expect that there is a USERNAME environment variable
49+
ENV USERNAME="root"

0 commit comments

Comments
 (0)