Skip to content

Commit

Permalink
Merge pull request #88 from h0tw1r3/dnf-support
Browse files Browse the repository at this point in the history
(bugfix) rockylinux 9 images failing
  • Loading branch information
gavindidrichsen committed May 15, 2024
2 parents 9e05490 + ab4104e commit a0aa4f6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 6 deletions.
25 changes: 25 additions & 0 deletions dnf_systemd.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
ARG BASE_IMAGE_TAG
ARG OS_TYPE

FROM $OS_TYPE:$BASE_IMAGE_TAG

ENV container docker

RUN echo "LC_ALL=en_US.utf-8" >> /etc/locale.conf

RUN dnf -y install openssh-server openssh-clients systemd initscripts glibc-langpack-en iproute ; \
dnf -y reinstall dbus ; \
dnf clean all

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/anaconda.target.wants/*;

STOPSIGNAL SIGRTMIN+3

CMD ["/lib/systemd/systemd"]
12 changes: 6 additions & 6 deletions images.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
{ "image": "centos", "tag": "6", "dockerfile": "yum_initd", "platforms": ["amd64"], "base_image": "centos", "base_tag": "6" },
{ "image": "centos", "tag": "7", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "centos", "base_tag": "7" },
{ "image": "centos", "tag": "stream8", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "quay.io/centos/centos", "base_tag": "stream8" },
{ "image": "centos", "tag": "stream9", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "quay.io/centos/centos", "base_tag": "stream9" },
{ "image": "centos", "tag": "stream9", "dockerfile": "dnf_systemd", "platforms": ["amd64"], "base_image": "quay.io/centos/centos", "base_tag": "stream9" },
{ "image": "sles", "tag": "15", "dockerfile": "zypper_systemd", "platforms": ["amd64"], "base_image": "registry.suse.com/suse/sle15", "base_tag": "15.5" },
{ "image": "scientificlinux", "tag": "6", "dockerfile": "yum_initd", "platforms": ["amd64"], "base_image": "scientificlinux/sl", "base_tag": "6" },
{ "image": "scientificlinux", "tag": "7", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "scientificlinux/sl", "base_tag": "7" },
{ "image": "oraclelinux", "tag": "6", "dockerfile": "yum_initd", "platforms": ["amd64"], "base_image": "oraclelinux", "base_tag": "6" },
{ "image": "oraclelinux", "tag": "7", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "oraclelinux", "base_tag": "7" },
{ "image": "oraclelinux", "tag": "8", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "oraclelinux", "base_tag": "8" },
{ "image": "oraclelinux", "tag": "9", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "oraclelinux", "base_tag": "9" },
{ "image": "oraclelinux", "tag": "9", "dockerfile": "dnf_systemd", "platforms": ["amd64"], "base_image": "oraclelinux", "base_tag": "9" },
{ "image": "rockylinux", "tag": "8", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "rockylinux/rockylinux", "base_tag": "8" },
{ "image": "rockylinux", "tag": "9", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "rockylinux/rockylinux", "base_tag": "9" },
{ "image": "rockylinux", "tag": "9", "dockerfile": "dnf_systemd", "platforms": ["amd64"], "base_image": "rockylinux/rockylinux", "base_tag": "9" },
{ "image": "almalinux", "tag": "8", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "almalinux", "base_tag": "8" },
{ "image": "almalinux", "tag": "9", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "almalinux", "base_tag": "9" },
{ "image": "almalinux", "tag": "9", "dockerfile": "dnf_systemd", "platforms": ["amd64"], "base_image": "almalinux", "base_tag": "9" },
{ "image": "redhat", "tag": "7", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "registry.access.redhat.com/ubi7/ubi", "base_tag": "latest" },
{ "image": "redhat", "tag": "8", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "redhat/ubi8", "base_tag": "latest" },
{ "image": "redhat", "tag": "9", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "redhat/ubi9", "base_tag": "latest" },
{ "image": "redhat", "tag": "9", "dockerfile": "dnf_systemd", "platforms": ["amd64"], "base_image": "redhat/ubi9", "base_tag": "latest" },
{ "image": "debian", "tag": "10", "dockerfile": "apt_sysvinit-utils", "platforms": ["amd64"], "base_image": "debian", "base_tag": "10" },
{ "image": "debian", "tag": "11", "dockerfile": "apt_sysvinit-utils", "platforms": ["amd64", "arm64/v8"], "base_image": "debian", "base_tag": "bullseye" },
{ "image": "debian", "tag": "12", "dockerfile": "apt_sysvinit-utils", "platforms": ["amd64", "arm64/v8"], "base_image": "debian", "base_tag": "12" },
{ "image": "amazonlinux", "tag": "2023", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "amazonlinux", "base_tag": "2023" },
{ "image": "amazonlinux", "tag": "2", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "amazonlinux", "base_tag": "2" },
{ "image": "fedora", "tag": "36", "dockerfile": "yum_systemd", "platforms": ["amd64"], "base_image": "fedora", "base_tag": "36" }
{ "image": "fedora", "tag": "36", "dockerfile": "dnf_systemd", "platforms": ["amd64"], "base_image": "fedora", "base_tag": "36" }
]

0 comments on commit a0aa4f6

Please sign in to comment.