Provide extra tags when building a OCI recipe

Asked by Thomas Bechtold on 2021-05-20

The CPC team wants to use launchpad to build the ubuntu base images. The base images will be based on tarballs provided by https://partner-images.canonical.com/oci/ .
These tarballs have a so called SERIAL (a date) (see https://partner-images.canonical.com/oci/impish/current/unpacked/build-info.txt) which we want to add as a tag. Similar to what is done on dockerhub. There is eg. focal-20210416 (see https://hub.docker.com/_/ubuntu ).
Is there a way to add extra tags when uploading via launchpad without editing the recipe?

Question information

Language:
English Edit question
Status:
Answered
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Tom Wardill (twom) said :
#1

No, we only support the official format for ROCKs tags (appversion-ubuntuversion), with the edge risk (for a final tag example of v1.0-20.04_edge).
There's no way to set custom tags even if the recipe is edited.

You could add this as a BUILD_ARG and pass it to the Dockerfile, but that would still require an edit of the recipe, these can't be defined at build request time. These also cannot be used as registry tags.

Can you help with this problem?

Provide an answer of your own, or ask Thomas Bechtold for more information if necessary.

To post a message you must log in.