rhythmic-glass-66959
08/15/2022, 6:39 PMpython_sources
target to the docker_image
dependencies, but when building the docker image, I got an error message that the file does not exist
.rhythmic-glass-66959
08/15/2022, 6:50 PMfiles
target, it works...refined-addition-53644
08/15/2022, 6:56 PMfile/files
and other package related goals
https://www.pantsbuild.org/docs/docker#adding-dependencies-to-your-docker_image-targetsbitter-ability-32190
08/15/2022, 6:59 PMrhythmic-glass-66959
08/15/2022, 7:04 PMshell_sources
target. Moreover, the documentation for docker_image target suggests that it is possible...rhythmic-glass-66959
08/15/2022, 7:06 PMrefined-addition-53644
08/15/2022, 7:08 PMdependencies
option might just be a copy-paste from another place.
@hundreds-father-404 Any thoughts?bitter-ability-32190
08/15/2022, 7:10 PM--no-process-cleanup
on your ./pants
invocation to see the sandbox the `docker `command is running inbitter-ability-32190
08/15/2022, 7:11 PMbitter-ability-32190
08/15/2022, 7:11 PMrhythmic-glass-66959
08/15/2022, 7:14 PMrhythmic-glass-66959
08/15/2022, 7:17 PMhundreds-father-404
08/15/2022, 7:17 PMI feel like docker_image dependencies option might just be a copy-paste from another place.@hundreds-father-404 Any thoughts? indeed. that's pretty easy to fix, and we should be doing it more generally imo. Mind opening an issue?
bitter-ability-32190
08/15/2022, 7:19 PMThere's no python sources in the sandboxAh yup: https://github.com/pantsbuild/pants/blob/065af0e617da40c0c25c934d253f3ac08349580e/src/python/pants/backend/docker/util_rules/docker_build_context.py#L271 Gahhhh
rhythmic-glass-66959
08/15/2022, 7:23 PMhappy-kitchen-89482
08/15/2022, 7:43 PMhappy-kitchen-89482
08/15/2022, 7:43 PMhappy-kitchen-89482
08/15/2022, 7:44 PMhappy-kitchen-89482
08/15/2022, 7:45 PMhappy-kitchen-89482
08/15/2022, 7:45 PMrhythmic-glass-66959
08/15/2022, 7:53 PMhappy-kitchen-89482
08/15/2022, 8:24 PMrhythmic-glass-66959
08/15/2022, 8:42 PMrhythmic-glass-66959
08/15/2022, 8:43 PMhappy-kitchen-89482
08/15/2022, 9:58 PMhappy-kitchen-89482
08/15/2022, 9:59 PMhundreds-father-404
08/15/2022, 9:59 PMbitter-ability-32190
08/15/2022, 9:59 PMhappy-kitchen-89482
08/15/2022, 10:15 PMhappy-kitchen-89482
08/15/2022, 10:16 PMrhythmic-glass-66959
08/16/2022, 12:34 AMrhythmic-glass-66959
08/16/2022, 12:50 AMbitter-ability-32190
08/16/2022, 12:50 AMhappy-kitchen-89482
08/16/2022, 1:06 AMrhythmic-glass-66959
08/16/2022, 1:40 AMhappy-kitchen-89482
08/16/2022, 2:08 AMhappy-kitchen-89482
08/16/2022, 2:08 AM./pants test
etc. but you donât want to do that when you deploy?rhythmic-glass-66959
08/16/2022, 3:02 AMhappy-kitchen-89482
08/16/2022, 3:15 AMpex_binary
target by prefixing it with !!
(e.g., dependencies=['!!3rdparty#nautobot', '!!3rdparty#django', ...]
etc.happy-kitchen-89482
08/16/2022, 3:15 AM./pants list ::
)happy-kitchen-89482
08/16/2022, 3:15 AM