Go to file
2023-12-24 20:51:05 +00:00
src initial commit 2023-12-24 20:25:33 +00:00
.gitignore initial commit 2023-12-24 20:25:33 +00:00
.mandrakeignore initial commit 2023-12-24 20:25:33 +00:00
config-server.toml initial commit 2023-12-24 20:25:33 +00:00
Dockerfile-example create readme 2023-12-24 20:44:29 +00:00
Mandrake.toml create readme 2023-12-24 20:44:29 +00:00
readme.md add todo to readme 2023-12-24 20:51:05 +00:00
requirements.txt initial commit 2023-12-24 20:25:33 +00:00

🍃 mandrake

(Proof of concept) run commands in remote docker container to offload compute intensive commands

Usage

  1. Create config-server.toml. See config-servre.toml for an example.

  2. Start mandrake-server.py

  3. Create Mandrake.toml file in root directory of project. See Mandrake.toml for an example.

  4. Create a Dockerfile in the root directory of project to specify the environment to execute the command. See Dockerfile-example for an example.

    Remember to the working directory to /context.

  5. 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.

TODO

  • Remove rsync dependency
  • Rebuild in a less rubbish way maybe in rust also