forked from openfaas/faas-netes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (20 loc) · 918 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
TAG?=latest
local-fmt:
gofmt -l -d $(find . -type f -name '*.go' -not -path "./vendor/*")
local-go:
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o faas-netes
local: local-fmt local-go
build-armhf:
docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t functions/faas-netes:$(TAG)-armhf . -f Dockerfile.armhf
build-legacy:
docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t functions/faas-netes:$(TAG) . -f Dockerfile.non-multi
build:
docker build --build-arg http_proxy=$http_proxy --build-arg https_proxy=$https_proxy -t functions/faas-netes:$(TAG) .
push:
docker push alexellis2/faas-netes:$(TAG)
install:
kubectl apply -f faas.yml,monitoring.yml,rbac.yml
install-async:
kubectl apply -f faas.async.yml,monitoring.yml,rbac.yml,nats.yml
install-armhf:
kubectl apply -f faas.armhf.yml,monitoring.armhf.yml,rbac.yml