yq Docker & Self-Hosted Deployment

GitHub

Yq is a portable command-line YAML, JSON, XML, CSV, TOML, HCL and properties processor

15,779 stars Go Go 1 file ยท ~4,409 tokens #bash#cli#csv#devops-tools#golang#hcl#json#portable
1. Pull Image (DOCKERHUB) docker pull mikefarah/yq:latest
2. Docker Run (1-Click Launch) docker run -d --name yq --restart always mikefarah/yq:latest
3. Podman Run podman run -d --name yq --restart always mikefarah/yq:latest
4. Skopeo Inspect (Zero-Pull Manifest) skopeo inspect docker://docker.io/mikefarah/yq:latest
5. ORAS Pull (OCI Artifact) oras pull mikefarah/yq:latest
github-action/Dockerfile
FROM mikefarah/yq:4@sha256:11a1f0b604b13dbbdc662260d8db6f644b22d8553122a25c1b5b2e8713ca6977

COPY entrypoint.sh /entrypoint.sh

# github action recommendation is to run as root.
# https://docs.github.com/en/actions/creating-actions/dockerfile-support-for-github-actions#user
USER root

ENTRYPOINT ["/entrypoint.sh"]