Hi! When setting a docker image as an environment ...
# general
f
Hi! When setting a docker image as an environment for targets, is it possible to use an image built by pants as an environment? So let's say I'd use an official python base image and add some tools to it before using it as an environment. And if this image is not already built, could pants be aware that it needs to build it before using it as an environment?
h
I don’t think this currently works, but I would like it to. @fast-nail-55400 / @curved-television-6568 any knowledge on this?
f
I believe it won't work currently since
docker_environment
is set up very early. You would have to first
pants package
the image in one Pants invocation, and then make use of that image as part of a
docker_environent
in a subsequent Pants invocation.
c