Skip to content

Add Docker support for watch command - fixes #5#41

Open
konard wants to merge 3 commits intomainfrom
issue-5-12b0acc9
Open

Add Docker support for watch command - fixes #5#41
konard wants to merge 3 commits intomainfrom
issue-5-12b0acc9

Conversation

@konard
Copy link
Contributor

@konard konard commented Sep 10, 2025

Summary

This PR adds Docker support to make the watch command fully containerizable for cloud development environments like GitHub Codespaces, GitPod, and other containerized setups.

What's Added

  • Dockerfile: Node.js 18 Alpine-based container with proper security (non-root user)
  • docker-compose.yml: Easy setup with volume mounts for Claude configuration files
  • .env.example: Configuration template for environment variables
  • Comprehensive Documentation: Added Docker installation and usage section to README
  • Package Updates: Added Docker files to npm distribution, bumped version to 1.2.3

Key Features

  • Volume Mounts: Automatically mounts ~/.claude/ directory and config files from host
  • Watch Mode: Fully supports the --watch command in containerized environment
  • Log Files: Watch mode logs are saved to ./logs/ directory
  • Environment Variables: Easy configuration via .env file
  • Signal Handling: Proper Ctrl+C handling for graceful shutdown
  • Two Services: Main watcher service + CLI service for one-time operations

Usage Examples

# Quick start with docker-compose
docker-compose up --build

# One-time commands
docker-compose run --rm claude-profiles-cli node claude-profiles.mjs --store work

Test Plan

  • Created and validated Dockerfile syntax
  • Created and validated docker-compose.yml syntax
  • Added comprehensive documentation with examples
  • Updated package.json with new version and Docker files
  • Verified all required volume mounts are present
  • Confirmed proper environment variable handling

🤖 Generated with Claude Code


Resolves #5

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #5
@konard konard self-assigned this Sep 10, 2025
konard and others added 2 commits September 10, 2025 21:10
- Add Dockerfile with Node.js 18 Alpine base image
- Add docker-compose.yml for easy setup with volume mounts
- Add .env.example for configuration template
- Add comprehensive Docker documentation to README
- Include Docker files in npm package distribution
- Update version to 1.2.3 for Docker support release
- Add docker/containerization keywords to package.json

The watch command can now be dockerized for containerized environments
like GitHub Codespaces, GitPod, and other cloud development platforms.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Make it possible to dockerize watch command Add Docker support for watch command - fixes #5 Sep 10, 2025
@konard konard marked this pull request as ready for review September 10, 2025 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make it possible to dockerize watch command

1 participant