Skip to content

canonical/base-mlflow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

  • rockcraft - A tool to create OCI images.
  • skopeo - A tool to operate on container images and registries.
  • tox - A tool to run tests in virtual environments. The tool is a Python package, so a Python interpreter with the pip package tool is needed (tested with python3.10, python3.8).

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/.

About

MlFlow image built on top of Ubuntu 22.04

Topics

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages