straight-action-80318
09/19/2022, 11:22 PM./pants package
that lets me bundle everything together, and then use EMR’s Docker support to run my code remotely? I’m not sure how to create an environment for the workers, although I assume there’s a way to install the Pants repo into the docker such that it’s available for the workers?
I think if I wasn’t using Pants, what I would do is setup a docker container such that my repo has been pip install
’d, that way all of the imports work for the Python.happy-kitchen-89482
09/20/2022, 4:35 PM./pants package
can build a docker image that contains your python code and its requirements, all ready to run. See this blog post for a lot of detail on how to do this efficiently (you may not care about the performance issues at first, in which case you can experiment with just the simpler examples in that post)happy-kitchen-89482
09/20/2022, 4:35 PMcrooked-country-1937
09/20/2022, 8:59 PMcrooked-country-1937
09/20/2022, 9:00 PMhappy-kitchen-89482
09/20/2022, 10:37 PMstraight-action-80318
09/21/2022, 12:15 AM