Skip to content

Commit

Permalink
Removing notes on OpenShift.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisstritzke committed Aug 14, 2022
1 parent 2ac1b96 commit c965d85
Showing 1 changed file with 0 additions and 48 deletions.
48 changes: 0 additions & 48 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,53 +18,5 @@ docker-compose up -d

Visit [http://localhost:8080](http://localhost:8080).

## Run in OpenShift
```
oc new-app --template=postgresql-persistent -p=POSTGRESQL_DATABASE=moneytracker
oc new-app dstritzke/money-tracker:1.0.2
oc patch dc money-tracker -p '{
"spec": {
"template": {
"spec": {
"containers": [{
"name":"money-tracker",
"resources": {
"limits": {
"memory": "512Mi"
},
"requests": {
"memory": "256Mi"
}
},
"readinessProbe": {
"httpGet": {
"path": "/health",
"port": 8080,
"scheme": "HTTP"
}
},
"env": [{
"name":"SPRING_DATASOURCE_URL",
"value":"jdbc:postgresql://postgresql:5432/moneytracker"
}, {
"name":"SPRING_DATASOURCE_USERNAME",
"valueFrom": {
"secretKeyRef": {
"key": "database-user",
"name":"postgresql"}}
}, {
"name":"SPRING_DATASOURCE_PASSWORD",
"valueFrom": {
"secretKeyRef": {
"key": "database-password",
"name":"postgresql"}}
}, {
"name":"SPRING_JPA_HIBERNATE_DDL_AUTO",
"value":"update"
}]}]}}}}'
oc create route edge --service=money-tracker --insecure-policy=Redirect
echo "Visit https://$(oc get route money-tracker -o jsonpath='{.spec.host}')"
```

## Known Vulnerability Scan
Within the pom.xml the OWASP dependency check is added. To execute the dependency scan, execute `mvn dependency-check:aggregate`.

0 comments on commit c965d85

Please sign in to comment.