https://pantsbuild.org/ logo
b

bitter-ability-32190

06/23/2022, 9:21 PM
Am I understanding
[docker].env_vars
right? I'm setting it to
=["FOO"]
in my
pants.toml
and was hoping
FOO=bar ./pants run my_docker_img
would inherit the value, but no
1
--docker-run-args="-e FOO=bar"
works, FWIW
s

sparse-lifeguard-95737

06/23/2022, 9:35 PM
It sets env vars for the actual
docker
process, so you'd get
FOO=<inherited-value>
docker
build
<args>
b

bitter-ability-32190

06/23/2022, 9:35 PM
Ah, so
--run-args
seems to be it then
4 Views