Skip to content

How to set layer annotation? #944

Answered by qweeah
rgl asked this question in Q&A
May 9, 2023 · 3 comments · 6 replies
Discussion options

You must be logged in to vote

Also, worth mentioning that it's not a good practice to use absolute path when pushing artifacts, when you pull the uploaded $zot_host/tinkerbell-debian-osie/vmlinuz:latest, the layer vmlinuz will be downloaded to exactly into /tmp/tmp.LEeZgNO4F7.debian-osie/live/.

If you expect the artifact to be downloaded relatively into $WORK_DIR/live/ymlinuz, you may run the command like

pushd $t
echo '{"live/vmlinuz":{"foo":"bar"}}' > anno.json
oras push \
    --plain-http \
    --artifact-type application/octet-stream \
    --annotation org.opencontainers.image.title=vmlinuz \
    "$zot_host/tinkerbell-debian-osie/vmlinuz:latest" \
    "live/vmlinuz" \
    --annotation-file anno.json
popd

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sajayantony
Comment options

Comment options

You must be logged in to vote
5 replies
@qweeah
Comment options

@qweeah
Comment options

@rgl
Comment options

@qweeah
Comment options

Answer selected by rgl
@qweeah
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants