-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add centos-9 and debian-bullseye distros (#1272)
- Loading branch information
Showing
2 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |