forked from openfaas/faas-netes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
34 lines (23 loc) · 1006 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
31
32
33
34
TAG?=latest
SQUASH?=false
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-arm64:
docker build -t functions/faas-netesd:$(TAG)-arm64 . -f Dockerfile.arm64
build-armhf:
docker build -t functions/faas-netesd:$(TAG)-armhf . -f Dockerfile.armhf
build-legacy:
docker build --build-arg http_proxy="${http_proxy}" --build-arg https_proxy="${https_proxy}" -t functions/faas-netesd:$(TAG) . -f Dockerfile.non-multi --squash=${SQUASH}
build:
docker build --build-arg http_proxy="${http_proxy}" --build-arg https_proxy="${https_proxy}" -t functions/faas-netesd:$(TAG) . --squash=${SQUASH}
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