forked from gardener/gardener
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 1021 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 1021 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM kindest/node:v1.33.4@sha256:25a6018e48dfcaee478f4a59af81157a437f15e6e140bf103f85a2e7cd0cbbf2
RUN apt-get update -yq && \
apt-get install -yq --no-install-recommends wget apparmor apparmor-utils jq openssh-server sudo logrotate
# remove kind's kubelet unit
RUN rm -f /etc/systemd/system/kubelet.service && \
rm -rf /etc/systemd/system/kubelet.service.d/
# copy containerd hosts configurations for local registry mirrors
COPY containerd /etc/containerd/certs.d/
# names with colon are not allowed in the directory name checked into Git as it breaks go mod if gardener/gardener is used as a module
RUN mv /etc/containerd/certs.d/garden.local.gardener.cloud_5001 /etc/containerd/certs.d/garden.local.gardener.cloud:5001
# add our userdata executor unit
COPY run-userdata.sh /run-userdata.sh
COPY run-userdata.service /etc/systemd/system
RUN systemctl enable run-userdata.service
RUN runc --version ; containerd --version
RUN chmod 755 /etc/sysctl.d/
ENTRYPOINT ["/usr/local/bin/entrypoint", "/sbin/init"]