badouralix/curl-jq

By badouralix

Updated 13 days ago

Smallest docker image with curl and jq

Image
Networking
7

5M+

badouralix/curl-jq repository overview

curl-jq

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

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

See the repo on Docker Hub.

Usage

Shell mode
$ docker run -it --rm badouralix/curl-jq
/ # 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 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:1e7c0284e

Size

6.4 MB

Last updated

13 days ago

docker pull badouralix/curl-jq