elegant-park-52418
11/13/2024, 2:23 PMdocker_image
target. is there an existing pattern i can follow to achieve this?elegant-park-52418
11/13/2024, 2:26 PMcurved-television-6568
11/13/2024, 3:01 PMelegant-park-52418
11/13/2024, 3:01 PMcurved-television-6568
11/13/2024, 3:01 PMelegant-park-52418
11/13/2024, 3:02 PMcurved-television-6568
11/13/2024, 3:02 PMcurved-television-6568
11/13/2024, 3:03 PMFileSourceField
type..curved-television-6568
11/13/2024, 3:04 PMelegant-park-52418
11/13/2024, 3:08 PMcurved-television-6568
11/13/2024, 3:18 PMoutput = FileSourceFieldand then comment out https://gist.github.com/vito-laurenza-zocdoc/fc9e0b8434d8632e9120dbbd530066ea#file-targets-py-L24-L27 this ought to indicate how to generate a file source from your custom target, which will then be included in the docker build context.
elegant-park-52418
11/13/2024, 3:19 PMcurved-television-6568
11/13/2024, 3:20 PMcurved-television-6568
11/13/2024, 3:21 PMcurved-television-6568
11/13/2024, 3:22 PMcurved-television-6568
11/13/2024, 3:23 PMcurved-television-6568
11/13/2024, 3:24 PMelegant-park-52418
11/13/2024, 3:46 PMDockerImageSourceField
that provides any value. i don't want my users to need to do anything other than use the my_docker_image
target in place of docker_image
.elegant-park-52418
11/13/2024, 3:48 PMcurved-television-6568
11/13/2024, 4:00 PMelegant-park-52418
11/13/2024, 4:29 PMoutput = FileSourceField
elegant-park-52418
11/13/2024, 4:29 PMcurved-television-6568
11/13/2024, 5:23 PMelegant-park-52418
11/13/2024, 7:13 PMelegant-park-52418
11/15/2024, 4:36 PMgorgeous-winter-99296
11/15/2024, 6:30 PMelegant-park-52418
11/15/2024, 7:42 PMelegant-park-52418
11/15/2024, 7:42 PMelegant-park-52418
11/15/2024, 7:42 PMgorgeous-winter-99296
11/15/2024, 7:48 PMelegant-park-52418
11/15/2024, 7:49 PMelegant-park-52418
11/15/2024, 7:49 PMelegant-park-52418
11/15/2024, 7:50 PMgorgeous-winter-99296
11/15/2024, 7:50 PMelegant-park-52418
11/15/2024, 7:51 PMUnionRule(GenerateTargetsRequest, GenerateMyDockerImageTargetsRequest)
elegant-park-52418
11/15/2024, 7:51 PMelegant-park-52418
11/15/2024, 7:51 PMelegant-park-52418
11/15/2024, 7:51 PMDockerContextFilesAcceptableInputsField.register(...)
gorgeous-winter-99296
11/15/2024, 7:52 PMUnionRule(GenerateSourcesRequest, GenerateKubernetesFromKustomizeRequest)
?elegant-park-52418
11/15/2024, 7:53 PMelegant-park-52418
11/15/2024, 7:53 PMelegant-park-52418
11/15/2024, 7:53 PMelegant-park-52418
11/15/2024, 7:53 PMelegant-park-52418
11/15/2024, 7:53 PMelegant-park-52418
11/15/2024, 7:53 PMgorgeous-winter-99296
11/15/2024, 7:54 PMelegant-park-52418
11/15/2024, 7:54 PMelegant-park-52418
11/15/2024, 7:54 PMgorgeous-winter-99296
11/15/2024, 7:54 PMgorgeous-winter-99296
11/15/2024, 7:54 PMelegant-park-52418
11/15/2024, 7:55 PMelegant-park-52418
11/15/2024, 7:55 PMDockerContextFilesSourcesField
is one of the source types it requestselegant-park-52418
11/15/2024, 7:55 PMABC.register
hook that should supposedly allow us to register other sources that would work with itelegant-park-52418
11/15/2024, 7:56 PMelegant-park-52418
11/15/2024, 7:57 PMelegant-park-52418
11/15/2024, 7:57 PMgorgeous-winter-99296
11/15/2024, 8:00 PMpants peek
on the various targets involved look right?elegant-park-52418
11/15/2024, 8:00 PMelegant-park-52418
11/15/2024, 8:00 PMgorgeous-winter-99296
11/15/2024, 8:09 PMgorgeous-winter-99296
11/15/2024, 8:10 PMgorgeous-winter-99296
11/15/2024, 8:11 PMpants export-codegen
against your generated file target and seen what happens? If that is even picked upgorgeous-winter-99296
11/15/2024, 8:40 PMgorgeous-winter-99296
11/15/2024, 8:48 PM✦ ❯ pants export-codegen //:foo#my_file && cat dist/codegen/my-file.txt
21:48:10.81 [INFO] Writing generated files to dist/codegen
foo
Your MyDockerImageMyFileTarget has the wrong source fieldelegant-park-52418
11/18/2024, 3:08 PMelegant-park-52418
11/18/2024, 3:52 PM