echoing-farmer-1563012/17/2021, 8:25 PM
...so that I could get
working for ssh authentication, and that's where we go a bit wrong.
Running under pants, dockerfiles with
don't seem to work, even though in the generated
includes the required
# This command line should execute the same process as pants did internally.
export DOCKER_BUILDKIT=1 SSH_AUTH_SOCK=/tmp/path/to/ssh/agent/sock
/usr/bin/docker build -t $'my-tag' -f my-dockerfile .
to that directory and run
, everything builds. If I
, which is what generated that file, it doesn't build and gives an ssh key error when downloading custom requirements from a private github repo.
Anything we can do about that? Am I missing a flag or is this a problem with the docker backend?
pants package my-docker-target
curved-television-656812/17/2021, 8:41 PM
script works, when it doesn’t when running with
.. I’ll dig into this a bit, but I’ll certainly need some assistance, as I’ve no experience with using ssh auth sock et al.
as yourself, there’s some USER or HOME env vars set that presents some ssh keys that’s perhaps not present when running through pants.. ?
echoing-farmer-1563012/17/2021, 8:53 PM
) and it doesn't look like the existing pants docker functionality allows that, so there's even less urgency, but I'm very excited to see this and begin using it. It is after all during Christmas week so no rush although if you want I can add tickets for these if they need them.
docker build ... --target dev
curved-television-656812/20/2021, 3:03 PM
option, and if it would be a requested feature. Happy to add it if it is something you need.