How can I build a pex and run a pex process in a r...
# plugins
r
How can I build a pex and run a pex process in a rule inside of an environment?
The input to my rule has an
EnvironmentField
Got it, just had to add
EnvironmentField
to my field set. New question: is there a way to specify that a rule can only be run locally?
Except I'm also getting this error
Copy code
OCI runtime exec failed: exec failed: unable to start container process: exec: ".python-build-standalone/c12164f0e9228ec20704c1aba97eb31b8e2a482d41943d541cc8e3a9e84f7349/bin/python3": stat .python-build-standalone/c12164f0e9228ec20704c1aba97eb31b8e2a482d41943d541cc8e3a9e84f7349/bin/python3: no such file or directory: unknown
The python executable is in there...
Seems like it was an issue with using a working directory for the command that must've been fixed between 2.18 and 2.19 because bumping to 2.19.0rc5 fixed it
Regarding only running a rule locally, I see my rule actually is already running locally because it's a zero-input rule - is there a way I could just mount the resulting digest as bind mount for the docker environment?