-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (20 loc) · 962 Bytes
/
Makefile
File metadata and controls
27 lines (20 loc) · 962 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
PROJECT_ID=reverseproxy-474222
REGION=us-central1
REGISTRY=$(REGION)-docker.pkg.dev/$(PROJECT_ID)/reverseproxy
build:
./gradlew :app:fatJar :testserver:fatJar
proxy:
docker compose -f docker/local/compose.yml up --build reverse-proxy
dev:
docker compose -f docker/local/compose.yml up --build
down:
docker compose -f docker/local/compose.yml down
rebuild:
./gradlew clean :app:fatJar :testserver:fatJar
logs:
docker logs -f reverse-proxy
cloud_deploy:
docker buildx build --platform linux/amd64 -t $(REGISTRY)/proxy:latest -f docker/deploy/Dockerfile.proxy --push .
docker buildx build --platform linux/amd64 -t $(REGISTRY)/upstream:latest -f docker/deploy/Dockerfile.upstream --push .
docker buildx build --platform linux/amd64 -t $(REGISTRY)/locust-master:latest -f docker/deploy/Dockerfile.locust-master --push .
docker buildx build --platform linux/amd64 -t $(REGISTRY)/locust-worker:latest -f docker/deploy/Dockerfile.locust-worker --push .