I have a dumb question: let's say I want to have a...
# general
p
I have a dumb question: let's say I want to have a python script upload a pex file to a GCS bucket... how do I do that? Do i set the pex_binary target as a dependency? How do I find the path 🤔
TL;DR: I'm trying to get around sending my context to some remote build infrastructure on each container build in the remote infrastructure. Roughly I'm thinking: • package pex • Upload pex, name it the sha256 - if it doesn't exist • Template dockerfile with buildarg pointing to download the pex by it's sha. This way the remote build's container layer cache is used if the sha doesn't change Remote infrastructure here is some IOT container image building stuff.
e
If it must be a python script, write a pex_binary target for it too, then add it and all other needed PEXes as execution dependencies to: https://www.pantsbuild.org/docs/reference-run_shell_command Then you have a tiny bash shell script string that runs the 1 PEX against the others.