-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathContainerfile.ubuntu
More file actions
58 lines (49 loc) · 1.39 KB
/
Containerfile.ubuntu
File metadata and controls
58 lines (49 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Run Test in Docker on Ubuntu
#
# This is not straightforward as we launch a graphical application
FROM ubuntu:24.04
# Set environment variables to prevent interactive prompts during apt-get
ENV DEBIAN_FRONTEND=noninteractive
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
# Install packages
RUN apt-get update \
&& apt-get install -y \
meson \
ninja-build \
python3-pip \
python3-dev \
python3-distutils-extra \
build-essential \
libgstreamer1.0-0 \
libgstreamer1.0-dev \
libgtk-3-0 \
libgtk-3-dev \
gir1.2-gtk-3.0 \
gir1.2-gst* \
python3-gi \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-ugly \
gstreamer1.0-fdkaac \
gstreamer1.0-libav \
xvfb \
dbus-x11 \
x11-utils \
procps \
desktop-file-utils \
libgtk-3-0 \
libglib2.0-0
# Set the working directory to the application's source code
WORKDIR /app
COPY . /app
# Install the application with proper permissions
RUN mkdir -p /usr/local/share/locale \
&& chmod 777 /usr/local/share/locale \
&& meson setup builddir --prefix=/usr --wipe \
&& meson install -C builddir
# Copy the corrected script to run tests with Xvfb and make it executable
COPY tests/run_tests_docker.sh /usr/local/bin/run_tests_docker.sh
RUN chmod +x /usr/local/bin/run_tests_docker.sh
CMD ["run_tests_docker.sh"]