-
Notifications
You must be signed in to change notification settings - Fork 0
/
rebuild.sh
executable file
·22 lines (22 loc) · 1.04 KB
/
rebuild.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# !/bin/sh
minikube delete
minikube start
cd ~/code/mister
CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o bin/coordinator -a cmd/coordinator/coordinator.go
docker build -f coordinator.Dockerfile . -t coordinator:1
minikube image load coordinator:1
CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o bin/dashboard -a cmd/dashboard/dashboard.go
docker build -f dashboard.Dockerfile . -t dashboard:1
minikube image load dashboard:1
CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o bin/fetch -a cmd/fetch/fetch.go
docker build -f fetch.Dockerfile . -t fetch:1
minikube image load fetch:1
cd ~/code/mister-wordcount
CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o bin/mr-wordcount -a
docker build . -t wordcount:1
minikube image load wordcount:1
cd ~/code/mister-indexer
CGO_ENABLED=0 GOOS=linux go build -trimpath -ldflags="-s -w" -o bin/mr-indexer -a
docker build . -t indexer:1
minikube image load indexer:1
kubectl create clusterrolebinding default-view --clusterrole=admin --serviceaccount=default:default