-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 900 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (22 loc) · 900 Bytes
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
.PHONY: up down build logs test test-backend test-frontend lint smoke reset-data
up:
docker compose up --build
down:
docker compose down
build:
docker compose build
logs:
docker compose logs -f
test: test-backend test-frontend
test-backend:
docker build --target runtime -t reddock:local .
docker run --rm -v "$(CURDIR)/backend:/workspace" -w /workspace --entrypoint sh reddock:local -c "pip install pytest httpx ruff && python -m ruff check app tests && python -m pytest"
test-frontend:
docker run --rm -v "$(CURDIR)/frontend:/workspace" -w /workspace node:22-alpine sh -c "npm ci && npm run check && npm run test && npm run build"
smoke:
docker compose up -d --build
python scripts/smoke_test.py
lint:
docker run --rm -v "$(CURDIR)/backend:/workspace" -w /workspace python:3.13-slim sh -c "pip install ruff && python -m ruff check app tests"
reset-data:
docker compose down -v