Files
Andrew Pease 99208cac34 Phase 5: Add main CLI entry point
- Create elastic-container.py as the main executable script
  - Click-based command-line interface
  - Commands implemented: stage, start, stop, destroy, restart, status, clear, help
  - Support for -v/--verbose flag across all commands
  - Full orchestration of Config, DockerManager, and KibanaManager

- Main 'start' command workflow:
  - Check prerequisites (Python version, Docker)
  - Validate passwords changed from defaults
  - Start containers via DockerManager
  - Configure Detection Engine and install rules via KibanaManager
  - Wait for Fleet Server initialization
  - Configure Fleet Server settings and agent policies
  - Display success message with login URL and credentials (verbose mode)

- All commands include:
  - Proper error handling and user-friendly messages
  - Keyboard interrupt (Ctrl+C) handling
  - Verbose mode with detailed output and stack traces
  - Consistent exit codes

- Add .gitignore for Python artifacts and sensitive files

- 344 lines completing the Python conversion
- Full feature parity with bash script achieved
2025-11-24 12:58:29 -06:00

29 lines
206 B
Plaintext

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
*.egg-info/
dist/
build/
.venv/
venv/
ENV/
# IDE
.vscode/
.idea/
*.swp
*.swo
*~
# OS
.DS_Store
Thumbs.db
# Elastic Container specific
.env
certs/