File tree Expand file tree Collapse file tree 5 files changed +63
-282
lines changed Expand file tree Collapse file tree 5 files changed +63
-282
lines changed Original file line number Diff line number Diff line change 1
- FROM eclipse-temurin:17.0.6_10-jdk-alpine@sha256:a765a97826df90554f3d3a98be5586012bbc53593876f669ff4b2e68717be71d
2
-
3
- WORKDIR /app
1
+ FROM alpine:3.17.3@sha256:b6ca290b6b4cdcca5b3db3ffa338ee0285c11744b4a6abaa9627746ee3291d8d
4
2
5
3
ENV LANG en_CA.UTF-8
6
4
ENV LANGUAGE en_CA.UTF-8
7
5
ENV LC_ALL en_CA.UTF-8
8
6
7
+ RUN apk --no-cache add openssl openjdk8
8
+
9
+ RUN which openssl
10
+ RUN which keytool
11
+
9
12
COPY startup.sh .
10
- COPY InstallCert.java .
11
13
12
- RUN chmod g+w /app && \
13
- chmod g+x startup.sh && \
14
- chmod g+w ${JAVA_HOME}/lib/security/cacerts
14
+ RUN chmod g+x startup.sh
15
15
16
16
# Non-privileged user
17
17
USER app
18
18
19
- ENTRYPOINT ["sh" , "startup.sh" ]
19
+ ENTRYPOINT ["sh" , "startup.sh" ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -58,6 +58,9 @@ parameters:
58
58
- name : ORACLEDB_SECRET
59
59
description : Oracle database keystore secret/password
60
60
required : true
61
+ - name : CERT_PVC_SIZE
62
+ description : The amount of storage the cert PVC should have
63
+ value : 25Mi
61
64
objects :
62
65
- apiVersion : v1
63
66
kind : Secret
@@ -88,6 +91,19 @@ objects:
88
91
name : ${REGISTRY}/${PROMOTE}
89
92
referencePolicy :
90
93
type : Local
94
+ - apiVersion : v1
95
+ kind : PersistentVolumeClaim
96
+ metadata :
97
+ labels :
98
+ app : ${NAME}-${ZONE}
99
+ name : ${NAME}-${ZONE}-${COMPONENT}
100
+ spec :
101
+ accessModes :
102
+ - ReadWriteMany
103
+ resources :
104
+ requests :
105
+ storage : ${CERT_PVC_SIZE}
106
+ storageClassName : netapp-file-standard
91
107
- apiVersion : v1
92
108
kind : DeploymentConfig
93
109
metadata :
@@ -117,8 +133,9 @@ objects:
117
133
deploymentconfig : ${NAME}-${ZONE}-${COMPONENT}
118
134
spec :
119
135
volumes :
120
- - name : certs
121
- emptyDir : {}
136
+ - name : ${NAME}-${ZONE}-${COMPONENT}
137
+ persistentVolumeClaim :
138
+ claimName : ${NAME}-${ZONE}-${COMPONENT}
122
139
initContainers :
123
140
- name : ${NAME}-init
124
141
image : ${REGISTRY}/bcgov/${NAME}/init:${ZONE}
@@ -129,11 +146,16 @@ objects:
129
146
secretKeyRef :
130
147
name : ${NAME}-${ZONE}-${COMPONENT}
131
148
key : oracle-host
149
+ - name : ORACLEDB_SECRET
150
+ valueFrom :
151
+ secretKeyRef :
152
+ name : ${NAME}-${ZONE}-${COMPONENT}
153
+ key : oracle-secret
132
154
- name : ORACLEDB_PORT
133
155
value : " 1543"
134
156
volumeMounts :
135
- - mountPath : /cert
136
- name : certs
157
+ - name : ${NAME}-${ZONE}-${COMPONENT}
158
+ mountPath : /cert
137
159
resources :
138
160
limits :
139
161
cpu : ${CPU_LIMIT}
@@ -211,7 +233,7 @@ objects:
211
233
timeoutSeconds : 5
212
234
volumeMounts :
213
235
- mountPath : /cert
214
- name : certs
236
+ name : ${NAME}-${ZONE}-${COMPONENT}
215
237
- apiVersion : v1
216
238
kind : Service
217
239
metadata :
Original file line number Diff line number Diff line change 4
4
<parent >
5
5
<groupId >org.springframework.boot</groupId >
6
6
<artifactId >spring-boot-starter-parent</artifactId >
7
- <version >3.0.4 </version >
7
+ <version >3.0.5 </version >
8
8
<relativePath />
9
9
</parent >
10
10
You can’t perform that action at this time.
0 commit comments