proud-appointment-36730
06/21/2022, 9:31 PM.whl
file from a python_distribution
target into the build context for a docker_image
target? Or is this an anti-pattern? Works great for pex_binary
, but there is no output_path
argument for a python_distribution
. And how do I also enforce a dependency on a python_distribution
target in my docker_image
target?bitter-ability-32190
06/21/2022, 10:18 PMbitter-ability-32190
06/21/2022, 10:19 PMhappy-kitchen-89482
06/21/2022, 10:23 PMdocker_image
build context. No, @curved-television-6568? The problem might be knowing what exact path it's at.bitter-ability-32190
06/21/2022, 10:38 PMproud-appointment-36730
06/21/2022, 10:40 PMarchive
target that assembled the wheels built from all the python_distribution
targets I'm interesting in. archive
targets are available in the build context, so I just copy that into the image, unpack it, and install all the wheels it containsproud-appointment-36730
06/21/2022, 10:43 PMarchive(
name="web-tarball",
packages=[
"src/python/org/services/silly_web_backend:silly_web_backend-dist",
"src/python:org-libs"
],
format="tar.gz"
)
docker_image(
name="web_backend",
dependencies=[
":msg",
":web-tarball",
":image_scripts"
]
)
Which means you have access to <http://path.to|path.to>.docker.target/web-tarball.tar.gz
in the build context