-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (31 loc) · 1.09 KB
/
Makefile
File metadata and controls
42 lines (31 loc) · 1.09 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
.PHONY: help install test run clean docker-build docker-run
help: ## Zeige verfügbare Befehle
@echo "Verfügbare Befehle:"
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " %-15s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
install: ## Installiere Dependencies
pip install -r requirements.txt
test: ## Führe Tests aus
./run_tests.sh
test-quick: ## Führe Tests ohne Coverage aus
pytest -v
run: ## Starte die Anwendung lokal
python app.py
clean: ## Bereinige temporäre Dateien
find . -type f -name "*.pyc" -delete
find . -type d -name "__pycache__" -delete
rm -rf .pytest_cache
rm -rf htmlcov
rm -rf .coverage
docker-build: ## Baue Docker-Image
docker build -t python-ipam .
docker-run: ## Starte Container
docker run -p 5000:5000 python-ipam
docker-dev: ## Starte Entwicklungsumgebung mit Docker
docker-compose --profile dev up
docker-prod: ## Starte Produktionsumgebung mit Docker
docker-compose up -d
setup-dev: ## Setup für lokale Entwicklung
python -m venv venv
@echo "Aktiviere die virtuelle Umgebung mit:"
@echo "source venv/bin/activate"
@echo "Dann führe 'make install' aus"