/docker-yq

yq (yaml parser) docker image without the bloat

Primary LanguageMakefileMIT LicenseMIT

docker-yq

A tiny ~9MB* (uncompressed) statically linked yq docker image. A separate image tag is provided that comes packaged alongside busybox.

* The busybox image variant adds an additional ~1MB to the image size.

Supports most upstream alpine docker platforms:

  • linux/amd64
  • linux/arm64
  • linux/arm/v7
  • linux/arm/v6
  • linux/386
  • linux/ppc64le
  • linux/s390x

Why

This is a purpose-built image that works great as a Kubernetes init container.

Pull

docker pull ghcr.io/egladman/yq:4.27.2
docker pull ghcr.io/egladman/yq:4.27.2-busybox
docker pull docker.io/egladman/yq:4.27.2
docker pull docker.io/egladman/yq:4.27.2-busybox

Usage

docker run --rm yq:4.27.2 yq --version

Build

make
make IMG_VARIANT=busybox

Acknowledgements