executor: Fix src-cli commands
Created by: efritz
Non-root directories and environment variables were not being passed in to the firecracker VM. This fixes that issue in a shoddy way which should be updated as follows:
- Collect all commands that must run in the VM
- Compile them into scripts
- Copy those scripts into the VM
- Invoke the scripts as a single command
This will make it so the Command
field on the jobs are actually commands and not arguments to a docker entrypoint. This places an additional restriction on containers we're using that they will be able to invoke such scripts (so they must necessarily have some sh
equivalent). This seems fine to me.