Is there a way to pass parameters to docker build?...
# general
a
Is there a way to pass parameters to docker build? I tried adding a shell script as the docker executable, but that doesn't seem to work, even if it's just doing
docker "$@"
c
there’s currently no pass-through args for
docker build
. If you try to masquerade a script as the
docker
binary, you’ll have to make sure that it is found on the search path before the regular
docker
binary. See https://www.pantsbuild.org/docs/reference-docker#executable_search_paths
a
Yeah, I did that, it finds it with the script, but when it tries to run it with
-v
it returns 127, I haven't gotten around to finding where things are actually ran to see what it's doing yet
Ah, I see, it's actually not passing a PATH.
Which explains why the credential helpers weren't working 🙂
c
yes, Pants is very hermetic by default.