mirror of
https://github.com/peasead/elastic-container
synced 2026-06-08 16:43:23 +00:00
99208cac34
- 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
29 lines
206 B
Plaintext
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/
|
|
|