Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Example java application
## Example java application --

### Requirements

Expand Down Expand Up @@ -34,4 +34,4 @@ gradle test
### Available endpoints

- `/` GET
- `/current-connections` GET
- `/current-connections` GET
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ tasks.named('test') {


dependencyCheck {
format = 'JSON'
format = 'HTML'
}
71 changes: 71 additions & 0 deletions deploy/BuildConfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
kind: BuildConfig
apiVersion: build.openshift.io/v1
metadata:
name: opdr4-bc2
namespace: janjansenn2-dev
uid: 418da23e-24f6-4980-a718-d1bff003f6cf
resourceVersion: '998166957'
generation: 8
creationTimestamp: '2023-11-22T09:00:25Z'
managedFields:
- manager: openshift-apiserver
operation: Update
apiVersion: build.openshift.io/v1
time: '2023-11-22T09:08:21Z'
fieldsType: FieldsV1
fieldsV1:
'f:status':
'f:lastVersion': {}
- manager: Mozilla
operation: Update
apiVersion: build.openshift.io/v1
time: '2023-11-22T12:50:08Z'
fieldsType: FieldsV1
fieldsV1:
'f:spec':
'f:output':
'f:to': {}
'f:runPolicy': {}
'f:source':
'f:git':
.: {}
'f:ref': {}
'f:uri': {}
'f:secrets': {}
'f:type': {}
'f:strategy':
'f:dockerStrategy':
.: {}
'f:dockerfilePath': {}
'f:pullSecret': {}
'f:type': {}
'f:triggers': {}
spec:
nodeSelector: null
output:
to:
kind: ImageStreamTag
name: 'opdr4_is:latest'
resources: {}
successfulBuildsHistoryLimit: 5
failedBuildsHistoryLimit: 5
strategy:
type: Docker
dockerStrategy:
pullSecret:
name: opdr4-secret2
dockerfilePath: Dockerfile
postCommit: {}
source:
type: Git
git:
uri: 'https://github.com/xtenone/example-java-app.git'
ref: main
secrets:
- secret:
name: opdr4-secret
triggers:
- type: ConfigChange
runPolicy: Serial
status:
lastVersion: 2
170 changes: 170 additions & 0 deletions deploy/Deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: opdr4-ngix2
namespace: janjansenn2-dev
uid: efb34504-3c44-438f-a26c-e8c5e847c91c
resourceVersion: '1003278358'
generation: 1
creationTimestamp: '2023-11-23T13:39:21Z'
annotations:
deployment.kubernetes.io/revision: '1'
managedFields:
- manager: Mozilla
operation: Update
apiVersion: apps/v1
time: '2023-11-23T13:39:21Z'
fieldsType: FieldsV1
fieldsV1:
'f:spec':
'f:progressDeadlineSeconds': {}
'f:replicas': {}
'f:revisionHistoryLimit': {}
'f:selector': {}
'f:strategy':
'f:rollingUpdate':
.: {}
'f:maxSurge': {}
'f:maxUnavailable': {}
'f:type': {}
'f:template':
'f:metadata':
'f:labels':
.: {}
'f:app': {}
'f:spec':
'f:containers':
'k:{"name":"container"}':
'f:image': {}
'f:volumeMounts':
.: {}
'k:{"mountPath":"/opt/app-root/src"}':
.: {}
'f:mountPath': {}
'f:name': {}
'f:terminationMessagePolicy': {}
.: {}
'f:resources': {}
'f:command': {}
'f:terminationMessagePath': {}
'f:imagePullPolicy': {}
'f:ports':
.: {}
'k:{"containerPort":8080,"protocol":"TCP"}':
.: {}
'f:containerPort': {}
'f:protocol': {}
'f:name': {}
'f:dnsPolicy': {}
'f:restartPolicy': {}
'f:schedulerName': {}
'f:securityContext': {}
'f:terminationGracePeriodSeconds': {}
'f:volumes':
.: {}
'k:{"name":"config-volume"}':
.: {}
'f:configMap':
.: {}
'f:defaultMode': {}
'f:name': {}
'f:name': {}
- manager: kube-controller-manager
operation: Update
apiVersion: apps/v1
time: '2023-11-23T13:39:22Z'
fieldsType: FieldsV1
fieldsV1:
'f:metadata':
'f:annotations':
.: {}
'f:deployment.kubernetes.io/revision': {}
'f:status':
'f:availableReplicas': {}
'f:conditions':
.: {}
'k:{"type":"Available"}':
.: {}
'f:lastTransitionTime': {}
'f:lastUpdateTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'k:{"type":"Progressing"}':
.: {}
'f:lastTransitionTime': {}
'f:lastUpdateTime': {}
'f:message': {}
'f:reason': {}
'f:status': {}
'f:type': {}
'f:observedGeneration': {}
'f:readyReplicas': {}
'f:replicas': {}
'f:updatedReplicas': {}
subresource: status
spec:
replicas: 1
selector:
matchLabels:
app: opdr4-nginx
template:
metadata:
creationTimestamp: null
labels:
app: opdr4-nginx
spec:
volumes:
- name: config-volume
configMap:
name: dependency-security-report
defaultMode: 420
containers:
- resources: {}
terminationMessagePath: /dev/termination-log
name: container
command:
- nginx
- '-g'
- daemon off;
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: config-volume
mountPath: /opt/app-root/src
terminationMessagePolicy: File
image: registry.access.redhat.com/ubi8/nginx-120
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600
status:
observedGeneration: 1
replicas: 1
updatedReplicas: 1
readyReplicas: 1
availableReplicas: 1
conditions:
- type: Available
status: 'True'
lastUpdateTime: '2023-11-23T13:39:22Z'
lastTransitionTime: '2023-11-23T13:39:22Z'
reason: MinimumReplicasAvailable
message: Deployment has minimum availability.
- type: Progressing
status: 'True'
lastUpdateTime: '2023-11-23T13:39:22Z'
lastTransitionTime: '2023-11-23T13:39:21Z'
reason: NewReplicaSetAvailable
message: ReplicaSet "opdr4-ngix2-84854b6c7c" has successfully progressed.
Loading