Commit Graph

2 Commits

Author SHA1 Message Date
Andrew Pease 567ade6158 Add cross-platform IP detection with WSL support
- Add _is_wsl() helper function to detect Windows Subsystem for Linux
  - Checks /proc/version for microsoft/wsl keywords
  - Checks WSL environment variables (WSL_DISTRO_NAME, WSL_INTEROP)

- Enhance get_host_ip() to support all platforms:
  - Native Linux: hostname -I (unchanged)
  - WSL: Automatically detected, uses hostname -I
  - macOS: ifconfig en0 (unchanged)
  - Native Windows: Parse ipconfig output for IPv4 address
  - Fallback: 0.0.0.0 for local Docker (unchanged)

- No changes to existing Linux/macOS behavior
- Script now automatically adapts to environment
- Tested and working on macOS and Ubuntu
2025-11-25 12:45:04 -06:00
Andrew Pease 27001122eb Phase 3: Add Docker and utility modules
- Create DockerManager class for all container operations
  - Auto-detect docker compose vs docker-compose
  - Implement stage, start, stop, destroy, restart, status
  - Add clear_documents() for data stream clearing
  - Extract CA fingerprint for Fleet configuration
  - Comprehensive error handling and validation

- Create utility functions module
  - get_host_ip() for Linux/macOS IP detection
  - check_python_version() requiring 3.10+
  - run_command() helper with verbose support
  - show_docker_error() for formatted error messages
  - check_prerequisites() for system validation
2025-11-24 12:49:26 -06:00