canonical / base-mlflow

MlFlow image built on top of Ubuntu 22.04
0 stars 1 forks source link
charmed-kubeflow

Ubuntu 22.04 based MLflow image v2.15.1

On pull request On push

This repository contains source code for Canonical's MLFlow rock image.

The rock image is currently published here.

MLflow rock OCI image

The following tools are required to build the rock image manually:

To install the tools:

sudo snap install rockcraft --classic --edge
sudo snap install skopeo --edge --devmode
pip install tox

To build the rock image manually:

cd mlflow 
tox -e pack

To use the resulting rock in Docker:

tox -e export-to-docker

To test the resulting image after copying to Docker, run it:

# Create a local folder to be mounted to the container 
mkdir mlruns
# Change permissions on the folder
chmod 777 mlruns 

# Run the server with the mounted folder 
docker run -p 5000:5000 -v ./mlruns:/mlruns --entrypoint=mlflow mlflow:v2.15.1 server --host 0.0.0.0 --backend-store-uri file:///mlruns

Then you can visit http://localhost:5000/.