From 42be82df6bdf3d769a31aae5fff358422f5e26da Mon Sep 17 00:00:00 2001 From: rob Date: Wed, 24 Dec 2025 01:01:35 -0400 Subject: [PATCH] Add standalone docker-compose.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Self-contained Docker setup for SmartTools with no external dependencies. Includes cli, test, and shell services. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- docker-compose.yml | 70 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..ade2510 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,70 @@ +# SmartTools - AI-powered CLI command builder +# +# Quick Start: +# docker-compose build # Build the image +# docker-compose run --rm test # Run tests +# docker-compose run --rm cli smarttools list +# +# This is a standalone project with no external dependencies. + +version: '3.8' + +services: + # ============================================================================ + # Main CLI + # ============================================================================ + cli: + build: + context: . + dockerfile: Dockerfile + image: smarttools:latest + volumes: + - smarttools-data:/root/.smarttools + command: ["smarttools", "--help"] + + # ============================================================================ + # Tests + # ============================================================================ + test: + build: + context: . + dockerfile: Dockerfile + image: smarttools:latest + volumes: + - smarttools-data:/root/.smarttools + command: ["pytest", "-v"] + + # ============================================================================ + # Interactive Shell + # ============================================================================ + shell: + build: + context: . + dockerfile: Dockerfile + image: smarttools:latest + volumes: + - smarttools-data:/root/.smarttools + command: ["/bin/bash"] + stdin_open: true + tty: true + +volumes: + smarttools-data: + # Persists ~/.smarttools between container runs + +# ============================================================================== +# Usage Examples +# ============================================================================== +# +# Build: +# docker-compose build +# +# Run tests: +# docker-compose run --rm test +# +# Use CLI: +# docker-compose run --rm cli smarttools list +# docker-compose run --rm cli smarttools run hello-world +# +# Interactive shell: +# docker-compose run --rm shell