(Proof of concept) run commands in remote docker container to offload compute intensive commands
-
Create
config-server.toml. Seeconfig-servre.tomlfor an example. -
Start
mandrake-server.py -
Create
Mandrake.tomlfile in root directory of project. SeeMandrake.tomlfor an example. -
Create a
Dockerfilein the root directory of project to specify the environment to execute the command. SeeDockerfile-examplefor an example.Remember to the working directory to
/context. -
Run
mandrake-server.py <command> [arg1 [arg2 [...]]]in the project directory, where<command>and[argN]the command and its arguments to run in the docker container.
- Remove rsync dependency
- Rebuild in a less rubbish way maybe in rust also