-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (19 loc) · 942 Bytes
/
Dockerfile
File metadata and controls
28 lines (19 loc) · 942 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
25
26
27
28
FROM ubuntu:24.04
RUN apt-get update && \
apt-get install -y \
curl \
docker.io \
dumb-init
ENV KUBECTL_VERSION="v1.32.2"
RUN mkdir -p /usr/local/bin \
&& curl -L https://dl.k8s.io/release/v1.32.0/bin/linux/amd64/kubectl -o /usr/local/bin/kubectl \
&& chmod +x /usr/local/bin/kubectl
ENV CRICTL_VERSION="v1.32.0"
RUN curl -sLf https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz --output crictl-${CRICTL_VERSION}-linux-amd64.tar.gz \
&& tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/bin \
&& rm -f crictl-$CRICTL_VERSION-linux-amd64.tar.gz
COPY entrypoint.sh /usr/bin/
RUN echo "runtime-endpoint: unix:///run/k3s/containerd/containerd.sock" > /etc/crictl.yaml \
&& echo "image-endpoint: unix:///run/k3s/containerd/containerd.sock" >> /etc/crictl.yaml
ENTRYPOINT ["/usr/bin/dumb-init", "--"]
CMD ["entrypoint.sh"]