-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (20 loc) · 807 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
30
default: buildrelease
buildgo:
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix "static" .
builddocker:
docker build -t us.gcr.io/prp-k8s/nautilus-portal:latest .
pushdocker:
gcloud docker -- push us.gcr.io/prp-k8s/nautilus-portal
pushdevdocker:
gcloud docker -- push us.gcr.io/prp-k8s/nautilus-portal-dev
cleanup:
rm k8s_portal
buildrelease: buildgo builddocker pushdocker cleanup
builddevdocker:
docker build -t us.gcr.io/prp-k8s/nautilus-portal-dev:latest -f Dockerfile_dev .
builddevrelease: buildgo builddevdocker pushdevdocker cleanup
restartpod:
kubectl delete pods --selector=k8s-app=nautilus-portal -n kube-system
pushconfig:
-kubectl delete configmap portal-config -n kube-system
kubectl create configmap portal-config --from-file=config.toml=config_prod.toml -n kube-system