-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 688 Bytes
/
Copy pathMakefile
File metadata and controls
33 lines (26 loc) · 688 Bytes
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
GOCMD=go
GOBUILD=go build
GO_FILE=main.go
BINARY_FILE=main
build-client:
cd ./client && yarn && yarn build
build-server:
echo "Building binary"
${GOBUILD} -o ${BINARY_FILE} ${GO_FILE}
run:
echo "Building binary"
${GOCMD} run main.go
# Replace akshay5995 with your docker username
docker-build:
echo "Building docker image"
docker build . -t akshay5995/go-svelte
docker-push:
echo "Pushing image to docker registry"
docker login
docker push akshay5995/go-svelte:latest
run-in-minikube:
echo "Deploying to minikube"
kubectl apply -f deployments/redis-master.yml
kubectl apply -f deployments/go-deployment.yml
echo "URL for the service"
minikube service go-svelte --url