mirror of
https://github.com/alvierahman90/mandrake.git
synced 2024-12-15 12:21:59 +00:00
790 B
790 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.