echoing-farmer-15630
03/10/2022, 3:42 PMdocker_image
target depends on a pex_binary
target, could one tag the pex_binary
targets with one tag and the docker_image
tags with another, build the pex_binary
targets with remote execution on and then use those generated artifacts to build the docker_image
targets locally without recreating the pex targets?happy-kitchen-89482
03/10/2022, 3:48 PMdocker_image
target depends on a pex_binary
then when running package
on the docker_image
, the pex_binary
will be packaged first, and the resulting .pex file will be available to COPY into the docker_image
(in fact if the Dockerfile does COPY the .pex file then Pants can even infer the dependency between the two targets for you!)echoing-farmer-15630
03/10/2022, 3:50 PMpex_binary
first (using remote execution) and then build the consuming docker_image
without using remote execution, does it avoid rebuilding the pex_binary
?happy-kitchen-89482
03/10/2022, 4:02 PMechoing-farmer-15630
03/10/2022, 4:05 PMhappy-kitchen-89482
03/10/2022, 4:09 PMpex_binary
target explicitly specifies its platform as only linux_x86_64, I guessechoing-farmer-15630
03/10/2022, 4:19 PMhappy-kitchen-89482
03/10/2022, 4:21 PMcurved-television-6568
03/10/2022, 4:28 PMdo I have that right?Uh, I’m not sure. Probably? 😬 I’ve not looked for a way to specify the target platform for the pex when requesting it.. that should be a good thing to do there.
happy-kitchen-89482
03/10/2022, 4:34 PMcurved-television-6568
03/10/2022, 5:28 PMplatforms
field, which most likely would be required in order for it to work when building on a Mac.
See: https://github.com/pantsbuild/example-python/pull/78/files#diff-5274b0bd4e38bf378e72565a83cb05861f88932be009e9e0b134a456c9adc430R28witty-crayon-22786
03/10/2022, 6:32 PMechoing-farmer-15630
03/10/2022, 9:54 PM/var/run/docker.sock
file. Hilarious... but it may be working; need to get one of my OSX devs to try it./var/run/docker.sock
... because Docker Desktop on OSX does permissions differently as it runs in a VM so matching group IDs doesn't make as much sense. Everything gotta be hard. Going to ask our DevOps OSX expects how to handle the group permissions.witty-crayon-22786
03/17/2022, 4:17 PM