Run systemd in tests

Signed-off-by: Christian König <ckoenig@posteo.de>
tests_systemd_new
Christian König 1 year ago
parent 097e758cb6
commit 90862e6fc6
No known key found for this signature in database

@ -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"]

@ -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"]

@ -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"]

@ -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"]

@ -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"]

@ -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"]

@ -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"]

@ -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"]

Loading…
Cancel
Save