When building docker-images with the container-image-docker extension I would like to set metadata via labels for the built image. These labels should be set when performing docker build via the --label option. To specify the labels to be set, there should be a config-option, e.g. quarkus.docker.labelswith type Map<String, String>
Description
When building docker-images with the
container-image-docker
extension I would like to set metadata via labels for the built image. These labels should be set when performingdocker build
via the--label
option. To specify the labels to be set, there should be a config-option, e.g.quarkus.docker.labels
with typeMap<String, String>
Implementation ideas
The arguments for the
docker build
to set the labels could be set within this method: https://github.com/quarkusio/quarkus/blob/888a7bb8074bd56ce72374d390e1ec264dbf97d7/extensions/container-image/container-image-docker/deployment/src/main/java/io/quarkus/container/image/docker/deployment/DockerProcessor.java#L181https://github.com/quarkusio/quarkus/issues/19903
$upstream:19903$