From 132d24121eefcc9021f92ee44bf595ee4ed35e2a Mon Sep 17 00:00:00 2001 From: Alexandre Lamarre Date: Mon, 15 Apr 2024 13:14:22 -0400 Subject: [PATCH] add kubectl to dapper Signed-off-by: Alexandre Lamarre --- Dockerfile.dapper | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile.dapper b/Dockerfile.dapper index 2d15a735..aeda2e0a 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -37,6 +37,9 @@ RUN if [ "${ARCH}" != "s390x" ]; then \ chmod +x /usr/local/bin/mc; \ fi RUN curl --fail https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | TAG=v5.4.6 K3D_INSTALL_DIR="/usr/local/bin" bash +RUN curl -LO --fail "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/${ARCH}/kubectl" && \ + chmod +x kubectl && \ + mv kubectl /usr/local/bin/kubectl ENV DAPPER_ENV REPO TAG DRONE_TAG CROSS CROSS_ARCH USE_DOCKER_BUILDX ENV DAPPER_SOURCE /go/src/github.com/rancher/backup-restore-operator/