Run with Docker
MoZuMaKit is a collection of docker images with a pre-configured environment to use MoZuMa.
You can pull the image for a specific <version>
with:
Usage
This example will go through the process to run a python script called main.py
in the MoZuMaKit docker image.
As a first step, we need to create a Dockerfile
that:
- Imports
mozumakit
image - Installs the latest version of MoZuMa
- Copies the script we want to run.
FROM ghcr.io/mozuma/mozumakit:3
WORKDIR /app
RUN pip install git+https://github.com/mozuma/mozuma
ADD main.py .
ENTRYPOINT ["conda", "run", "-n", "app", "--no-capture-output"]
Then, we need to build a docker image from the Dockerfile
:
The previous command has created a docker container that we can run with the following command:
That's it ! You should see you script output in the terminal.
Available versions
See MoZuMaKit releases.