GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — mlflow/.devcontainer at master · soumojit/mlflow

Expand file tree

/

.devcontainer

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

.devcontainer

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
images
images
 
 
Dockerfile.devcontainer
Dockerfile.devcontainer
 
 
Dockerfile.devcontainer.dockerignore
Dockerfile.devcontainer.dockerignore
 
 
README.md
README.md
 
 
codespaces.zsh-theme
codespaces.zsh-theme
 
 
devcontainer.json
devcontainer.json
 
 
docker-compose.yml
docker-compose.yml
 
 
pip-compile.sh
pip-compile.sh
 
 
postCreate.sh
postCreate.sh
 
 
requirements.txt
requirements.txt
 
 

README.md

Outline

MLflow development container (experimental)

This directory contains a set of files to set up a reproducible and disposable development environment for MLflow in Visual Studio Code using the Remote - Containers extension.

Supported features

  • Pre-installed tools/packages required for MLflow development.
  • Pre-configured VSCode settings and extensions for automatic code formatting and lint check.
  • Pre-commit hooks to avoid pushing commits that won't pass the CI checks.

Prerequisites

  • Visual Studio Code
  • Remote - Containers extension
  • Docker

Getting started

  1. Build the devcontainer image.

    # This command may take a while to finish
    DOCKER_BUILDKIT=1 docker build -f .devcontainer/Dockerfile.devcontainer -t ghcr.io/mlflow/mlflow-devcontainer .
    
    # Test the image
    docker run --rm -it ghcr.io/mlflow/mlflow-devcontainer zsh
    
    # Alternatively, you can pull the pre-built image from GitHub Container Registry,
    # but a GitHub personal access token is required to authenticate to ghcr.io:
    echo <GITHUB_TOKEN> | docker login ghcr.io -u <GITHUB_USERNAME> --password-stdin
    docker pull ghcr.io/mlflow/mlflow-devcontainer
  2. Open the MLflow repository on VSCode.

  3. Press Ctrl/Cmd+Shift+P to launch the command palette.

  4. Select Remote-Containers: Reopen in Container.

  5. Once the devcontainer is up and running, launch the command palette again.

  6. Select Terminal: Create New Terminal.

  7. Run the following commands and make sure they run successfully:

pytest tests/test_version.py

Developing in GitHub Codespaces

You can create the same development environment as your local devcontainer in a web browser with just a few clicks using GitHub Codespaces. The instructions in Creating a codespace cover how to set up a codespace.

Limitations

The following tools/packages are NOT pre-installed to avoid increasing the image size. They can be manually installed after launching the devcontainer if necessary.

  • Python ML packages such as tensorflow
  • R
  • Docker
  • conda

How to update requirements.txt

NAME="mlflow-$(uuidgen)"
docker run \
   --name $NAME \
   -w /mlflow \
   -v $(pwd)/requirements:/mlflow/requirements:ro \
   -v $(pwd)/.devcontainer/pip-compile.sh:/mlflow/pip-compile.sh \
   python:3.8.15 ./pip-compile.sh
docker cp $NAME:/tmp/requirements.txt .devcontainer/requirements.txt
docker rm -f -v $NAME
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.