https://pantsbuild.org/ logo
#general
Title
# general
f

fancy-daybreak-62348

01/13/2023, 12:19 AM
im having an issue publishing to a private repo from a github runner, im able to
docker login
, but for some reason pants is not inheriting the auth context. I have
[docker].env_vars
set to
DOCKER_CONFIG=%(homedir)s/.docker
but for some reason its not getting it
h

happy-kitchen-89482

01/13/2023, 11:32 AM
that config file is where your creds are stored?
@curved-television-6568 presumably there is a solution to this?
c

curved-television-6568

01/13/2023, 2:08 PM
@fancy-daybreak-62348 is on the right track here. I’m wondering if there’s more missing, though. Is the docker credentials plugin available on the
PANTS_DOCKER_EXECUTABLE_SEARCH_PATHS
(if using one)? https://www.pantsbuild.org/docs/reference-docker#executable_search_paths
f

fancy-daybreak-62348

01/13/2023, 2:23 PM
its using basic auth. i even did
cat ~/.docker/config.json
on the runner and its just the
echo user:pass | base64
in my
pants.toml
i have
DOCKER_CONFIG=%(homedir)s/.docker
, but, in my runner, that env variable is not set. Does that matter?(
echo $DOCKER_CONFIG
has no value)
even overriding $home and completely removing all helpers doesn’t seem to fix it on the runner :(
c

curved-television-6568

01/13/2023, 3:35 PM
in the past we’ve debugged scenarios like these by replicating the hermetic environment of Pants using
env -i
to repro the issue, then from there adding in env vars until it works; for a quicker test/modify/eval-loop.
f

fancy-daybreak-62348

01/13/2023, 3:55 PM
removing DOCKER_CONFIG from env_vars fixed it /shrug
🤷 1
😮 1