Add kubectl utility
This commit is contained in:
parent
c3e3ff0959
commit
d801fe60a1
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -6,4 +6,5 @@ Common docker image used for running application builds, CI pipelines, and deplo
|
|||
|
||||
- `docker`
|
||||
- `curl`
|
||||
- `git`
|
||||
- `git`
|
||||
- `kubectl`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue