This directory contains the necessary files to build and run the dstack-kms Docker image for development.
The builder creates a Docker image that includes:
- The dstack-kms service compiled from Rust source code
- Command line tool dstack-acpi-tables for generating ACPI tables for dstack CVM
- Docker with BuildKit support (v20.10.0+)
- Git
To build the KMS Docker image, use the provided build-image.sh script:
./build-image.sh <image-name>[:<tag>]For example:
./build-image.sh kvin/kmsThe easiest way to run the KMS service is using the provided docker-compose.yaml:
services:
kms:
image: kvin/kms
ports:
- "8003:8000"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./kms:/kms
environment:
- IMAGE_DOWNLOAD_URL=${IMAGE_DOWNLOAD_URL:-http://localhost:8001/mr_{OS_IMAGE_HASH}.tar.gz}
- AUTH_TYPE=dev
- DEV_DOMAIN=kms.1022.dstack.org
- QUOTE_ENABLED=falseTo start the service:
docker-compose up