mirror of
https://github.com/alvierahman90/mandrake.git
synced 2024-12-15 04:12:00 +00:00
src | ||
.gitignore | ||
.mandrakeignore | ||
config-server.toml | ||
Dockerfile-example | ||
Mandrake.toml | ||
readme.md | ||
requirements.txt |
🍃 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.