CascadingDev/docker-compose.yml

54 lines
1.5 KiB
YAML

# CascadingDev - Git-native AI-human collaboration framework
#
# Quick Start:
# docker-compose build # Build the image
# docker-compose run --rm test # Run tests
# docker-compose run --rm cli cdev doctor
# docker-compose run --rm cli cdev build
version: '3.8'
services:
# ============================================================================
# Main CLI
# ============================================================================
cli:
build:
context: .
dockerfile: Dockerfile
image: cascadingdev:latest
volumes:
- cascadingdev-install:/app/install
command: ["cdev", "--help"]
# ============================================================================
# Tests - doctor, smoke, build
# ============================================================================
test:
build:
context: .
dockerfile: Dockerfile
image: cascadingdev:latest
volumes:
- cascadingdev-install:/app/install
command: >
sh -c "cdev doctor && cdev build && cdev smoke"
# ============================================================================
# Interactive Shell
# ============================================================================
shell:
build:
context: .
dockerfile: Dockerfile
image: cascadingdev:latest
volumes:
- cascadingdev-install:/app/install
command: ["/bin/bash"]
stdin_open: true
tty: true
volumes:
cascadingdev-install:
# Persists build output between container runs