-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathContainerfile.fedora
More file actions
57 lines (48 loc) · 1.22 KB
/
Containerfile.fedora
File metadata and controls
57 lines (48 loc) · 1.22 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
# Run Test in Docker on Fedora
#
# This is not straightforward as we launch a graphical application
FROM fedora:42
# Install packages
RUN dnf install -y \
meson \
ninja \
python3-pip \
python3-devel \
python3-distutils-extra \
gcc \
gtk3 \
gtk3-devel \
gobject-introspection-devel \
gstreamer1 \
gstreamer1-plugins-base \
gstreamer1-plugins-good \
gstreamer1-plugins-bad-free \
gstreamer1-plugins-ugly-free \
gstreamer1-plugins-bad-free-extras \
gstreamer1-plugins-good-extras \
vorbis-tools \
lame \
flac \
wavpack \
opus-tools \
gstreamer1-plugin-libav \
python3-gobject \
xorg-x11-server-Xvfb \
xprop \
xwininfo \
dbus-x11 \
procps-ng \
file \
desktop-file-utils
# Set the working directory to the application's source code
WORKDIR /app
COPY . /app
# Install the application
RUN meson setup --wipe builddir --prefix=/usr
RUN meson install -C builddir
# Copy the script to run tests with Xvfb and make it executable
COPY tests/run_tests_docker.sh /usr/local/bin/run_tests_docker.sh
# Check program presence
RUN ls -l /usr/bin/soundconverter
RUN chmod +x /usr/local/bin/run_tests_docker.sh
CMD ["run_tests_docker.sh"]