Create databricks runtime containers, vibe coded.
Docker images are losely based on the container definitions and runtime information.
- Generate Dockerfiles for all Databricks runtime versions
- Support for multiple image types: minimal, standard, python (all as GPU variants where applicable)
- LTS runtime support with ML variants
- Automated CI/CD pipeline for building and publishing images
- Multiple OS and Python version variations
- Built-in runtime metadata and version tracking
With pip:
python -m pip install dbx-containerWith poetry:
poetry add dbx-containerGenerate Dockerfiles for all Databricks runtimes:
poetry run dbx-container buildGenerate for a specific runtime:
poetry run dbx-container build --runtime-version "15.4 LTS"Generate for a specific image type:
poetry run dbx-container build --image-type gpuView all supported Databricks runtime versions:
poetry run dbx-container listBuild all LTS images locally:
./scripts/build_images.shBuild and push to a registry:
./scripts/build_images.sh --push --registry ghcr.ioPull from GitHub Container Registry:
docker pull ghcr.io/twsl/dbx-runtime:python-17.3-lts-ubuntu2404-py312- minimal - Base Ubuntu with Java (non-runtime-specific)
- minimal-gpu - Base GPU image with CUDA and Java (non-runtime-specific)
- standard - Standard with SSH server and FUSE support (non-runtime-specific)
- standard-gpu - GPU standard with SSH and FUSE (non-runtime-specific)
- python - Python runtime with virtualenv (runtime-specific)
- python-gpu - GPU Python with CUDA support (runtime-specific)
- gpu - Standalone GPU-enabled container (non-runtime-specific)
Each LTS runtime includes:
- Base variant (standard runtime)
- ML variant (machine learning runtime)
- Multiple OS versions (Ubuntu 22.04, 24.04)
- Appropriate Python versions (3.8-3.12)
The project includes a GitHub Actions workflow that:
- Automatically generates Dockerfiles for all LTS runtimes
- Builds images in parallel using matrix strategy
- Pushes to GitHub Container Registry on main branch
- Supports manual triggering with filters
See Docker Build Guide for detailed documentation.
poetry run mkdocs build -f ./docs/mkdocs.yml -d ./_build/copier update --trust -A --vcs-ref=HEAD