-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
39 lines (27 loc) · 1.05 KB
/
Makefile
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
grpc-gen:
protoc --go_out=. --go-grpc_out=require_unimplemented_servers=false:. crawlerd.proto
tests:
go test ./...
docker-build-api:
docker build -f build/api/Dockerfile -t localhost:5000/crawlerd/api:latest .
docker-push-api:
docker push localhost:5000/crawlerd/api:latest
docker-build-scheduler:
docker build -f build/scheduler/Dockerfile -t localhost:5000/crawlerd/scheduler:latest .
docker-push-scheduler:
docker push localhost:5000/crawlerd/scheduler:latest
docker-build-worker:
docker build -f build/worker/Dockerfile -t localhost:5000/crawlerd/worker:latest .
docker-push-worker:
docker push localhost:5000/crawlerd/worker:latest
docker-run-local-registry:
docker run -d -p 5000:5000 --restart=always --name registry registry:2
docker-clean:
docker rmi $(docker images -f "dangling=true" -q) -f
compose-infra:
docker-compose -f ./build/docker-compose.infra.yml up
compose-up:
docker-compose -f docker-compose.yml up --build
# TODO: not working via make
debug-bin:
dlv --listen=:2345 --headless=true --api-version=2 --accept-multiclient exec ./$1