1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-07-29 10:28:21 +00:00

Run systemd in tests

Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
Christian König 2022-11-29 23:24:31 +01:00
parent 4e28b76161
commit aad7ffe00a
8 changed files with 84 additions and 12 deletions

View File

@ -1,5 +1,13 @@
FROM quay.io/centos/centos:stream8
RUN yum install -y git initscripts
RUN yum install -y git systemd
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*
ENV GITDIR /etc/.pihole
ENV SCRIPTDIR /opt/pihole
@ -15,4 +23,4 @@ RUN true && \
ENV SKIP_INSTALL true
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
#sed '/# Start the installer/Q' /opt/pihole/basic-install.sh > /opt/pihole/stub_basic-install.sh && \
CMD ["/usr/sbin/init"]

View File

@ -1,5 +1,13 @@
FROM quay.io/centos/centos:stream9
RUN yum install -y --allowerasing curl git initscripts
RUN yum install -y --allowerasing curl git systemd
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*
ENV GITDIR /etc/.pihole
ENV SCRIPTDIR /opt/pihole
@ -15,4 +23,4 @@ RUN true && \
ENV SKIP_INSTALL true
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
#sed '/# Start the installer/Q' /opt/pihole/basic-install.sh > /opt/pihole/stub_basic-install.sh && \
CMD ["/usr/sbin/init"]

View File

@ -1,5 +1,15 @@
FROM buildpack-deps:buster-scm
RUN apt-get update && apt-get -y install systemd systemd-sysv
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*
ENV GITDIR /etc/.pihole
ENV SCRIPTDIR /opt/pihole
@ -14,4 +24,4 @@ RUN true && \
ENV SKIP_INSTALL true
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
#sed '/# Start the installer/Q' /opt/pihole/basic-install.sh > /opt/pihole/stub_basic-install.sh && \
CMD ["/bin/systemd"]

View File

@ -1,5 +1,15 @@
FROM buildpack-deps:bullseye-scm
RUN apt-get update && apt-get -y install systemd systemd-sysv
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*
ENV GITDIR /etc/.pihole
ENV SCRIPTDIR /opt/pihole
@ -14,4 +24,4 @@ RUN true && \
ENV SKIP_INSTALL true
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
#sed '/# Start the installer/Q' /opt/pihole/basic-install.sh > /opt/pihole/stub_basic-install.sh && \
CMD ["/bin/systemd"]

View File

@ -1,5 +1,13 @@
FROM fedora:35
RUN dnf install -y git initscripts
RUN dnf install -y git systemd
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*
ENV GITDIR /etc/.pihole
ENV SCRIPTDIR /opt/pihole
@ -15,4 +23,4 @@ RUN true && \
ENV SKIP_INSTALL true
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
#sed '/# Start the installer/Q' /opt/pihole/basic-install.sh > /opt/pihole/stub_basic-install.sh && \
CMD ["/usr/sbin/init"]

View File

@ -1,5 +1,13 @@
FROM fedora:36
RUN dnf install -y git initscripts
RUN dnf install -y git systemd
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*
ENV GITDIR /etc/.pihole
ENV SCRIPTDIR /opt/pihole
@ -15,4 +23,4 @@ RUN true && \
ENV SKIP_INSTALL true
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
#sed '/# Start the installer/Q' /opt/pihole/basic-install.sh > /opt/pihole/stub_basic-install.sh && \
CMD ["/usr/sbin/init"]

View File

@ -1,5 +1,15 @@
FROM buildpack-deps:focal-scm
RUN apt-get update && apt-get -y install systemd systemd-sysv
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*
ENV GITDIR /etc/.pihole
ENV SCRIPTDIR /opt/pihole
@ -15,4 +25,4 @@ RUN true && \
ENV SKIP_INSTALL true
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
#sed '/# Start the installer/Q' /opt/pihole/basic-install.sh > /opt/pihole/stub_basic-install.sh && \
CMD ["/bin/systemd"]

View File

@ -1,5 +1,15 @@
FROM buildpack-deps:jammy-scm
RUN apt-get update && apt-get -y install systemd systemd-sysv
RUN rm -f /lib/systemd/system/multi-user.target.wants/* \
/etc/systemd/system/*.wants/* \
/lib/systemd/system/local-fs.target.wants/* \
/lib/systemd/system/sockets.target.wants/*udev* \
/lib/systemd/system/sockets.target.wants/*initctl* \
/lib/systemd/system/sysinit.target.wants/systemd-tmpfiles-setup* \
/lib/systemd/system/systemd-update-utmp*
ENV GITDIR /etc/.pihole
ENV SCRIPTDIR /opt/pihole
@ -15,4 +25,4 @@ RUN true && \
ENV SKIP_INSTALL true
ENV OS_CHECK_DOMAIN_NAME dev-supportedos.pi-hole.net
#sed '/# Start the installer/Q' /opt/pihole/basic-install.sh > /opt/pihole/stub_basic-install.sh && \
CMD ["/bin/systemd"]