-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 1.37 KB
/
Makefile
File metadata and controls
44 lines (32 loc) · 1.37 KB
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
LOCAL = true
TARGET_ARCH ?= $(if $(filter true,$(LOCAL)),$(shell go env GOARCH),amd64)
# renovate: dataSource=github-releases depName=helmfile/helmfile
HELMFILE_VERSION ?= "1.4.3"
init: temp/certs/ca.key temp/certs/ca.crt temp/certs/ssh_key temp/certs/ssh_key.pub temp/secrets.sh temp/secrets.env
temp/certs/ca.key temp/certs/ca.crt temp/certs/ssh_key temp/certs/ssh_key.pub temp/secrets.sh temp/secrets.env:
@ ./scripts/init.sh
install:
kind get kubeconfig --name cfk8s > temp/kubeconfig
docker run --rm --net=host --env-file temp/secrets.env \
--env INSTALL_OPTIONAL_COMPONENTS \
-v "$$PWD/temp/certs:/certs" -v "$$PWD/temp/kubeconfig:/helm/.kube/config:ro" -v "$$PWD:/wd" --workdir /wd ghcr.io/helmfile/helmfile:v$(HELMFILE_VERSION) helmfile sync
login:
@ . temp/secrets.sh; \
cf login -a https://api.127-0-0-1.nip.io -u ccadmin -p "$$CC_ADMIN_PASSWORD" --skip-ssl-validation
create-kind:
@ ./scripts/create-kind.sh
delete-kind:
@ ./scripts/delete-kind.sh
create-org:
cf create-org test
cf create-space -o test test
cf target -o test -s test
@ ./scripts/set_feature_flags.sh
bootstrap: create-org
@ ./scripts/upload_buildpacks.sh
bootstrap-complete: create-org
@ ALL_BUILDPACKS=true ./scripts/upload_buildpacks.sh
up: create-kind init install
down: delete-kind
@ rm -rf temp
PHONY: install login create-kind delete-kind up down create-org bootstrap bootstrap-complete