forked from openfaas/faas-netes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (43 loc) · 1.97 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
.PHONY: build local build-arm64 build-armhf push namespaces install install-armhf charts ci-armhf-build ci-armhf-push ci-arm64-build ci-arm64-push
TAG?=latest
all: build
local:
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o faas-netes
build-arm64:
docker build -t openfaas/faas-netes:$(TAG)-arm64 . -f Dockerfile.arm64
build-armhf:
docker build -t openfaas/faas-netes:$(TAG)-armhf . -f Dockerfile.armhf
build:
docker build --build-arg http_proxy="${http_proxy}" --build-arg https_proxy="${https_proxy}" -t openfaas/faas-netes:$(TAG) .
push:
docker push openfaas/faas-netes:$(TAG)
namespaces:
kubectl apply -f namespaces.yml
install: namespaces
kubectl apply -f yaml/
install-armhf: namespaces
kubectl apply -f yaml_armhf/
charts:
cd chart && helm package openfaas/ && helm package kafka-connector/ && helm package cron-connector/ && helm package nats-connector/
mv chart/*.tgz docs/
helm repo index docs --url https://openfaas.github.io/faas-netes/ --merge ./docs/index.yaml
./contrib/create-static-manifest.sh
./contrib/create-static-manifest.sh ./chart/openfaas ./yaml_arm64 ./chart/openfaas/values-arm64.yaml
./contrib/create-static-manifest.sh ./chart/openfaas ./yaml_armhf ./chart/openfaas/values-armhf.yaml
ci-armhf-build:
docker build -t openfaas/faas-netes:$(TAG)-armhf . -f Dockerfile.armhf
ci-armhf-push:
docker push openfaas/faas-netes:$(TAG)-armhf
ci-arm64-build:
docker build -t openfaas/faas-netes:$(TAG)-arm64 . -f Dockerfile.arm64
ci-arm64-push:
docker push openfaas/faas-netes:$(TAG)-arm64
start-kind: ## attempt to start a new dev environment
@./contrib/create_dev.sh \
&& echo "" \
&& printf '%-15s:\t %s\n' 'Web UI' 'http://localhost:31112/ui' \
&& printf '%-15s:\t %s\n' 'User' 'admin' \
&& printf '%-15s:\t %s\n' 'Password' $(shell cat password.txt) \
&& printf '%-15s:\t %s\n' 'CLI Login' "faas-cli login --username admin --password $(shell cat password.txt)"
stop-kind: ## attempt to stop the dev environment
@./contrib/stop_dev.sh