Hello, what would it take for us to be able to sou...
# general
l
Hello, what would it take for us to be able to source the tag for a docker image from a file, as opposed to a string/env var that we refer to in the BUILD file? (Thinking of something similar to the remote_tags feature of rules_oci in the bazel world) Would be happy to make this contribution if it's something maintainers are willing to entertain
Going to get started by trying out a custom plugin: https://www.pantsbuild.org/stable/docs/docker/tagging-docker-images#providing-additional-image-tags-with-a-plugin, but this seems like a reasonable thing to first-class in
docker_image
e
Haven't tried this myself, but you ought to be able to just add this to a .pants.bootstrap file.
(ie. as a setup step, read the file and set the env variables that you want. Then your
docker_image
target can expect env vars.)
l
Hm, that'd work - but was explicitly hoping to depend on something like the output of
vcs_version
to provide the image tag (for consistency between images & other published artifacts like wheels)