I need AWS configured in my `docker_environment`, ...
# development
b
I need AWS configured in my
docker_environment
, but there's no (easy) way to do that today. Would it make sense to add an option to the
docker_environemnt
target to specify bind mounts?
CC @fast-nail-55400 @witty-crayon-22786
f
Yes probably. Moreover, there is ample room for improvement in how we allow the container to be configured.
b
How would this get wired up? I suspect it should be a field on the
docker_environment
itself. How that boils down to
<http://docker.rs|docker.rs>
is a bit fuzzy.
ProcessExecutionStrategy
doesn't feel like the right place, but it is next to the
image
f
there is
ProcessExecutionStrategy::Docker
switch that enum variant to be a struct variant
b
You think that's the right place? It certainly ticks the boxes but it feels weird to me. Although I'm an outsider to this part of the codebase
You basically will be marshallling the Docker-specific fields onto
ProcessExecutionEnvironment
which is used as a field on
Process
which passes into Rust via the intrinsic rule which does the process execution.
On the Rust side, it is unmarshalled into a
ProcessExecutionStrategy::Docker
b
Yeah, I think I grokked all the pieces at play just wasn't sure where mine fit, since the strategy was most convenient but also was worried I was shoe-horning
f
I don't believe it is shoe-horning. Just extending the existing way we plumb the image name through the Python->Rust transition.
b
Cool. I'll give it a shot tomorrow
Huh, getting something together was suprisingly easy...