curl-jq-yq
Smallest docker image with curl, jq and yq
8.0K
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.
$ 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"
}
$ 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"
}
Unless expressly stated otherwise, all contents licensed under the MIT License.
Content type
Image
Digest
sha256:7159e7a8f…
Size
11.9 MB
Last updated
13 days ago
docker pull badouralix/curl-jq-yq