https://pantsbuild.org/ logo
#general
Title
# general
a

aloof-appointment-30987

03/06/2023, 2:29 PM
Docker Questions 1. I have a default, private registry configured (in pants.toml) and the registry address is included in the image name. Is it possible to: a. package docker images such that their name is "my-company/target-name" without a registry address URL prefix b. tag each image with appropriate registry tags 2. Where can I find more info regarding
docker_environment
? `docker_environment`target docs infers some details my novice experience doesn't quite posses yet. The docker example repo doesn't include this detail and it looks quite promising for configuring production platform details as well as possibly simplifying some Apple Silicon challenges we have in our software.
c

curved-television-6568

03/06/2023, 2:48 PM
Hi, I’ll answer 1. a) If you set
registries=[]
in your
docker_image
target (or as default using
__defaults__
) it will not use your default configured registry. https://www.pantsbuild.org/docs/reference-docker_image#coderegistriescode https://www.pantsbuild.org/docs/targets#field-default-values b) https://www.pantsbuild.org/docs/tagging-docker-images#tagging-images
e

enough-analyst-54434

03/06/2023, 2:49 PM
c

curved-television-6568

03/06/2023, 2:50 PM
for b) there are also
extra_image_tags
if you need per registry tags https://www.pantsbuild.org/docs/tagging-docker-images#configuring-registries
a

aloof-appointment-30987

03/06/2023, 2:56 PM
Thank you very much!
3 Views