Skip to content

Commit

Permalink
Add centos-stream-9 dokken image
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Aug 5, 2023
1 parent 67dd2f6 commit 8c952f8
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
cinc/cinc: 'cinc/cinc/**'
doctl: 'doctl/**'
dokken/centos-7: 'dokken/centos-7/**'
dokken/centos-stream-9: 'dokken/centos-stream-9/**'
dokken/oraclelinux-7: 'dokken/oraclelinux-7/**'
dokken/oraclelinux-8: 'dokken/oraclelinux-8/**'
dokken/oraclelinux-9: 'dokken/oraclelinux-9/**'
Expand Down
2 changes: 2 additions & 0 deletions dokken/centos-stream-9/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Polly.toml
test/
64 changes: 64 additions & 0 deletions dokken/centos-stream-9/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
ARG CONTAINER_REGISTRY=quay.io
FROM $CONTAINER_REGISTRY/centos/centos:stream9

LABEL \
org.opencontainers.image.source="https://github.com/polymathrobotics/oci" \
org.opencontainers.image.licenses="Apache-2.0" \
org.opencontainers.image.description="CentOS Stream 9 image for kitchen-dokken"

# NOTE: CentOS Stream 9 is still under heavy development
# hadolint ignore=DL3041
RUN <<EOF
dnf --allowerasing -y install \
binutils \
ca-certificates \
cronie \
curl \
dmidecode \
e2fsprogs \
ethtool \
file \
glibc-langpack-en \
gnupg2 \
hostname \
initscripts \
iproute \
iptables \
iputils \
lsof \
nc \
net-tools \
nmap \
openssl \
passwd \
procps \
strace \
sudo \
systemd-sysv \
systemd-udev \
tcpdump \
telnet \
util-linux \
vim-minimal \
wget \
libxcrypt-compat \
which
dnf upgrade -y
dnf clean all
rm -rf /var/log/*
find /etc/systemd/system \
/lib/systemd/system \
-path '*.wants/*' \
\( -name '*getty*' \
-or -name '*dnf-makecache*' \
-or -name '*kdump*' \
-or -name '*systemd-logind*' \
-or -name '*systemd-vconsole-setup*' \
-or -name '*systemd-readahead*' \
-or -name '*udev*' \) \
-exec rm -v {} \;
systemctl set-default multi-user.target
systemctl mask dev-hugepages.mount sys-fs-fuse-connections.mount network.service systemd-journal-flush.service
EOF

CMD [ "/usr/lib/systemd/systemd" ]
5 changes: 5 additions & 0 deletions dokken/centos-stream-9/Polly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[container_image]
name = "dokken-oraclelinux-9"
tags = [ "latest" ]
readme = "dokken/README.md"
platforms=["linux/arm64","linux/amd64"]
3 changes: 3 additions & 0 deletions dokken/centos-stream-9/test/controls/oraclelinux-9.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
describe file('/etc/os-release') do
its('content') { should match(/Oracle Linux Server 9/) }
end

0 comments on commit 8c952f8

Please sign in to comment.