high-yak-85899
03/22/2022, 5:11 PMpants.toml
setting was great to set up something like [docker.registries.aws-ecr]
so that I could refer to them. However, one of my images depends on a base image we store in that registry. It seems like I still have to do FROM <my long registry ID>/<image name>:<image tag>
instead of just FROM <image name>:<image tag>
. My target configuration looks like this
docker_image(
name = "gnc_ground",
registries = ["@aws-ecr"],
tags = ["ground_software_service"],
)
high-yak-85899
03/22/2022, 5:12 PMDockerfile
as well?fast-nail-55400
03/22/2022, 5:14 PMARG base_image
FROM ${base_image}
fast-nail-55400
03/22/2022, 5:15 PMhigh-yak-85899
03/22/2022, 5:16 PMhigh-yak-85899
03/22/2022, 5:18 PMcurved-television-6568
03/22/2022, 5:22 PMhigh-yak-85899
03/22/2022, 5:23 PMpants.toml
so it's not too bad for now.curved-television-6568
03/22/2022, 5:23 PMhigh-yak-85899
03/22/2022, 5:25 PM[docker]
build_args = ["ECR_ID=<my registry ID>"]
and then in the Dockerfile, I did
ARG ECR_ID
FROM ${ECR_ID}/<base image>:<image tag>
. Hopefully that keeps each Dockerfile
more tunable.