Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/container-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ jobs:
version: "9.6"
context: rockylinux-9
file: rockylinux-9/Containerfile-9.6
- os: rockylinux
version: "10"
context: rockylinux-10
file: rockylinux-10/Containerfile
- os: rockylinux
version: "10.0"
context: rockylinux-10
file: rockylinux-10/Containerfile-10.0
- os: almalinux
version: "8"
context: almalinux-8
Expand All @@ -71,6 +79,14 @@ jobs:
version: "9.6"
context: almalinux-9
file: almalinux-9/Containerfile-9.6
- os: almalinux
version: "10"
context: almalinux-10
file: almalinux-10/Containerfile
- os: almalinux
version: "10.0"
context: almalinux-10
file: almalinux-10/Containerfile-10.0
- os: leap
version: "15"
context: leap
Expand Down Expand Up @@ -104,8 +120,10 @@ jobs:
run: |
make -C rockylinux-8
make -C rockylinux-9
make -C rockylinux-10
make -C almalinux-8
make -C almalinux-9
make -C almalinux-10

# Install the cosign tool
# https://github.com/sigstore/cosign-installer
Expand Down
1 change: 1 addition & 0 deletions almalinux-10/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Containerfile-10.*
44 changes: 44 additions & 0 deletions almalinux-10/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM docker.io/library/almalinux:10

RUN dnf update -y \
&& dnf install -y --allowerasing \
coreutils \
cpio \
e2fsprogs \
ethtool \
findutils \
initscripts \
ipmitool \
iproute \
kernel-core \
kernel-modules \
net-tools \
NetworkManager \
nfs-utils \
openssh-clients \
openssh-server \
pciutils \
psmisc \
rsync \
rsyslog \
strace \
wget \
which \
words \
&& dnf remove -y selinux-policy \
&& dnf clean all

RUN chmod u+w / # https://github.com/openhpc/ohpc/issues/2061
# remove unused dynamic system user
RUN userdel systemd-oom && \
userdel systemd-coredump

COPY excludes /etc/warewulf/
COPY container_exit.sh /etc/warewulf/
RUN /etc/warewulf/container_exit.sh

CMD [ "/bin/echo", "-e", \
"This image is intended to be used with the Warewulf cluster management and", \
"\nprovisioning system.", \
"\n", \
"\nFor more information about Warewulf, visit https://warewulf.org" ]
50 changes: 50 additions & 0 deletions almalinux-10/Containerfile-fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM docker.io/library/almalinux:${release}

RUN sed -i /etc/yum.repos.d/almalinux*.repo \
-e 's/^# baseurl=/baseurl=/' \
-e 's/^mirrorlist=/# mirrorlist=/' \
-e 's/\$releasever/${release}/' \
&& dnf clean all

RUN dnf update -y \
&& dnf install -y --allowerasing \
coreutils \
cpio \
e2fsprogs \
ethtool \
findutils \
initscripts \
ipmitool \
iproute \
kernel-core \
kernel-modules \
net-tools \
NetworkManager \
nfs-utils \
openssh-clients \
openssh-server \
pciutils \
psmisc \
rsync \
rsyslog \
strace \
wget \
which \
words \
&& dnf remove -y selinux-policy \
&& dnf clean all

RUN chmod u+w / # https://github.com/openhpc/ohpc/issues/2061
# remove unused dynamic system user
RUN userdel systemd-oom && \
userdel systemd-coredump

COPY excludes /etc/warewulf/
COPY container_exit.sh /etc/warewulf/
RUN /etc/warewulf/container_exit.sh

CMD [ "/bin/echo", "-e", \
"This image is intended to be used with the Warewulf cluster management and", \
"\nprovisioning system.", \
"\n", \
"\nFor more information about Warewulf, visit https://warewulf.org" ]
51 changes: 51 additions & 0 deletions almalinux-10/Containerfile-vault
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
FROM docker.io/library/almalinux:${release}

RUN sed -i /etc/yum.repos.d/almalinux*.repo \
-e 's/^# baseurl=/baseurl=/' \
-e 's/^mirrorlist=/# mirrorlist=/' \
-e 's/\$releasever/${release}/' \
-e 's|/almalinux/|/vault/|' \
&& dnf clean all

RUN dnf update -y \
&& dnf install -y --allowerasing \
coreutils \
cpio \
e2fsprogs \
ethtool \
findutils \
initscripts \
ipmitool \
iproute \
kernel-core \
kernel-modules \
net-tools \
NetworkManager \
nfs-utils \
openssh-clients \
openssh-server \
pciutils \
psmisc \
rsync \
rsyslog \
strace \
wget \
which \
words \
&& dnf remove -y selinux-policy \
&& dnf clean all

RUN chmod u+w / # https://github.com/openhpc/ohpc/issues/2061
# remove unused dynamic system user
RUN userdel systemd-oom && \
userdel systemd-coredump

COPY excludes /etc/warewulf/
COPY container_exit.sh /etc/warewulf/
RUN /etc/warewulf/container_exit.sh

CMD [ "/bin/echo", "-e", \
"This image is intended to be used with the Warewulf cluster management and", \
"\nprovisioning system.", \
"\n", \
"\nFor more information about Warewulf, visit https://warewulf.org" ]
12 changes: 12 additions & 0 deletions almalinux-10/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.PHONY: all
all: Containerfile-10.0

