Skip to content

Commit 56ade2b

Browse files
committed
[curl-jq-yq] commit for a dream
Fixes #23
1 parent 16c4aca commit 56ade2b

13 files changed

+108
-0
lines changed

.github/workflows/schedule.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- caddy-dns-ovh
1515
- curl-http2
1616
- curl-jq
17+
- curl-jq-yq
1718
- easy-blake2s
1819
- oh-my-via
1920
- python-scrapy

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ See the repo on [Docker Hub](https://hub.docker.com/u/badouralix/).
4040
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/badouralix/curl-jq?logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq)
4141
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/badouralix/curl-jq?label=size&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq)
4242

43+
- [*curl-jq-yq*](https://hub.docker.com/r/badouralix/curl-jq-yq) - alpine-based docker image with `curl`, `jq` and `yq` \
44+
[![Docker Pulls](https://img.shields.io/docker/pulls/badouralix/curl-jq-yq?label=pulls&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq-yq)
45+
[![Docker Stars](https://img.shields.io/docker/stars/badouralix/curl-jq-yq?label=stars&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq-yq)
46+
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/badouralix/curl-jq-yq?logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq-yq)
47+
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/badouralix/curl-jq-yq?label=size&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq-yq)
48+
4349
- [*deplacement-covid-19*](https://hub.docker.com/r/badouralix/deplacement-covid-19) - alpine-based docker image serving the official covid-19 générateur d'attestation de déplacement dérogatoire \
4450
[![Docker Pulls](https://img.shields.io/docker/pulls/badouralix/deplacement-covid-19?label=pulls&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/deplacement-covid-19)
4551
[![Docker Stars](https://img.shields.io/docker/stars/badouralix/deplacement-covid-19?label=stars&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/deplacement-covid-19)

curl-jq-yq/README.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# curl-jq-yq
2+
3+
[![Docker Pulls](https://img.shields.io/docker/pulls/badouralix/s-yq?label=pulls&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq-yq)
4+
[![Docker Stars](https://img.shields.io/docker/stars/badouralix/curl-jq-yq?label=stars&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq-yq)
5+
[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/badouralix/curl-jq-yq?logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq-yq)
6+
[![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/badouralix/curl-jq-yq?label=size&logo=docker&logoColor=white)](https://hub.docker.com/r/badouralix/curl-jq-yq)
7+
8+
This **Dockerfile** embeds both `curl`, `jq` and `yq`, and can be used to run complex extractions on remote json or yaml resources.
9+
10+
See the repo on [Docker Hub](https://hub.docker.com/r/badouralix/curl-jq-yq/).
11+
12+
## Usage
13+
14+
### Shell mode
15+
16+
```bash
17+
$ docker run -it --rm badouralix/curl-jq-yq
18+
/ # curl https://hub.docker.com/api/build/v1/source/?image=badouralix%2Ftoolbox 2>/dev/null | jq '.objects[0]'
19+
{
20+
"autotests": "OFF",
21+
"build_in_farm": true,
22+
"build_settings": [
23+
"/api/build/v1/setting/cbb58db1-5001-499a-8d1a-d549535fc077/"
24+
],
25+
"channel": "Stable",
26+
"image": "badouralix/toolbox",
27+
"owner": "badouralix",
28+
"provider": "Github",
29+
"repo_links": true,
30+
"repository": "dockerfiles",
31+
"resource_uri": "/api/build/v1/source/e985c621-a0af-40d4-b84b-f01ae12a0b64/",
32+
"state": "Success",
33+
"uuid": "e985c621-a0af-40d4-b84b-f01ae12a0b64"
34+
}
35+
```
36+
37+
### Inline mode
38+
39+
```bash
40+
$ 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]'"
41+
{
42+
"autotests": "OFF",
43+
"build_in_farm": true,
44+
"build_settings": [
45+
"/api/build/v1/setting/cbb58db1-5001-499a-8d1a-d549535fc077/"
46+
],
47+
"channel": "Stable",
48+
"image": "badouralix/toolbox",
49+
"owner": "badouralix",
50+
"provider": "Github",
51+
"repo_links": true,
52+
"repository": "dockerfiles",
53+
"resource_uri": "/api/build/v1/source/e985c621-a0af-40d4-b84b-f01ae12a0b64/",
54+
"state": "Success",
55+
"uuid": "e985c621-a0af-40d4-b84b-f01ae12a0b64"
56+
}
57+
```
58+
59+
## License
60+
61+
Unless expressly stated otherwise, all contents licensed under the [MIT License](https://github.com/badouralix/dockerfiles/blob/main/LICENSE).

curl-jq-yq/alpine/.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hooks/
2+
platforms.txt

curl-jq-yq/alpine/Dockerfile

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM alpine:latest
2+
3+
# Set non-built-time labels
4+
LABEL org.opencontainers.image.authors="Ayaz BADOURALY"
5+
LABEL org.opencontainers.image.description="Smallest docker image with curl, jq and yq"
6+
7+
# Install curl, jq and yq
8+
RUN apk add --no-cache curl jq yq

curl-jq-yq/alpine/platforms.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/386,linux/arm/v7,linux/arm/v6

curl-jq-yq/debian/.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hooks/
2+
platforms.txt

curl-jq-yq/debian/Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM debian:latest
2+
3+
# Set non-built-time labels
4+
LABEL org.opencontainers.image.authors="Ayaz BADOURALY"
5+
LABEL org.opencontainers.image.description="Smallest docker image with curl, jq and yq"
6+
7+
# Install curl, jq and yq
8+
RUN apt-get update && \
9+
apt-get install --assume-yes --no-install-recommends curl jq yq && \
10+
rm -rf /var/cache/apt/* /var/lib/apt/lists/* && \
11+
rm -rf /tmp/* /var/tmp/*

curl-jq-yq/debian/platforms.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/arm/v7,linux/arm/v6

curl-jq-yq/latest

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alpine

curl-jq-yq/ubuntu/.dockerignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
hooks/
2+
platforms.txt

curl-jq-yq/ubuntu/Dockerfile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ubuntu:latest
2+
3+
# Set non-built-time labels
4+
LABEL org.opencontainers.image.authors="Ayaz BADOURALY"
5+
LABEL org.opencontainers.image.description="Smallest docker image with curl, jq and yq"
6+
7+
# Install curl, jq and yq
8+
RUN apt-get update && \
9+
apt-get install --assume-yes --no-install-recommends curl jq yq && \
10+
rm -rf /var/cache/apt/* /var/lib/apt/lists/* && \
11+
rm -rf /tmp/* /var/tmp/*

curl-jq-yq/ubuntu/platforms.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7

0 commit comments

Comments
 (0)