https://pantsbuild.org/ logo
s

sparse-lifeguard-95737

05/04/2022, 1:43 PM
I’m trying to use the new docker
tools
config in 2.11 along with the amazon-ecr-credential-helper. I see the shim for
docker-credential-ecr-login
is being properly created in the build process’s tmp dir (
.shims/bin/docker-credential-ecr-login
exists, and I can invoke it manually and get the same results as the actual binary). When it’s set up, the build process is failing with:
Copy code
failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: docker-credential-ecr-login resolves to executable in current directory (./.shims/bin/docker-credential-ecr-login), out: ``
if I update
__run.sh
to set
PATH=/bin:/usr/local/bin
, the build works. not sure if this weird “resolves to executable in current directory” error is a general docker thing or specific to docker-for-mac - I haven’t been able to find a config toggle to make it work
Interestingly, if I edit
__run.sh
to replace this:
Copy code
PATH=.shims/bin
with this:
Copy code
PATH=${absolute-path-to-tmpdir}/.shims/bin
then everything works
will file a bug and open a PR
❤️ 1
10 Views