-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
57 lines (41 loc) · 1.96 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
dev: gen-proto-server minikube-clean minikube-start k-secrets minikube-mount
doggo-install:
cd .devtools/doggo ; go install doggo
compose-dev:
@echo WARNING THIS IS DEPRECATED AND NEEDS TO BE REWORKED
docker-compose -f docker-compose.yml -f docker-compose.devandtest.yml -f docker-compose.dev.yml up
minikube-clean:
-minikube stop
-minikube delete
minikube-start:
minikube start --cpus 4 --memory 8192
minikube addons enable ingress
kubectl expose deployment ingress-nginx-controller --target-port=80 --type=NodePort -n kube-system
minikube-mount:
minikube mount ${PWD}:/owly
k-secrets:
kubectl create secret generic keycloak-creds --from-env-file=keycloak/.keycloak-env
port-fwd-server:
kubectl port-forward service/user-server-srv 50051:50051 &
kubectl port-forward service/chatroom-server-srv 50052:50052 &
kubectl port-forward service/message-server-srv 50053:50053 &
kubectl port-forward service/auth-server-srv 50054:50054
test-build:
docker-compose -f docker-compose.yml -f docker-compose.devandtest.yml -f docker-compose.test.yml build
test:
docker-compose -f docker-compose.yml -f docker-compose.devandtest.yml -f docker-compose.test.yml up --exit-code-from server
clean-docker-cache:
docker volume prune -f && docker system prune -f && docker container prune -f
dep-proto-grpc:
export GO111MODULE=auto
go get -u github.com/golang/protobuf/{proto,protoc-gen-go}
go get -u google.golang.org/grpc
gen-proto-server:
protoc protofiles/user.proto --go_out=plugins=grpc:./server/
protoc protofiles/user.proto --go_out=plugins=grpc:./server/common/pb/
protoc protofiles/chatroom.proto --go_out=plugins=grpc:./server/
protoc protofiles/chatroom.proto --go_out=plugins=grpc:./server/common/pb/
protoc protofiles/message.proto --go_out=plugins=grpc:./server/
protoc protofiles/message.proto --go_out=plugins=grpc:./server/common/pb/
protoc protofiles/auth.proto --go_out=plugins=grpc:./server/
protoc protofiles/auth.proto --go_out=plugins=grpc:./server/common/pb/