sshpiper/e2e/kubetools/Dockerfile
Boshi Lian b8db060584
fix e2e (#540)
* Update docker-compose.yml

* Update docker-compose.yml and Dockerfile: simplify kind load command and upgrade kind version to v0.27.0

* Comment out Docker installation steps in Dockerfile

* Revert "Comment out Docker installation steps in Dockerfile"

This reverts commit 242e5c638958cb4227d99c85d2cae13214b74513.
2025-03-12 00:54:49 -07:00

24 lines
No EOL
762 B
Docker

FROM ubuntu
RUN apt-get update && apt-get install -y \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release
RUN curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.27.0/kind-linux-amd64 && \
chmod +x ./kind && \
mv ./kind /bin/kind
RUN curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && \
chmod +x ./kubectl && \
mv ./kubectl /bin/kubectl
RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
RUN echo "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
RUN apt-get update && apt-get install -y docker-ce-cli