From 6ab69c134115aedc14fe93c69c1db964f50ed883 Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sat, 13 Jul 2024 18:32:28 +0200 Subject: [PATCH] Add yq to builder --- Dockerfile | 5 +++++ Readme.md | 1 + 2 files changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0627457..0fe753f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM debian:bookworm ARG KUBE_RELEASE=v1.30.2 +ARG YQ_VERSION=v4.44.2 RUN set -eux; \ apt-get update; \ @@ -27,6 +28,10 @@ RUN set -eux; \ 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 \ ; \ + curl --silent --location "https://github.com/mikefarah/yq/releases/download/$YQ_VERSION/yq_linux_amd64.tar.gz" \ + | tar --extract --gzip --to-stdout ./yq_linux_amd64 \ + | install --owner=root --group=root --mode=0755 /dev/stdin /usr/local/bin/yq \ + ; \ rm -rf /var/lib/apt/lists/* # References: diff --git a/Readme.md b/Readme.md index f97df6b..47bf031 100644 --- a/Readme.md +++ b/Readme.md @@ -9,3 +9,4 @@ Common docker image used for running application builds, CI pipelines, and deplo - `git` - `kubectl` - `ssh` +- `yq` - https://github.com/mikefarah/yq