does anyone have any tips for getting Docker Build...
# general
n
does anyone have any tips for getting Docker BuildKit working? I have set the following set in
pants.toml
but my
pants package
still complains about buildkit-dependent features (
COPY --chmod
), and I notice that the relevant environment variable is not present in
__run.sh
in the sandbox when I run with
--keep-sandboxes=on_failure
. I've tried this on
2.16.0rc0
,
2.16.0rc5
, and
2.17.0rc0
.
Copy code
[docker]
env_vars = [
    "DOCKER_BUILDKIT=1",
]
NB if I edit
__run.sh
to add
export DOCKER_BUILDKIT=1
to it, it happily runs the Docker build to completion.
r
I think this is a known issue. If you search here, you will find similar issues https://pantsbuild.slack.com/archives/C046T6T9U/p1683579800781919
b