File tree 2 files changed +36
-16
lines changed
2 files changed +36
-16
lines changed Original file line number Diff line number Diff line change 8
8
helm repo update
9
9
```
10
10
11
- - Create a file with below contents - values.yaml
11
+ - Create a file with below contents - dtrack- values.yaml
12
12
13
13
``` yaml
14
14
ingress :
15
- enabled : true
16
- tls :
17
- enabled : false
18
- secretName : " "
19
- annotations :
20
- kubernetes.io/ingress.class : nginx
21
- # # allow large bom.xml uploads:
22
- nginx.ingress.kubernetes.io/proxy-body-size : 10m
23
- host : minikube.local
15
+ enabled : true
16
+ tls :
17
+ enabled : false
18
+ secretName : " "
19
+ annotations :
20
+ kubernetes.io/ingress.class : nginx
21
+ # # allow large bom.xml uploads:
22
+ nginx.ingress.kubernetes.io/proxy-body-size : 10m
23
+ host : minikube.local
24
+ frontend :
25
+ env :
26
+ - name : API_BASE_URL
27
+ value : " http://localhost:9002"
24
28
` ` `
25
29
26
- - Install Dependendency Track helm chart with custom values.yaml
30
+ - Install Dependendency Track helm chart with custom dtrack- values.yaml
27
31
28
32
` ` ` s
29
- kubectl create ns dependency-track
33
+ kubectl create ns deptrack
30
34
31
- helm upgrade dependency-track evryfs-oss/dependency-track --namespace dependency-track -f ./values.yaml
35
+ helm install deptrack evryfs-oss/dependency-track --namespace deptrack -f ./dtrack- values.yaml
32
36
```
33
37
38
+ - Port Forward the services
39
+
40
+ ``` s
41
+ kubectl port-forward svc/deptrack-dependency-track-apiserver 9002:80 -n deptrack
42
+ kubectl port-forward svc/deptrack-dependency-track-frontend 9001:80 -n deptrack
43
+ ```
44
+
45
+ - Access the UI using http://localhost:9001/dashboard
46
+
47
+ Note: The default password for dependency track is admin/admin
48
+
49
+ ## Another workaround:
50
+ (Note: Need to remove the API_BASE_URL env variable in the custom helm values)
51
+
34
52
- Run command ` minikube ip `
35
53
``` s
36
54
$ minikube ip
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ Sample spring application with Jenkins pipeline script to demonstrate secure pip
4
4
5
5
## Pre Requesites
6
6
7
- - minikube v1.18.1 - [ Refer here for installation] ( https://kubernetes.io/docs/tasks/tools/install-minikube/ )
8
- - helm v3.5.3 - [ Refer here for installation] ( https://helm.sh/docs/intro/install/ )
7
+ - minikube v1.24.0 - [ Refer here for installation] ( https://kubernetes.io/docs/tasks/tools/install-minikube/ )
8
+ - helm v3.7.2 - [ Refer here for installation] ( https://helm.sh/docs/intro/install/ )
9
9
10
10
## Setup Setps
11
11
@@ -14,6 +14,7 @@ Sample spring application with Jenkins pipeline script to demonstrate secure pip
14
14
- Setup minikube
15
15
``` s
16
16
minikube start --nodes=1 --cpus=4 --memory 8192 --disk-size=35g --embed-certs=true --driver=hyperkit
17
+ minikube addons enable ingress
17
18
```
18
19
19
20
### Jenkins setup
@@ -60,7 +61,8 @@ Sample spring application with Jenkins pipeline script to demonstrate secure pip
60
61
61
62
- Login to Jenkins -> Manage Jenkins -> Configure System -> Scroll to bottom -> Configure the Dependency-Track URL and API key -> Also enable Auto Create Projects -> Test Connection -> Save
62
63
63
- Hint: URL (if you have followed the exact steps) http://dependency-track-apiserver.dependency-track.svc.cluster.local
64
+ ** Hint:** URL (if you have followed the exact steps) http://dependency-track-apiserver.deptrack.svc.cluster.local
65
+ (Format: severiceName.namespace.svc.cluster.local)
64
66
65
67
### New Jenkins Pipeline
66
68
You can’t perform that action at this time.
0 commit comments