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

ancient-france-42909

01/31/2023, 12:19 PM
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

curved-television-6568

01/31/2023, 2:11 PM
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

ancient-france-42909

01/31/2023, 2:35 PM
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

curved-television-6568

01/31/2023, 3:47 PM
yes, Pants is very hermetic by default.
3 Views