https://pantsbuild.org/ logo
w

worried-painter-31382

07/07/2022, 8:38 PM
Planning to use pants to build docker images using pex as a "build environment" in a multi-stage build (we use python:3.10-slim + lambdaric). The images are deployed via aws cdk stacks.
Current thinking Is to just always invoke pants in the cdk app. Is there value in creating a aws cdk pants plugin instead? Not sure how the docker image targets could be inferred from cdk-construct code. Somehow addresses needs to be picked up.
e

enough-analyst-54434

07/07/2022, 8:49 PM
Hopefully you've already found: https://pex.readthedocs.io/en/v2.1.94/recipes.html#pex-app-in-a-container If not, take a look!
👍 1
For the 1st part, not the CDK part.
✔️ 1
w

worried-painter-31382

07/07/2022, 8:52 PM
Yep!
5 Views