-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
29 lines (24 loc) · 1.11 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
IMAGE?=io.acme/haskell-example-operator
.PHONY: build
build: package image-build
.PHONY: package
package:
./gradlew clean build
.PHONY: image-build
image-build:
docker build -t $(IMAGE):latest -f Dockerfile .
.PHONY: devel
devel: build
-docker kill `docker ps -q` || true
oc cluster up
oc create -f manifest/operator.yaml
until [ "true" = "`oc get pod -l app.kubernetes.io/name=haskell-example-operator -o json 2> /dev/null | grep \"\\\"ready\\\": \" | sed -e 's;.*\(true\|false\),;\1;'`" ]; do printf "."; sleep 1; done
oc logs -f `oc get pods --no-headers -l app.kubernetes.io/name=haskell-example-operator | cut -f1 -d' '`
.PHONY: devel-kubernetes
devel-kubernetes:
-minikube delete
minikube start --vm-driver kvm2
eval `minikube docker-env` && $(MAKE) build
kubectl create -f manifest/operator.yaml
until [ "true" = "`kubectl get pod -l app.kubernetes.io/name=haskell-example-operator -o json 2> /dev/null | grep \"\\\"ready\\\": \" | sed -e 's;.*\(true\|false\),;\1;'`" ]; do printf "."; sleep 1; done
kubectl logs -f `kubectl get pods --no-headers -l app.kubernetes.io/name=haskell-example-operator | cut -f1 -d' '`