full-window-78652
11/08/2024, 9:38 PMcomplete_platforms
file on linux following this guide
docker run --entrypoint='/bin/sh' -it --platform linux/amd64 --rm python:3.10-slim -c "python -m pip install pex >/dev/null 2>&1 && pex3 interpreter inspect --markers --tags --indent=2" > linux_amd64_py310.json
• Add file
target to BUILD file for PEX binaries like
file(
name="linux_amd64_py310",
source="linux_amd64_py310.json",
)
• Add complete_platforms=[":linux_amd64_py310"]
to pex_binary
target args
• Add build_platform=["linux/amd64"]
to docker_image
target args
Note: We only need to create the image for a single platform (eg linux/amd64
) but we would like to be able build the image and run the container locally on both mac and linux. We will also build the image as part of CI.broad-processor-92400
11/10/2024, 10:29 PMfull-window-78652
11/11/2024, 5:24 PM