-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (34 loc) · 1.25 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
version=0.1.0
registry=eigr
operator-image=${registry}/flame-k8s-controller:${version}
.PHONY: all
all: build test build-all-images
clean:
mix deps.clean --all
clean-all:
mix deps.clean --all && kind delete cluster --name default
build:
mix deps.get && mix compile
build-operator-image:
docker build --no-cache -f Dockerfile-operator -t ${operator-image} .
test:
MIX_ENV=test elixir --name [email protected] -S mix test
test-operator:
cd spawn_operator/spawn_operator && MIX_ENV=test mix deps.get && MIX_ENV=test elixir --name [email protected] -S mix test
push-all-images:
docker push ${operator-image}
create-minikube-cluster:
minikube start
create-kind-cluster:
kind create cluster -v 1 --name default --config kind-cluster-config.yaml
kubectl cluster-info --context kind-default
delete-kind-cluster:
kind delete cluster --name default
load-kind-images:
kind load docker-image ${operator-image} --name default
create-k8s-namespace:
kubectl create ns flame
generate-k8s-manifests:
cd flame_k8s_controller && MIX_ENV=prod mix deps.get && MIX_ENV=prod mix flame.gen.manifest --image ${operator-image} --namespace flame --out ../.k8s/install/manifests
apply-k8s-manifests:
kubectl -n flame apply -f flame_k8s_controller/manifest.yaml