wooden-kangaroo-30914
06/24/2025, 11:36 AMdocker_image(
name="cmake_image",
repository="cmake_image",
image_tags=["cmake"],
build_platform = ["linux/amd64"],
instructions=[
"FROM python:3.11-slim-bullseye@sha256:f1eb0acc757e945800c4abb56e24f0e69a19db7a9c9e77d57ff27531cd639003",
"RUN apt-get update && apt-get install -y --no-install-recommends unzip cmake build-essential",
],
skip_push=True,
)
docker_environment(
name="cmake_environment",
platform="linux_x86_64",
image="cmake_image:cmake",
)
and
python_aws_lambda_function(
name="lambda",
handler="handler.py:handler",
environment = "cmake",
dependencies=[
"//python:cmake_image",
],
complete_platforms=["//python:linux_x86_64"],
)
And I get a build error like CMake build failed
× Building wheel for llama_cpp_python (pyproject.toml) did not run successfully.
Note that the same occurs with a pex_binary goal
Is there a proper way of doing what I'm trying to achieve?happy-kitchen-89482
06/25/2025, 3:03 PMhappy-kitchen-89482
06/25/2025, 3:03 PMhappy-kitchen-89482
06/25/2025, 3:03 PMwooden-kangaroo-30914
06/25/2025, 3:36 PMhappy-kitchen-89482
06/25/2025, 10:34 PMbroad-processor-92400
06/25/2025, 11:34 PMdocker_image
as direct input to a docker_environment
doesn't work as far as I know: https://github.com/pantsbuild/pants/issues/17714
You'll need to build the image separately and then use it in the environment