snowdrop-zen / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
1 stars 0 forks source link

Add support for setting labels for container-image-docker #412

Closed snowdrop-bot closed 3 years ago

snowdrop-bot commented 3 years ago

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 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>

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#L181


https://github.com/quarkusio/quarkus/issues/19903


$upstream:19903$