https://pantsbuild.org/ logo
#general
Title
# general
w

wooden-thailand-8386

05/26/2022, 8:26 PM
Hey, idk if this is useful or not for others but I’m using both
awslambda
and
google_cloud_function
targets and as the documentation predicted (https://www.pantsbuild.org/docs/awslambda-python) it is failing on MacOS. So I’ve created a little Dockerfile as a workaround for running
pants package
locally. I’ll share in a thread if you folks think it might be useful to put as an “example” on the Docs page.
Dockerfile.dockerfile
I build it normally with
docker build . -t linux-pyenv
and then use it with pants to package my lambdas >
Copy code
docker run --rm -it -v $(pwd):/app linux-pyenv bash -c "cd /app && ./pants package my_lambda::"
c

curved-television-6568

05/26/2022, 8:38 PM
Thanks for sharing! ❤️
p

polite-garden-50641

05/26/2022, 9:03 PM
3 Views