Skip to content

Commit 5333368

Browse files
committed
improve command output
1 parent bd0f7f6 commit 5333368

File tree

1 file changed

+45
-44
lines changed

1 file changed

+45
-44
lines changed

modules/contributor/pages/project-overview.adoc

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ The following command lists all the different projects the artifacts are distrib
9191

9292
[source,console]
9393
----
94-
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/' | jq '.[] | .name'
95-
"library"
96-
"sandbox"
97-
"sdp"
98-
"sdp-charts"
99-
"stackable"
100-
"stackable-charts"
94+
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/' | jq --raw-output '.[] | .name'
95+
library
96+
sandbox
97+
sdp
98+
sdp-charts
99+
stackable
100+
stackable-charts
101101
----
102102

103103
`sdp` contains the product and operator Docker images. The Helm Charts for the operators are found under `sdp-charts`. Some artifacts like the
@@ -107,23 +107,24 @@ List the Helm Charts in `sdp-charts`:
107107

108108
[source,console]
109109
----
110-
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/sdp-charts/repositories?page_size=20' | jq '.[] | .name'
110+
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/sdp-charts/repositories?page_size=20' | jq --raw-output '.[] | .name'
111111
----
112112

113113
List all available versions of a specific Helm Chart, e.g. the zookeeper-operator:
114114

115115
[source,console]
116116
----
117-
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/sdp-charts/repositories/zookeeper-operator/artifacts' | jq '.[] | .tags[].name'
118-
"0.0.0-dev"
119-
"0.0.0-pr919"
120-
"0.0.0-pr917"
121-
"24.11.1"
122-
"24.11.1-rc2"
123-
"24.11.1-rc1"
124-
"24.11.0"
125-
"24.7.0"
126-
"24.3.0"
117+
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/sdp-charts/repositories/zookeeper-operator/artifacts' | jq --raw-output '.[] | .tags[].name'
118+
0.0.0-dev
119+
0.0.0-pr920
120+
0.0.0-pr919
121+
0.0.0-pr917
122+
24.11.1
123+
24.11.1-rc2
124+
24.11.1-rc1
125+
24.11.0
126+
24.7.0
127+
24.3.0
127128
----
128129

129130
[[docker-images]]
@@ -134,17 +135,17 @@ the `sdp` project, run this command:
134135

135136
[source,console]
136137
----
137-
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/sdp/repositories?page=1' | jq '.[] | .name'
138-
"sdp/statsd_exporter"
139-
"sdp/stackable-cockpit"
140-
"sdp/product1"
141-
"sdp/git-sync/git-sync"
142-
"sdp/sig-storage/csi-provisioner"
143-
"sdp/sig-storage/csi-node-driver-registrar"
144-
"sdp/kcat"
145-
"sdp/java-devel"
146-
"sdp/vector"
147-
"sdp/hello-world"
138+
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/sdp/repositories?page=1' | jq --raw-output '.[] | .name'
139+
sdp/statsd_exporter
140+
sdp/stackable-cockpit
141+
sdp/product1
142+
sdp/git-sync/git-sync
143+
sdp/sig-storage/csi-provisioner
144+
sdp/sig-storage/csi-node-driver-registrar
145+
sdp/kcat
146+
sdp/java-devel
147+
sdp/vector
148+
sdp/hello-world
148149
----
149150

150151
Since the API is using pagination it might be necessary to increment the `page` in the command to see additional results.
@@ -153,21 +154,21 @@ It is also possible to list all the available image tags for a repository of cho
153154

154155
[source,console]
155156
----
156-
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/sdp/repositories/trino/artifacts?page=1&page_size=25' | jq '.[] | select(.extra_attrs.config != {}) | .tags[]?.name'
157-
"470-stackable0.0.0-dev"
158-
"451-stackable0.0.0-dev"
159-
"455-stackable0.0.0-dev"
160-
"470-stackable0.0.0-dev-arm64"
161-
"455-stackable0.0.0-dev-arm64"
162-
"451-stackable0.0.0-dev-arm64"
163-
"470-stackable0.0.0-dev-amd64"
164-
"455-stackable0.0.0-dev-amd64"
165-
"451-stackable0.0.0-dev-amd64"
166-
"469-stackable0.0.0-dev"
167-
"469-stackable0.0.0-dev-arm64"
168-
"469-stackable0.0.0-dev-amd64"
169-
"451-stackable24.11.1"
170-
"455-stackable24.11.1"
157+
$ curl -X GET --header 'Accept: application/json' 'https://oci.stackable.tech/api/v2.0/projects/sdp/repositories/trino/artifacts?page=1&page_size=25' | jq --raw-output '.[] | select(.extra_attrs.config != {}) | .tags[]?.name'
158+
455-stackable0.0.0-dev
159+
451-stackable0.0.0-dev
160+
470-stackable0.0.0-dev
161+
470-stackable0.0.0-dev-arm64
162+
455-stackable0.0.0-dev-arm64
163+
451-stackable0.0.0-dev-arm64
164+
470-stackable0.0.0-dev-amd64
165+
455-stackable0.0.0-dev-amd64
166+
451-stackable0.0.0-dev-amd64
167+
469-stackable0.0.0-dev
168+
469-stackable0.0.0-dev-arm64
169+
469-stackable0.0.0-dev-amd64
170+
451-stackable24.11.1
171+
455-stackable24.11.1
171172
----
172173

173174
Similar to the previous command, the API call uses pagination again. So the `page` value in the command can be incremented to see more results. Here the `page_size`

0 commit comments

Comments
 (0)