Skip to content

Commit

Permalink
Add centos-9 and debian-bullseye distros (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgalsaleh authored Oct 2, 2024
1 parent 7cf3fc7 commit b861a72
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
25 changes: 25 additions & 0 deletions dev/distros/dockerfiles/centos-9.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM quay.io/centos/centos:stream9

# Install necessary packages
RUN dnf install -y \
sudo \
systemd \
openssh-server \
ca-certificates \
bash \
coreutils \
curl \
procps-ng \
ipvsadm \
kmod \
iproute \
chrony \
expect \
vim \
--allowerasing

# Export kube config
ENV KUBECONFIG=/var/lib/k0s/pki/admin.conf

# Default command to run systemd
CMD ["/sbin/init"]
26 changes: 26 additions & 0 deletions dev/distros/dockerfiles/debian-bullseye.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM debian:bullseye-slim

# Install necessary packages
RUN apt-get update && apt-get install -y \
sudo \
systemd \
openssh-server \
ca-certificates \
bash \
coreutils \
curl \
inotify-tools \
ipvsadm \
kmod \
iproute2 \
systemd-timesyncd \
expect \
vim

# Override timesyncd config to allow it to run in containers
COPY ./timesyncd-override.conf /etc/systemd/system/systemd-timesyncd.service.d/override.conf

# Export kube config
ENV KUBECONFIG=/var/lib/k0s/pki/admin.conf

CMD ["/sbin/init"]

0 comments on commit b861a72

Please sign in to comment.