.PHONY: clean
clean:
rm -f Containerfile-10.*

Containerfile-10.%: Containerfile-vault
env release=10.$* envsubst '$$release' <Containerfile-vault >$@

Containerfile-10.0: Containerfile-fixed
env release=10.0 envsubst '$$release' <Containerfile-fixed >$@
21 changes: 21 additions & 0 deletions almalinux-10/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# AlmaLinux 10

A Warewulf container definition based on AlmaLinux 10.

```
wwctl container import docker://ghcr.io/warewulf/warewulf-almalinux:10 almalinux-10
```

Also available are definitions for individual point releases (e.g., AlmaLinux
10.0). To generate these Containerfiles, run `make`.

The AlmaLinux community provides updates for the current point release of
AlmaLinux 10. If you need to remain on a specific point release you may want
to engage with a commercial support provider for long-term support.

**Note:** These container images are configured to minimize size. If you desire for
man-pages and other documentation to be available to users, e.g. on login-nodes,
the `/etc/yum.conf` and `/etc/dnf/dnf.conf` flag `tsflags=nodocs` needs
to be removed before installing additional packages.

https://almalinux.org/support
16 changes: 16 additions & 0 deletions almalinux-10/container_exit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh

echo "
The AlmaLinux community provides updates for the latest point release of
AlmaLinux 10. If you need to remain on a specific point release (e.g.,
AlmaLinux 10.0) you may want to engage with a commercial support provider for
long-term support.

https://almalinux.org/support
"

export LANG=C LC_CTYPE=C

set -x
dnf clean all
rm -f /etc/machine-id /var/lib/dbus/machine-id
1 change: 1 addition & 0 deletions almalinux-10/excludes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/boot/
7 changes: 6 additions & 1 deletion almalinux-9/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Alma Linux 9
# AlmaLinux 9

A Warewulf container definition based on AlmaLinux 9.

Expand All @@ -13,4 +13,9 @@ The AlmaLinux community provides updates for the current point release of
AlmaLinux 9. If you need to remain on a specific point release you may want
to engage with a commercial support provider for long-term support.

**Note:** These container images are configured to minimize size. If you desire for
man-pages and other documentation to be available to users, e.g. on login-nodes,
the `/etc/yum.conf` and `/etc/dnf/dnf.conf` flag `tsflags=nodocs` needs
to be removed before installing additional packages.

https://almalinux.org/support
1 change: 1 addition & 0 deletions rockylinux-10/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Containerfile-10.*
44 changes: 44 additions & 0 deletions rockylinux-10/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM docker.io/rockylinux/rockylinux:10

RUN dnf update -y \
&& dnf install -y --allowerasing \
coreutils \
cpio \
e2fsprogs \
ethtool \
findutils \
initscripts \
ipmitool \
iproute \
kernel-core \
kernel-modules \
net-tools \
NetworkManager \
nfs-utils \
openssh-clients \
openssh-server \
pciutils \
psmisc \
rsync \
rsyslog \
strace \
wget \
which \
words \
&& dnf remove -y selinux-policy \
&& dnf clean all

RUN chmod u+w / # https://github.com/openhpc/ohpc/issues/2061
# remove unused dynamic system user
RUN userdel systemd-oom && \
userdel systemd-coredump

COPY excludes /etc/warewulf/
COPY container_exit.sh /etc/warewulf/
RUN /etc/warewulf/container_exit.sh

CMD [ "/bin/echo", "-e", \
"This image is intended to be used with the Warewulf cluster management and", \
"\nprovisioning system.", \
"\n", \
"\nFor more information about Warewulf, visit https://warewulf.org" ]
50 changes: 50 additions & 0 deletions rockylinux-10/Containerfile-fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
FROM docker.io/rockylinux/rockylinux:${release}

RUN sed -i /etc/yum.repos.d/rocky*.repo \
-e 's/^#baseurl=/baseurl=/' \
-e 's/^mirrorlist=/#mirrorlist=/' \
-e 's/\$releasever/${release}/' \
&& dnf clean all

RUN dnf update -y \
&& dnf install -y --allowerasing \
coreutils \
cpio \
e2fsprogs \
ethtool \
findutils \
initscripts \
ipmitool \
iproute \
kernel-core \
kernel-modules \
net-tools \
NetworkManager \
nfs-utils \
openssh-clients \
openssh-server \
pciutils \
psmisc \
rsync \
rsyslog \
strace \
wget \
which \
words \
&& dnf remove -y selinux-policy \
&& dnf clean all

RUN chmod u+w / # https://github.com/openhpc/ohpc/issues/2061
# remove unused dynamic system user
RUN userdel systemd-oom && \
userdel systemd-coredump

COPY excludes /etc/warewulf/
COPY container_exit.sh /etc/warewulf/
RUN /etc/warewulf/container_exit.sh

CMD [ "/bin/echo", "-e", \
"This image is intended to be used with the Warewulf cluster management and", \
"\nprovisioning system.", \
"\n", \
"\nFor more information about Warewulf, visit https://warewulf.org" ]
Loading