-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
18 lines (18 loc) · 749 Bytes
/
Makefile
File metadata and controls
18 lines (18 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
run-local-services:
docker compose -f _DEV/docker-compose.yaml up -d
stop-local-services:
docker compose -f _DEV/docker-compose.yaml down
docker compose -f _TEST/docker-compose-test.yaml down
clear-docker:
docker stop $(docker ps -a -q) && docker rm $(docker ps -a -q)
build-test:
DOCKER_BUILDKIT=1 docker build -f _TEST/dockerfile_test -t fastapi-skeleton-image-test .
run-test:
docker-compose -f _TEST/docker-compose-test.yaml run --rm fastapi-skeleton-app-test
build-benchmark:
DOCKER_BUILDKIT=1 docker build -f _BENCHMARK/dockerfile -t fastapi-skeleton-benchmark-image .
run-benchmark:
docker compose -f _BENCHMARK/docker-compose.yaml up -d
locust -f _BENCHMARK/locustfile.py -H http://localhost
run-app:
python -m uvicorn api.main:app