From 4965dfb109a82afab31f3c40e032d31d0a31f52e Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 7 Feb 2024 15:49:39 +0100 Subject: [PATCH 1/3] sync excludes/container_exit.sh friom ob Signed-off-by: Christian Goll --- leap/container_exit.sh | 8 +++----- leap/excludes | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/leap/container_exit.sh b/leap/container_exit.sh index ae90b89..d614449 100755 --- a/leap/container_exit.sh +++ b/leap/container_exit.sh @@ -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 diff --git a/leap/excludes b/leap/excludes index b43f415..72735c2 100644 --- a/leap/excludes +++ b/leap/excludes @@ -1,3 +1,3 @@ /boot/ -/var/tmp -/usr/share/GeoIP +/usr/share/doc +/usr/share/man From a1720d99e25000a098891c0f6bb48d965187311a Mon Sep 17 00:00:00 2001 From: Christian Goll Date: Wed, 7 Feb 2024 15:55:20 +0100 Subject: [PATCH 2/3] added tumbleweed container Signed-off-by: Christian Goll --- tumbleweed/Containerfile | 54 ++++++++++++++++++++++++++++++++++++ tumbleweed/container_exit.sh | 4 +++ tumbleweed/excludes | 3 ++ 3 files changed, 61 insertions(+) create mode 100644 tumbleweed/Containerfile create mode 100755 tumbleweed/container_exit.sh create mode 100644 tumbleweed/excludes diff --git a/tumbleweed/Containerfile b/tumbleweed/Containerfile new file mode 100644 index 0000000..482ef69 --- /dev/null +++ b/tumbleweed/Containerfile @@ -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" ] diff --git a/tumbleweed/container_exit.sh b/tumbleweed/container_exit.sh new file mode 100755 index 0000000..d614449 --- /dev/null +++ b/tumbleweed/container_exit.sh @@ -0,0 +1,4 @@ +#!/bin/bash +export LANG=C LC_CTYPE=C +set -x +zypper clean -a diff --git a/tumbleweed/excludes b/tumbleweed/excludes new file mode 100644 index 0000000..72735c2 --- /dev/null +++ b/tumbleweed/excludes @@ -0,0 +1,3 @@ +/boot/ +/usr/share/doc +/usr/share/man From 6c8e43fa916cb0a50def7dc857ca5f75fa56d351 Mon Sep 17 00:00:00 2001 From: Jonathon Anderson Date: Fri, 7 Jun 2024 23:23:32 -0600 Subject: [PATCH 3/3] Build tumbleweed container with ci/cd Signed-off-by: Jonathon Anderson --- .github/workflows/container-publish.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/container-publish.yml b/.github/workflows/container-publish.yml index 8e4fe66..9d2f7c3 100644 --- a/.github/workflows/container-publish.yml +++ b/.github/workflows/container-publish.yml @@ -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