-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
28 lines (25 loc) · 919 Bytes
/
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
composeup:
docker-compose up
composedown:
docker-compose down
composebuildpromosrv:
docker-compose build promotionsrv
composerestartpromocli:
docker-compose rm -fsv promotioncli
docker-compose up promotioncli
docbuildpromosrv:
docker build -t promosrv -f /promotion/Dockerfile .
docrunpromosrv:
docker run -p 50051:50051 --name promosrvcont promosrv
docbuildpromocli:
docker build -t promocli -f /promotion/DockerfileCli .
docrunpromocli:
docker run -p 50051:50051 --name promoclicont promocli
runpromosrv:
go run promotion/server/promotionServer.go
runpromocli:
go run promotion/client/promotionClient.go
genpromotionproto:
protoc --proto_path=$$GOPATH/src:. --micro_out=source_relative:.. --go_out=. --go_opt=paths=source_relative promotion/promotion.proto
genuserproto:
protoc --proto_path=$$GOPATH/src:. --micro_out=source_relative:.. --go_out=. --go_opt=paths=source_relative user/proto/user.proto