-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (28 loc) · 853 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
35
36
.PHONY: setup-kind
setup-kind:
kind create cluster
.PHONY: build-docker-image
build-docker-image:
docker build src/KubernetesWrapper -t altinn-kuberneteswrapper:local
.PHONY: load-image
load-image: build-docker-image
kind load docker-image altinn-kuberneteswrapper:local
.PHONY: deploy-components
deploy-components: load-image
kubectl delete -f integrationtests/kubewrapper.yaml --ignore-not-found
kubectl apply -f integrationtests/kubewrapper.yaml
.PHONY: port-forward
port-forward:
kubectl wait deployment -n default kuberneteswrapper --for condition=Available=True --timeout=90s
kubectl port-forward svc/kuberneteswrapper 8080:8080 &
sleep 5
.PHONY: build
build: setup-kind deploy-components
.PHONY: run-test
run-test:
./integrationtests/curl-test.sh
.PHONY: test
test: build run-test clean
.PHONY: clean
clean:
kind delete cluster