Files
mcp-template-python/Makefile
2025-09-18 11:31:01 +08:00

48 lines
1.3 KiB
Makefile

.PHONY: i dev prod build clean update docker-build docker-run helm-install helm-upgrade helm-uninstall helm-lint
i:
uv sync --all-extras --all-packages $(filter-out i,$(MAKECMDGOALS))
dev:
uv run --no-sync python -c "__import__('mcp_template_python.__main__').__main__.dev()" $(filter-out dev,$(MAKECMDGOALS))
prod:
uv run --no-sync python -c "__import__('mcp_template_python.__main__').__main__.main()" $(filter-out prod,$(MAKECMDGOALS))
build:
uv build $(filter-out build,$(MAKECMDGOALS))
clean:
rm -rf .venv .ruff_cache dist/ build/ *.egg-info $(filter-out clean,$(MAKECMDGOALS))
update:
uv sync --all-extras --all-packages -U $(filter-out update,$(MAKECMDGOALS))
docker-build:
docker compose build $(filter-out docker-build,$(MAKECMDGOALS))
docker-run:
docker compose up -d $(filter-out docker-run,$(MAKECMDGOALS))
# Helm deployment commands
helm-lint:
helm lint helm/mcp-template-python
helm-install:
helm install mcp-template-python helm/mcp-template-python
helm-upgrade:
helm upgrade mcp-template-python helm/mcp-template-python
helm-install-prod:
helm install mcp-template-python helm/mcp-template-python -f values-production.yaml
helm-upgrade-prod:
helm upgrade mcp-template-python helm/mcp-template-python -f values-production.yaml
helm-uninstall:
helm uninstall mcp-template-python
%:
@: