Skip to content

Commit c8a979c

Browse files
authored
Merge pull request #79 from GuangJie1/main
Add openEuler node image
2 parents 9af3128 + e92e3ff commit c8a979c

File tree

5 files changed

+70
-0
lines changed

5 files changed

+70
-0
lines changed

.github/workflows/container-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,10 @@ jobs:
103103
version: "12.0"
104104
context: debian
105105
file: debian/Containerfile-12.0
106+
- os: openeuler
107+
version: "24.03"
108+
context: openeuler-24.03
109+
file: openeuler-24.03/Containerfile
106110

107111
permissions:
108112
contents: read

openeuler-24.03/Containerfile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
FROM docker.io/openeuler/openeuler:24.03-lts-sp2
2+
3+
RUN dnf install -y --allowerasing \
4+
kernel \
5+
kernel-devel \
6+
kernel-headers \
7+
kernel-modules \
8+
python3-dnf-plugin-versionlock \
9+
coreutils \
10+
cpio \
11+
dhclient \
12+
e2fsprogs \
13+
ethtool \
14+
findutils \
15+
initscripts \
16+
ipmitool \
17+
iproute \
18+
ncurses \
19+
net-tools \
20+
NetworkManager \
21+
nfs-utils \
22+
openssh-clients \
23+
openssh-server \
24+
pciutils \
25+
policycoreutils-python-utils \
26+
psmisc \
27+
rsync \
28+
rsyslog \
29+
strace \
30+
selinux-policy-targeted \
31+
wget \
32+
which \
33+
words \
34+
rdma-core \
35+
&& dnf clean all
36+
37+
COPY excludes /etc/warewulf/
38+
COPY container_exit.sh /etc/warewulf/
39+
RUN chmod +x /etc/warewulf/container_exit.sh
40+
41+
ENV LANG=C.UTF-8
42+
43+
CMD [ "/bin/echo", "-e", \
44+
"This image is intended to be used with the Warewulf cluster management and", \
45+
"\nprovisioning system.", \
46+
"\n", \
47+
"\nFor more information about Warewulf, visit https://warewulf.org" ]

openeuler-24.03/README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# openEuler 24.03
2+
3+
A Warewulf container definition based on openEuler 24.03.
4+
5+
```
6+
podman build . -t warewulf/warewulf-openeuler:24.03
7+
```
8+
9+
As service packs (SP) for the LTS version are released regularly,
10+
we also need to update the openEuler image version used in the Containerfile periodically.

openeuler-24.03/container_exit.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -x
3+
LANG=C
4+
LC_CTYPE=C
5+
export LANG LC_CTYPE
6+
dnf clean all
7+
rm -f /etc/machine-id /var/lib/dbus/machine-id

openeuler-24.03/excludes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/boot/
2+
/usr/share/GeoIP

0 commit comments

Comments
 (0)