-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
executable file
·19 lines (19 loc) · 936 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# !/bin/sh
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