proud-appointment-36730
07/11/2022, 10:38 PMdocker_image targets only support dependency inference on paths that "look like" the outputs of pex_binary targets? Or, can you directly put target addresses anywhere in the Dockerfile and have the dependency inference work? So if, for example I had a Dockerfile with:
FROM path/to/my/parent/docker/image:target
RUN pip install path/to/a/python_distribution:target
Would pants infer the dependency on both the parent docker image and the python package automatically, and inject the output paths for those targets into the build context automatically? I'm digging through the source code now but I honestly can't really figure out if it supports anything beyond FROM target_address and COPY output_path_that_can_be_mapped_to_a_targethappy-kitchen-89482
07/11/2022, 11:09 PMhappy-kitchen-89482
07/11/2022, 11:26 PMhappy-kitchen-89482
07/11/2022, 11:27 PMhappy-kitchen-89482
07/11/2022, 11:28 PMpex_binary targets you can infer deps on, but any target that is "packageable" (i.e., that ./pants package applies to)happy-kitchen-89482
07/11/2022, 11:29 PMthousands-plumber-33255
07/12/2022, 7:41 AMFROM. Is that really true as I cannot find this to be documented? What about COPY --from=parent-image?curved-television-6568
07/12/2022, 9:05 AMdocker_image target: https://www.pantsbuild.org/docs/reference-docker_imagecurved-television-6568
07/12/2022, 9:05 AMFROM instruction only, not for the COPY --from..curved-television-6568
07/12/2022, 9:05 AMcurved-television-6568
07/12/2022, 9:06 AMpex_binary targets only, but it is now any packageable target not just pex ones.proud-appointment-36730
07/12/2022, 2:21 PMCOPY ! And in the FROM lines, will it only infer dependencies if you embed a target address there? Or will it detect an image URI that's in one of the image registries set up in your config, then search your repo for other docker_image targets that package and publish an image to the registry and image tag in the FROM line and infer a dependency on the matching docker_image target automatically?proud-appointment-36730
07/12/2022, 2:30 PM