-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 809 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 809 Bytes
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
IMAGE ?= "katalog-agent"
TAG ?= "dev"
MOCK_IMAGE ?= "katalog-server"
# Makefile
all: setup hooks
# requires `nvm use --lts` or `nvm use node`
.PHONY: setup
setup:
npm install -g @commitlint/config-conventional @commitlint/cli
.PHONY: hooks
hooks:
@git config --local core.hooksPath .githooks/
.PHONY: kind
kind:
kind create cluster --name kind-katalog-agent --config kind/config.yaml
.PHONY: kind-delete
kind-delete:
kind delete cluster --name kind-katalog-agent
.PHONY: kind-load
kind-load:
docker build . -t $(IMAGE):$(TAG)
kind load docker-image --name kind-katalog-agent $(IMAGE):$(TAG)
cd docker/mockagentserver; docker build . -t $(MOCK_IMAGE):$(TAG)
kind load docker-image --name kind-katalog-agent $(MOCK_IMAGE):$(TAG)
.PHONY: apply
apply:
kustomize build k8s/ | kubectl apply -f -