Skip to content

Commit

Permalink
Merge pull request #49 from mslacken/TWLeap
Browse files Browse the repository at this point in the history
Adding openSUSE tumbleweed image
  • Loading branch information
anderbubble authored Jun 8, 2024
2 parents a456b1a + 6c8e43f commit cd065d3
Show file tree
Hide file tree
Showing 6 changed files with 70 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/container-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ jobs:
version: latest
context: leap
file: leap/Containerfile
- os: tumbleweed
version: latest
context: tumbleweed
file: tumbleweed/Containerfile
- os: debian
version: "12.0"
context: debian
Expand Down
8 changes: 3 additions & 5 deletions leap/container_exit.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#!/bin/sh
#!/bin/bash
export LANG=C LC_CTYPE=C
set -x
LANG=C
LC_CTYPE=C
export LANG LC_CTYPE
zypper clean --all
zypper clean -a
4 changes: 2 additions & 2 deletions leap/excludes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/boot/
/var/tmp
/usr/share/GeoIP
/usr/share/doc
/usr/share/man
54 changes: 54 additions & 0 deletions tumbleweed/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FROM opensuse/tumbleweed:latest
RUN zypper update -y \
&& zypper install -yt pattern \
base \
&& zypper install -y \
bash \
coreutils \
cpio \
cronie \
e2fsprogs \
ethtool \
filesystem \
findutils \
gawk \
grep \
gzip \
ipmitool \
iproute2 \
iputils \
kernel-default \
less \
net-tools \
nfs-client \
openssh-clients \
openssh-server \
pam \
pciutils \
psmisc \
rsync \
rsyslog \
sed \
strace \
sudo \
tar \
tcpdump \
timezone \
util-linux \
vim \
wget \
which \
wicked \
words \
zypper \
&& zypper clean \
&& systemctl enable sshd

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" ]
4 changes: 4 additions & 0 deletions tumbleweed/container_exit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
export LANG=C LC_CTYPE=C
set -x
zypper clean -a
3 changes: 3 additions & 0 deletions tumbleweed/excludes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/boot/
/usr/share/doc
/usr/share/man

0 comments on commit cd065d3

Please sign in to comment.