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