-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·84 lines (62 loc) · 2 KB
/
Makefile
File metadata and controls
executable file
·84 lines (62 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
.PHONY: help install test lint format clean build docker-build docker-run start test-entrypoint install-deps
help: ## Show this help message
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Install the package in development mode
pip install -e .
test: ## Run tests
pytest tests/ -v
lint: ## Run linting checks
black --check .
isort --check-only .
mypy .
format: ## Format code
black .
isort .
clean: ## Clean build artifacts
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
find . -type d -name __pycache__ -delete
find . -type f -name "*.pyc" -delete
build: ## Build the package
python -m build
docker-build: ## Build Docker image
docker build -t mcp-graylog .
docker-run: ## Run Docker container
docker run -d \
--name mcp-graylog \
-p 8000:8000 \
-e GRAYLOG_ENDPOINT=https://your-graylog-server:9000 \
-e GRAYLOG_USERNAME=your-username \
-e GRAYLOG_PASSWORD=your-password \
mcp-graylog
docker-stop: ## Stop Docker container
docker stop mcp-graylog || true
docker rm mcp-graylog || true
docker-logs: ## Show Docker container logs
docker logs mcp-graylog
dev-install: ## Install development dependencies
pip install -e ".[dev]"
check: format lint test ## Run all checks (format, lint, test)
publish: ## Publish to PyPI (requires twine)
python -m build
twine upload dist/*
start: ## Start the server using the startup script
./start.sh
test-entrypoint: ## Test the entrypoint configuration
./test_entrypoint.sh
test-pydantic: ## Test the Pydantic fix
python3 test_pydantic_fix.py
test-fixes: ## Test the Pydantic and FastMCP fixes
python3 test_fixes.py
install-deps: ## Install dependencies using the installation script
./install_deps.sh
docker-compose-up: ## Start services with docker-compose
docker-compose up -d
docker-compose-down: ## Stop services with docker-compose
docker-compose down
docker-compose-logs: ## Show docker-compose logs
docker-compose logs -f