-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
45 lines (35 loc) · 1.22 KB
/
makefile
File metadata and controls
45 lines (35 loc) · 1.22 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
.PHONY: help build run test lint clean
help:
@echo "GuardianSensor Development Commands:"
@echo " make build - Build Docker image"
@echo " make run - Run development environment"
@echo " make test - Run tests in Docker"
@echo " make lint - Run code quality checks"
@echo " make clean - Clean up containers and volumes"
@echo " make deploy - Deploy to production (example)"
build:
docker build -t guardiansensor:latest .
run:
docker-compose up --build
run-detached:
docker-compose up -d --build
stop:
docker-compose down
test:
docker-compose -f docker-compose.test.yml up --build --abort-on-container-exit
lint:
docker run --rm -v $(PWD):/app guardiansensor:latest \
sh -c "black --check . && flake8 . && mypy api/ processing/ risk/"
clean:
docker-compose down -v
docker system prune -f
logs:
docker-compose logs -f
# Production deployment example (would need actual cloud credentials)
deploy:
@echo "Building production image..."
docker build -t guardiansensor:prod .
@echo "Tagging and pushing to registry..."
# docker tag guardiansensor:prod your-registry/guardiansensor:latest
# docker push your-registry/guardiansensor:latest
@echo "Update would be triggered here (k8s, ECS, etc.)"