Skip to content

jq Container Image

Minimal Alpine-based image for the jq JSON processor.

Features

  • Installs the latest packaged jq binary on top of the curated Alpine base image used across niclas-zone/ctr.
  • Ships fast-digest tags so CI pipelines always pull the same contents for a given version.
  • Perfect for scripting JSON manipulation steps without bloating your job image.
  • GitLab CI Component at niclas-zone/ci/jq.

Usage

Pull the image

podman pull registry.gitlab.com/niclas-zone/ctr/jq:latest

Run jq against input

podman run --rm \
  -v $(pwd):/work \
  -w /work \
  registry.gitlab.com/niclas-zone/ctr/jq:latest \
  jq '.version' package.json

GitLab CI snippet

jq:
  image: registry.gitlab.com/niclas-zone/ctr/jq:latest
  script:
    - jq '.version' package.json

Author

Niclas Heinz

Contributing

Contributions are welcome! Please open an issue or submit a merge request if you have suggestions or improvements.

License

This project is licensed under the MIT License. See LICENSE for details.