sparse-lifeguard-95737
05/04/2022, 2:38 PMPATH
to the .shims
dir in the DockerBinary
setup here - it’s not obvious to me if there’s a way to inject the absolute path of the final work-dir into that value. I thought about hacking in a $(pwd)
or something, but looks like the values we set in the process env get escaped before being written to __run.sh
sparse-lifeguard-95737
05/04/2022, 2:39 PMexport
logic there’s support for a magic {digest_root}
placeholder in argv
- is there anything similar for process envs that I could use here?sparse-lifeguard-95737
05/04/2022, 2:40 PMsparse-lifeguard-95737
05/04/2022, 4:43 PM.shims
is just a symlink to another tmp dir - could we drop the symlink entirely, and instead set PATH=<path-to-tmpdir>
?hundreds-father-404
05/04/2022, 4:46 PMhundreds-father-404
05/04/2022, 4:47 PMhundreds-father-404
05/04/2022, 4:49 PMsparse-lifeguard-95737
05/04/2022, 4:50 PMsparse-lifeguard-95737
05/04/2022, 4:50 PMsparse-lifeguard-95737
05/04/2022, 4:52 PMDigest
from the BinaryShims
instance and somehow get the underlying absolute path of the directory containing the digest’s contents, I could plug that into the `DockerBinary`’s extra_env
sparse-lifeguard-95737
05/04/2022, 7:25 PMdocker
into the temp working dir, and call it instead of directly invoking the docker
binary. the shim will export PATH=$(pwd)/.shims/bin:${PATH}
and then exec to the docker
binarysparse-lifeguard-95737
05/04/2022, 7:26 PMsparse-lifeguard-95737
05/04/2022, 10:31 PMcurved-television-6568
05/05/2022, 9:49 AM{root}
placeholder value in the PATH
env, so we can inject the sandbox path into the env var.
cc @witty-crayon-22786 wdyt about that approach?curved-television-6568
05/05/2022, 3:57 PM