Skip to content

Commit

Permalink
Add containers for Debian and particularly 12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cfelipesp authored and anderbubble committed Dec 9, 2023
1 parent 8616b32 commit 87242e5
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/container-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ jobs:
version: latest
context: leap
file: leap/Containerfile
- os: debian
version: "12.0"
context: debian
file: debian/Containerfile-12.0

permissions:
contents: read
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
* Ryan Thomson <[email protected]>
* Brian Phan <[email protected]>
* Simppa Äkäslompolo (@sjjamsa)
* Carlos Felipe S Pinheiro <[email protected]>
31 changes: 31 additions & 0 deletions debian/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM debian


# ----- install vital packages -----
ENV DEBIAN_FRONTEND teletype
RUN apt-get update && apt-get install -y --no-install-recommends \
kmod \
systemd-sysv \
dbus \
openssh-client \
openssh-server \
isc-dhcp-client \
pciutils \
strace \
nfs-common \
ethtool\
ifupdown \
linux-image-$(dpkg --print-architecture) \
ifmetric \
netbase && \
rm -rf /var/lib/apt/lists/*


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

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" ]
31 changes: 31 additions & 0 deletions debian/Containerfile-12.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM debian:12.0


# ----- install vital packages -----
ENV DEBIAN_FRONTEND teletype
RUN apt-get update && apt-get install -y --no-install-recommends \
kmod \
systemd-sysv \
dbus \
openssh-client \
openssh-server \
isc-dhcp-client \
pciutils \
strace \
nfs-common \
ethtool\
ifupdown \
linux-image-$(dpkg --print-architecture) \
ifmetric \
netbase && \
rm -rf /var/lib/apt/lists/*


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

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" ]
6 changes: 6 additions & 0 deletions debian/container_exit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh
set -x
LANG=C
LC_CTYPE=C
export LANG LC_CTYPE
apt-get clean
1 change: 1 addition & 0 deletions debian/excludes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/boot/

0 comments on commit 87242e5

Please sign in to comment.