Skip to content

A tiny ~2.5MB statically linked jq docker image with good architecture support

License

Notifications You must be signed in to change notification settings

egladman/docker-jq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-jq

A tiny ~2.5MB* statically linked jq docker image. Since jq only supports writing to stdout a separate image tag is provided that comes packaged alongside busybox.

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

Supports all upstream alpine docker platforms:

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

Why

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

Pull

docker pull ghcr.io/egladman/jq:1.6
docker pull ghcr.io/egladman/jq:1.6-busybox
docker pull docker.io/egladman/jq:1.6
docker pull docker.io/egladman/jq:1.6-busybox

Usage

docker run --rm jq:1.6 jq --version

Build

make
make IMG_VARIANT=busybox

Acknowledgements