-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
25 lines (19 loc) · 862 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
generate:
# (rm -rf internal/proto)
# protoc --go_out=plugins=grpc:. api/*.proto
(cd internal/configs && go generate && goimports -w *.go)
(cd internal/gateway/configs && go generate && goimports -w *.go)
star-dev:
docker-compose up --remove-orphans -d
configure:
go install github.com/gokultp/go-envparser
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2
go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
GO111MODULE=off go get -u github.com/radovskyb/watcher/...
grep -v "firstcontributions" /etc/hosts >> /tmp/hosts
echo "172.30.1.6 api.firstcontributions.com" >> /tmp/hosts
echo "172.30.1.8 explorer.firstcontributions.com" >> /tmp/hosts
mv /tmp/hosts /etc/hosts
itest:
docker-compose -f docker-compose-itest.yml up --remove-orphans --exit-code-from itest itest
# docker-compose -f docker-compose-itest.yml down