Repository navigation
Expand file tree
/
Copy pathContainerfile.test
More file actions
42 lines (34 loc) · 1.66 KB
/
Copy pathContainerfile.test
File metadata and controls
42 lines (34 loc) · 1.66 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
FROM quay.io/389ds/ci-images:fedora
RUN dnf copr enable @389ds/perl-Mozilla-LDAP -y
RUN dnf install -y bzip2 bind-utils coreutils-common \
cracklib-dicts hostname openssl procps-ng psmisc \
python3-pytest npm nodejs rust cargo rpm-build \
libatomic lld libasan libevent-devel libtalloc-devel \
libtevent-devel libubsan libdrm mesa-libgbm \
libxshmfence webkit2gtk3 passwd cockpit dbus-glib \
openldap-clients perl-Mozilla-LDAP python3-cryptography \
python3-numpy python3-plotly python3-matplotlib \
net-snmp net-snmp-utils libnl3-devel uv \
krb5-server krb5-workstation && \
dnf clean all
RUN uv pip install --system pytest-html pytest-custom_exit_code flaky pytest-playwright playwright python-slugify testimony
RUN playwright install
RUN cargo install cargo-license --root /usr
# Workaround for Firefox build that contains an older libstdc++
COPY --chmod=755 fix_pw.sh /usr/local/bin/fix_pw.sh
RUN /usr/local/bin/fix_pw.sh
# Clean up systemd services that we don't need in a container
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in *; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/*;\
rm -f /etc/systemd/system/*.wants/*;\
rm -f /lib/systemd/system/local-fs.target.wants/*; \
rm -f /lib/systemd/system/sockets.target.wants/*udev*; \
rm -f /lib/systemd/system/sockets.target.wants/*initctl*; \
rm -f /lib/systemd/system/basic.target.wants/*;\
rm -f /lib/systemd/system/*makecache.timer \
rm -f /lib/systemd/system/anaconda.target.wants/*;
ADD 99-sysctl.conf /etc/sysctl.d/99-sysctl.conf
RUN sed -i -e 's/root//g' /etc/cockpit/disallowed-users
RUN mkdir /workspace
WORKDIR /workspace
CMD ["/sbin/init"]