-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (52 loc) · 2.33 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
profile = k8s-dev-cluster
start:
minikube start --memory 5120 --cpus 2 --profile $(profile) --driver=virtualbox
minikube --profile $(profile) addons enable ingress
stop:
minikube --profile $(profile) stop
dashboard:
minikube --profile $(profile) dashboard
ip:
minikube --profile $(profile) ip
install_jenkins:
kubectl apply -f ./volumes/jenkins-volume.yml
kubectl apply -f ./volumes/jenkins-volume-claim.yml
kubectl apply -f ./deployments/jenkins-deployment.yml
kubectl apply -f ./services/jenkins-service.yml
kubectl apply -f ./controllers/jenkins-ingress.yml
- kubectl create clusterrolebinding permissive-binding --clusterrole=cluster-admin --user=admin --user=kubelet --group=system:serviceaccounts
install_nexus:
kubectl apply -f ./volumes/nexus-volume.yml
kubectl apply -f ./volumes/nexus-volume-claim.yml
kubectl apply -f ./deployments/nexus-deployment.yml
kubectl apply -f ./services/nexus-service.yml
kubectl apply -f ./controllers/nexus-ingress.yml
install_sonar:
kubectl apply -f ./volumes/sonar-volume.yml
kubectl apply -f ./volumes/sonar-volume-claim.yml
kubectl apply -f ./deployments/sonar-deployment.yml
kubectl apply -f ./services/sonar-service.yml
kubectl apply -f ./controllers/sonar-ingress.yml
clean_jenkins:
- kubectl delete deployments jenkins-deployment
- kubectl delete services jenkins-service
- kubectl delete -f controllers/jenkins-ingress.yml
- kubectl delete persistentVolumeClaims jenkins-volume-claim
- kubectl delete persistentVolumes jenkins-volume
clean_nexus:
- kubectl delete deployments nexus-deployment
- kubectl delete services nexus-service
- kubectl delete -f controllers/nexus-ingress.yml
- kubectl delete persistentVolumeClaims nexus-volume-claim
- kubectl delete persistentVolumes nexus-volume
clean_sonar:
- kubectl delete deployments sonar-deployment
- kubectl delete services sonar-service
- kubectl delete -f controllers/sonar-ingress.yml
- kubectl delete persistentVolumeClaims sonar-volume-claim
- kubectl delete persistentVolumes sonar-volume
install: install_jenkins install_nexus install_sonar
clean: clean_jenkins clean_nexus clean_sonar
ngrok_proxy:
ngrok start --config ~/.ngrok2/ngrok.yml --config ./ngrok/config.yml githubWebhooks
.PHONY: install clean start dashboard ip stop install_jenkins clean_jenkins ngrok_proxy install_nexus clean_nexus install_sonar clean_sonar