Sign inSign up

badouralix/curl-jq-yq

By badouralix

•Updated 3 months ago

Smallest docker image with curl, jq and yq

Image
Networking
0

10K+

badouralix/curl-jq-yq repository overview

⁠curl-jq-yq

Docker Pulls Docker Stars Docker Image Version (latest by date) Docker Image Size (latest by date)

This Dockerfile embeds both curl, jq and yq, and can be used to run complex extractions on remote json or yaml resources.

See the repo on Docker Hub⁠.

⁠Usage

⁠Shell mode
$ docker run -it --rm badouralix/curl-jq-yq
/ # curl https://hub.docker.com/api/build/v1/source/?image=badouralix%2Ftoolbox 2>/dev/null | jq '.objects[0]'
{
  "autotests": "OFF",
  "build_in_farm": true,
  "build_settings": [
    "/api/build/v1/setting/cbb58db1-5001-499a-8d1a-d549535fc077/"
  ],
  "channel": "Stable",
  "image": "badouralix/toolbox",
  "owner": "badouralix",
  "provider": "Github",
  "repo_links": true,
  "repository": "dockerfiles",
  "resource_uri": "/api/build/v1/source/e985c621-a0af-40d4-b84b-f01ae12a0b64/",
  "state": "Success",
  "uuid": "e985c621-a0af-40d4-b84b-f01ae12a0b64"
}
⁠Inline mode
$ docker run --rm badouralix/curl-jq-yq sh -c "curl https://hub.docker.com/api/build/v1/source/?image=badouralix%2Ftoolbox 2>/dev/null | jq '.objects[0]'"
{
  "autotests": "OFF",
  "build_in_farm": true,
  "build_settings": [
    "/api/build/v1/setting/cbb58db1-5001-499a-8d1a-d549535fc077/"
  ],
  "channel": "Stable",
  "image": "badouralix/toolbox",
  "owner": "badouralix",
  "provider": "Github",
  "repo_links": true,
  "repository": "dockerfiles",
  "resource_uri": "/api/build/v1/source/e985c621-a0af-40d4-b84b-f01ae12a0b64/",
  "state": "Success",
  "uuid": "e985c621-a0af-40d4-b84b-f01ae12a0b64"
}

⁠License

Unless expressly stated otherwise, all contents licensed under the MIT License⁠.

Tag summary

Content type

Image

Digest

sha256:7159e7a8f…

Size

11.9 MB

Last updated

3 months ago

docker pull badouralix/curl-jq-yq