Skip to content

Commit f8686e2

Browse files
committed
[Ramki] Update README with latest DEPENDENCY TRACK setup instructions
1 parent fd3c605 commit f8686e2

File tree

2 files changed

+36
-16
lines changed

2 files changed

+36
-16
lines changed

DEPENDENCY_TRACK.md

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,47 @@
88
helm repo update
99
```
1010

11-
- Create a file with below contents - values.yaml
11+
- Create a file with below contents - dtrack-values.yaml
1212

1313
```yaml
1414
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"
2428
```
2529
26-
- Install Dependendency Track helm chart with custom values.yaml
30+
- Install Dependendency Track helm chart with custom dtrack-values.yaml
2731
2832
```s
29-
kubectl create ns dependency-track
33+
kubectl create ns deptrack
3034

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
3236
```
3337

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+
3452
- Run command `minikube ip`
3553
```s
3654
$ minikube ip

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Sample spring application with Jenkins pipeline script to demonstrate secure pip
44

55
## Pre Requesites
66

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/)
99

1010
## Setup Setps
1111

@@ -14,6 +14,7 @@ Sample spring application with Jenkins pipeline script to demonstrate secure pip
1414
- Setup minikube
1515
```s
1616
minikube start --nodes=1 --cpus=4 --memory 8192 --disk-size=35g --embed-certs=true --driver=hyperkit
17+
minikube addons enable ingress
1718
```
1819

1920
### Jenkins setup
@@ -60,7 +61,8 @@ Sample spring application with Jenkins pipeline script to demonstrate secure pip
6061

6162
- 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
6263

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)
6466

6567
### New Jenkins Pipeline
6668

0 commit comments

Comments
 (0)