-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
32 lines (22 loc) · 820 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
APP_VERSION := $(shell grep '^version=' gradle.properties | perl -pe "s/version=//g")
.PHONY: all
gradlew-clean-build:
./gradlew --no-daemon clean build
unarchive-jar: gradlew-clean-build
cd ./psystrike/build/libs && jar xvf *-$(APP_VERSION).jar
docker-build-local: unarchive-jar
docker build -t localhost:5000/psystrike:latest .
docker-build-hub: unarchive-jar
docker build -t matsumana/psystrike:$(APP_VERSION) .
docker-push-local: docker-build-local
docker push localhost:5000/psystrike:latest
docker-push-hub: docker-build-hub
docker push matsumana/psystrike:$(APP_VERSION)
kubectl-create-example:
kubectl apply -f ./example/manifests -R
kubectl-delete-example:
kubectl delete -f ./example/manifests -R
kubectl-get:
kubectl get deployment -o wide
kubectl get svc -o wide
kubectl get pod -o wide