-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
29 lines (24 loc) · 1021 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
29
build-proto:
cd internal/api/rpc && protoc --go_out=. --go-grpc_out=. chat/chat.proto
build-images: # 默认版本为latest
docker build -t geraldkohn/im-gateway -f dockerfiles/gateway.Dockerfile .
docker build -t geraldkohn/im-pusher -f dockerfiles/pusher.Dockerfile .
docker build -t geraldkohn/im-transfer -f dockerfiles/transfer.Dockerfile .
push-images: # 默认版本为latest
docker push geraldkohn/im-gateway
docker push geraldkohn/im-pusher
docker push geraldkohn/im-transfer
deploy-k8s-components:
kubectl apply -f deploy_k8s/components/etcd
kubectl apply -f deploy_k8s/components/kafka
kubectl apply -f deploy_k8s/components/mongodb
kubectl apply -f deploy_k8s/components/mysql
kubectl apply -f deploy_k8s/components/redis
clean-k8s-components:
kubectl delete sts --all -n geraldkohn
kubectl delete pvc --all -n geraldkohn
kubectl delete pv --all -n geraldkohn
deploy-k8s-all:
kubectl apply -f deploy_k8s/gateway
kubectl apply -f deploy_k8s/pusher
kubectl apply -f deploy_k8s/transfer