1 FROM library/alpine:3.8
3 RUN apk -U upgrade && apk add ca-certificates util-linux gnupg curl make kmod procps bash && gpg --keyserver https://download.docker.com/linux/debian/gpg --recv-keys && apk update && apk add docker openrc && rm -rf /var/lib/apt/lists/*
4 RUN update-alternatives --set iptables /usr/sbin/iptables-legacy || true && update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy || true && update-alternatives --set arptables /usr/sbin/arptables-legacy || true
5 RUN addgroup --system dockremap && adduser --system --ingroup dockremap dockremap && echo 'dockremap:165536:65536' >> /etc/subuid && echo 'dockremap:165536:65536' >> /etc/subgid
11 COPY entrypoint.sh /entrypoint.sh
12 RUN chmod 777 /entrypoint.sh
14 ARG KUBECTL_VERSION=v1.21.2
15 ARG KIND_VERSION=v0.11.1
17 RUN curl -Lso /usr/bin/kubectl "https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl" && chmod +x /usr/bin/kubectl && curl -Lso /usr/bin/kind "https://github.com/kubernetes-sigs/kind/releases/download/${KIND_VERSION}/kind-linux-amd64" && chmod +x /usr/bin/kind # buildkit
19 COPY kind-config.yaml /kind-config.yaml
20 RUN chmod 777 /kind-config.yaml
24 COPY entrypoint-original.sh /entrypoint-original.sh
25 RUN chmod 777 /entrypoint-original.sh
27 ENTRYPOINT ["/entrypoint.sh"]
28 CMD ["tail", "-f", "/dev/null"]