–
Test command line tool oras
Create artifact:
echo blarg >artifact.txt
Upload:
oras push localhost:5000/test:latest artifact.txt
Download:
oras pull localhost:5000/test:latest --output out
Check:
cat out/artifact.txt
–
Check contents of registry
Check registry:
curl http://localhost:5000/v2/test/tags/list
curl -sH "Accept: application/vnd.oci.image.manifest.v1+json" \
http://localhost:5000/v2/test/manifests/latest | jq
Get content:
DIGEST=$(curl -sH "Accept: application/vnd.oci.image.manifest.v1+json" \
http://localhost:5000/v2/test/manifests/latest \
| jq --raw-output '.layers[].digest')
curl -sH "Accept: application/vnd.oci.image.manifest.v1+json" \
http://localhost:5000/v2/test/blobs/${DIGEST}