mirror of
https://github.com/alvierahman90/mandrake.git
synced 2024-12-15 04:12:00 +00:00
878 B
878 B
🍃 mandrake
(Proof of concept) run commands in remote docker container to offload compute intensive commands
Usage
-
Create
config-server.toml
. Seeconfig-servre.toml
for an example. -
Start
mandrake-server.py
-
Create
Mandrake.toml
file in root directory of project. SeeMandrake.toml
for an example. -
Create a
Dockerfile
in the root directory of project to specify the environment to execute the command. SeeDockerfile-example
for 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.
TODO
- Remove rsync dependency
- Rebuild in a less rubbish way maybe in rust also