Add kubectl utility

This commit is contained in:
Hornwitser 2024-07-13 16:17:23 +02:00
parent c3e3ff0959
commit d801fe60a1
2 changed files with 8 additions and 2 deletions

View file

@ -1,5 +1,7 @@
FROM debian:bookworm
ARG KUBE_RELEASE=v1.30.2
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
@ -21,7 +23,10 @@ RUN set -eux; \
docker-buildx-plugin \
docker-compose-plugin \
; \
curl --silent --location "https://dl.k8s.io/release/$KUBE_RELEASE/bin/linux/amd64/kubectl" \
| install --owner=root --group=root --mode=0755 /dev/stdin /usr/local/bin/kubectl \
; \
rm -rf /var/lib/apt/lists/*
# References:
# - docker: https://docs.docker.com/engine/install/debian/#install-from-a-package
# - docker: https://docs.docker.com/engine/install/debian/#install-from-a-package

View file

@ -6,4 +6,5 @@ Common docker image used for running application builds, CI pipelines, and deplo
- `docker`
- `curl`
- `git`
- `git`
- `kubectl`