Dockerfile 16.3 KB
Newer Older
zikas96's avatar
zikas96 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
FROM maven:3.6.3-jdk-11 as dependencies
MAINTAINER Zakaria NAJI
LABEL name=dependencies
USER root
COPY . /app
WORKDIR /app
RUN mvn clean install -DskipTests
WORKDIR /app/ui/ui-frontend-common
RUN mvn clean install -DskipTests -Pstandalone
WORKDIR /app/ui/ui-frontend
RUN mvn clean install -DskipTests -Pstandalone
WORKDIR /app/api/api-pastis/pastis-standalone
RUN mvn clean install -DskipTests -Pstandalone

FROM adoptopenjdk/openjdk11 AS security-internal
MAINTAINER Zakaria NAJI
LABEL name=security-internal
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/api/api-security/security-commons /app/api/api-security/security-commons
COPY --from=dependencies /app/commons/commons-mongo /app/commons/commons-mongo
COPY --from=dependencies /app/api/api-security/security-internal/target /app/api/api-security/security-internal/target
COPY --from=dependencies /app/api/api-security/security-internal/run.sh /app/api/api-security/security-internal/run.sh
COPY --from=dependencies /app/api/api-security/security-internal/pom.xml /app/api/api-security/security-internal/pom.xml
WORKDIR /app/api/api-security/security-internal
RUN chmod +x run.sh
EXPOSE 8084
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS iam-internal
MAINTAINER Zakaria NAJI
LABEL name=iam-internal
COPY --from=dependencies /app/commons/commons-vitam /app/commons/commons-vitam
COPY --from=dependencies /app/commons/commons-logbook /app/commons/commons-logbook
COPY --from=dependencies /app/commons/commons-mongo /app/commons/commons-mongo
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/api/api-iam/iam-commons/target /app/api/api-iam/iam-commons/target
COPY --from=dependencies /app/api/api-iam/iam-commons/pom.xml /app/api/api-iam/iam-commons/pom.xml
COPY --from=dependencies /app/api/api-iam/iam-security /app/api/api-iam/iam-security
COPY --from=dependencies /app/api/api-security/security-client /app/api/api-security/security-client
COPY --from=dependencies /app/api/api-iam/iam-internal/target /app/api/api-iam/iam-internal/target
COPY --from=dependencies /app/api/api-iam/iam-internal/run.sh /app/api/api-iam/iam-internal/run.sh
COPY --from=dependencies /app/api/api-iam/iam-internal/pom.xml /app/api/api-iam/iam-internal/pom.xml
WORKDIR /app/api/api-iam/iam-internal
RUN chmod +x run.sh
EXPOSE 7083
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS iam-external
MAINTAINER Zakaria NAJI
LABEL name=iam-external
COPY --from=dependencies /app/commons/commons-vitam /app/commons/commons-vitam
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/api/api-iam/iam-commons/target /app/api/api-iam/iam-commons/target
COPY --from=dependencies /app/api/api-iam/iam-commons/pom.xml /app/api/api-iam/iam-commons/pom.xml
COPY --from=dependencies /app/api/api-iam/iam-security /app/api/api-iam/iam-security
COPY --from=dependencies /app/api/api-security/security-client /app/api/api-security/security-client
COPY --from=dependencies /app/api/api-iam/iam-internal-client/target /app/api/api-iam/iam-internal-client/target
COPY --from=dependencies /app/api/api-iam/iam-internal-client/pom.xml /app/api/api-iam/iam-internal-client/pom.xml
COPY --from=dependencies /app/api/api-iam/iam-external/target /app/api/api-iam/iam-external/target
COPY --from=dependencies /app/api/api-iam/iam-external/run.sh /app/api/api-iam/iam-external/run.sh
COPY --from=dependencies /app/api/api-iam/iam-external/pom.xml /app/api/api-iam/iam-external/pom.xml
WORKDIR /app/api/api-iam/iam-external
RUN chmod +x run.sh
EXPOSE 8083
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS referential-external
MAINTAINER Zakaria NAJI
LABEL name=referential-external
COPY --from=dependencies /app/api/api-referential/referential-commons/target /app/api/api-referential/referential-commons/target
COPY --from=dependencies /app/api/api-referential/referential-commons/pom.xml /app/api/api-referential/referential-commons/pom.xml
COPY --from=dependencies /app/commons/commons-vitam /app/commons/commons-vitam
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/api/api-iam/iam-security /app/api/api-iam/iam-security
COPY --from=dependencies /app/api/api-security/security-client /app/api/api-security/security-client
COPY --from=dependencies /app/api/api-iam/iam-internal-client/target /app/api/api-iam/iam-internal-client/target
COPY --from=dependencies /app/api/api-iam/iam-internal-client/pom.xml /app/api/api-iam/iam-internal-client/pom.xml
COPY --from=dependencies /app/api/api-referential/referential-internal-client/target /app/api/api-referential/referential-internal-client/target
COPY --from=dependencies /app/api/api-referential/referential-internal-client/pom.xml /app/api/api-referential/referential-internal-client/pom.xml
COPY --from=dependencies /app/api/api-referential/referential-external/target /app/api/api-referential/referential-external/target
COPY --from=dependencies /app/api/api-referential/referential-external/run.sh /app/api/api-referential/referential-external/run.sh
COPY --from=dependencies /app/api/api-referential/referential-external/pom.xml /app/api/api-referential/referential-external/pom.xml
WORKDIR /app/api/api-referential/referential-external
RUN chmod +x run.sh
EXPOSE 8087
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS referential-internal
MAINTAINER Zakaria NAJI
LABEL name=referential-internal
COPY --from=dependencies /app/api/api-iam/iam-security /app/api/api-iam/iam-security
COPY --from=dependencies /app/api/api-security/security-client /app/api/api-security/security-client
COPY --from=dependencies /app/commons/commons-vitam /app/commons/commons-vitam
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/api/api-referential/referential-commons/target /app/api/api-referential/referential-commons/target
COPY --from=dependencies /app/api/api-referential/referential-commons/pom.xml /app/api/api-referential/referential-commons/pom.xml
COPY --from=dependencies /app/api/api-referential/referential-internal/target /app/api/api-referential/referential-internal/target
COPY --from=dependencies /app/api/api-referential/referential-internal/run.sh /app/api/api-referential/referential-internal/run.sh
COPY --from=dependencies /app/api/api-referential/referential-internal/pom.xml /app/api/api-referential/referential-internal/pom.xml
WORKDIR /app/api/api-referential/referential-internal
RUN chmod +x run.sh
EXPOSE 7087
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS pastis-external
MAINTAINER Zakaria NAJI
LABEL name=pastis-external
COPY --from=dependencies /app/api/api-iam/iam-security /app/api/api-iam/iam-security
COPY --from=dependencies /app/api/api-security/security-client /app/api/api-security/security-client
COPY --from=dependencies /app/api/api-iam/iam-internal-client/target /app/api/api-iam/iam-internal-client/target
COPY --from=dependencies /app/api/api-iam/iam-internal-client/pom.xml /app/api/api-iam/iam-internal-client/pom.xml
COPY --from=dependencies /app/commons/commons-vitam /app/commons/commons-vitam
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/api/api-pastis/pastis-commons/target /app/api/api-pastis/pastis-commons/target
COPY --from=dependencies /app/api/api-pastis/pastis-commons/pom.xml /app/api/api-pastis/pastis-commons/pom.xml
COPY --from=dependencies /app/api/api-pastis/pastis-client/target /app/api/api-pastis/pastis-client/target
COPY --from=dependencies /app/api/api-pastis/pastis-client/pom.xml /app/api/api-pastis/pastis-client/pom.xml
COPY --from=dependencies /app/api/api-pastis/pastis/target /app/api/api-pastis/pastis/target
COPY --from=dependencies /app/api/api-pastis/pastis/run.sh /app/api/api-pastis/pastis/run.sh
COPY --from=dependencies /app/api/api-pastis/pastis/pom.xml /app/api/api-pastis/pastis/pom.xml
WORKDIR /app/api/api-pastis/pastis
RUN chmod +x run.sh
EXPOSE 8015
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS cas-server
MAINTAINER Zakaria NAJI
LABEL name=cas-server
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/api/api-iam/iam-commons/target /app/api/api-iam/iam-commons/target
COPY --from=dependencies /app/api/api-iam/iam-commons/pom.xml /app/api/api-iam/iam-commons/pom.xml
COPY --from=dependencies /app/api/api-iam/iam-external-client/target /app/api/api-iam/iam-external-client/target
COPY --from=dependencies /app/api/api-iam/iam-external-client/pom.xml /app/api/api-iam/iam-external-client/pom.xml
COPY --from=dependencies /app/cas/cas-server/target /app/cas/cas-server/target
COPY --from=dependencies /app/cas/cas-server/run_recette.sh /app/cas/cas-server/run_recette.sh
COPY --from=dependencies /app/cas/cas-server/src/main/config /app/cas/cas-server/src/main/config
COPY --from=dependencies /app/cas/cas-server/pom.xml /app/cas/cas-server/pom.xml
COPY --from=dependencies /app/cas/pom.xml /app/cas/pom.xml
COPY --from=dependencies /app/dev-deployment/environments/keystores/server /app/dev-deployment/environments/keystores/server
WORKDIR /app/cas/cas-server
RUN chmod +x run_recette.sh
EXPOSE 8080
ENTRYPOINT ["/bin/bash", "./run_recette.sh"]

FROM adoptopenjdk/openjdk11 AS ui-portal
MAINTAINER Zakaria NAJI
LABEL name=ui-portal
COPY --from=dependencies /app/api/api-iam/iam-external-client/target /app/api/api-iam/iam-external-client/target
COPY --from=dependencies /app/api/api-iam/iam-external-client/pom.xml /app/api/api-iam/iam-external-client/pom.xml
COPY --from=dependencies /app/ui/ui-frontend/target /app/ui/ui-frontend/target
COPY --from=dependencies /app/ui/ui-frontend/dist /app/ui/ui-frontend/dist
COPY --from=dependencies /app/ui/ui-frontend/pom.xml /app/ui/ui-frontend/pom.xml
COPY --from=dependencies /app/ui/ui-commons/target /app/ui/ui-commons/target
COPY --from=dependencies /app/ui/ui-commons/pom.xml /app/ui/ui-commons/pom.xml
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/api/api-iam/iam-commons/target /app/api/api-iam/iam-commons/target
COPY --from=dependencies /app/api/api-iam/iam-commons/pom.xml /app/api/api-iam/iam-commons/pom.xml
COPY --from=dependencies /app/ui/ui-portal/target /app/ui/ui-portal/target
COPY --from=dependencies /app/ui/ui-portal/run.sh /app/ui/ui-portal/run.sh
COPY --from=dependencies /app/ui/ui-portal/pom.xml /app/ui/ui-portal/pom.xml
WORKDIR /app/ui/ui-portal
RUN chmod +x run.sh
EXPOSE 9000
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS ui-identity
MAINTAINER Zakaria NAJI
LABEL name=ui-identity
COPY --from=dependencies /app/api/api-iam/iam-external-client/target /app/api/api-iam/iam-external-client/target
COPY --from=dependencies /app/api/api-iam/iam-external-client/pom.xml /app/api/api-iam/iam-external-client/pom.xml
COPY --from=dependencies /app/ui/ui-frontend/target /app/ui/ui-frontend/target
COPY --from=dependencies /app/ui/ui-frontend/dist /app/ui/ui-frontend/dist
COPY --from=dependencies /app/ui/ui-frontend/pom.xml /app/ui/ui-frontend/pom.xml
COPY --from=dependencies /app/ui/ui-commons/target /app/ui/ui-commons/target
COPY --from=dependencies /app/ui/ui-commons/pom.xml /app/ui/ui-commons/pom.xml
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/commons/commons-security /app/commons/commons-security
COPY --from=dependencies /app/api/api-iam/iam-commons/target /app/api/api-iam/iam-commons/target
COPY --from=dependencies /app/api/api-iam/iam-commons/pom.xml /app/api/api-iam/iam-commons/pom.xml
COPY --from=dependencies /app/ui/ui-identity/target /app/ui/ui-identity/target
COPY --from=dependencies /app/ui/ui-identity/run.sh /app/ui/ui-identity/run.sh
COPY --from=dependencies /app/ui/ui-identity/pom.xml /app/ui/ui-identity/pom.xml
WORKDIR /app/ui/ui-identity
RUN chmod +x run.sh
EXPOSE 9001
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS ui-referential
MAINTAINER Zakaria NAJI
LABEL name=ui-referential
COPY --from=dependencies /app/api/api-referential/referential-commons/target /app/api/api-referential/referential-commons/target
COPY --from=dependencies /app/api/api-referential/referential-commons/pom.xml /app/api/api-referential/referential-commons/pom.xml
COPY --from=dependencies /app/api/api-referential/referential-external-client/target /app/api/api-referential/referential-external-client/target
COPY --from=dependencies /app/api/api-referential/referential-external-client/pom.xml /app/api/api-referential/referential-external-client/pom.xml
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/ui/ui-commons/target /app/ui/ui-commons/target
COPY --from=dependencies /app/ui/ui-commons/pom.xml /app/ui/ui-commons/pom.xml
COPY --from=dependencies /app/ui/ui-frontend/target /app/ui/ui-frontend/target
COPY --from=dependencies /app/ui/ui-frontend/dist /app/ui/ui-frontend/dist
COPY --from=dependencies /app/ui/ui-frontend/pom.xml /app/ui/ui-frontend/pom.xml
COPY --from=dependencies /app/ui/ui-referential/target /app/ui/ui-referential/target
COPY --from=dependencies /app/ui/ui-referential/run.sh /app/ui/ui-referential/run.sh
COPY --from=dependencies /app/ui/ui-referential/pom.xml /app/ui/ui-referential/pom.xml
WORKDIR /app/ui/ui-referential
RUN chmod +x run.sh
EXPOSE 9002
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS ui-pastis
MAINTAINER Zakaria NAJI
LABEL name=ui-pastis
COPY --from=dependencies /app/api/api-iam/iam-external-client/target /app/api/api-iam/iam-external-client/target
COPY --from=dependencies /app/api/api-iam/iam-external-client/pom.xml /app/api/api-iam/iam-external-client/pom.xml
COPY --from=dependencies /app/api/api-iam/iam-commons/target /app/api/api-iam/iam-commons/target
COPY --from=dependencies /app/api/api-iam/iam-commons/pom.xml /app/api/api-iam/iam-commons/pom.xml
COPY --from=dependencies /app/commons/commons-rest /app/commons/commons-rest
COPY --from=dependencies /app/commons/commons-api /app/commons/commons-api
COPY --from=dependencies /app/ui/ui-commons/target /app/ui/ui-commons/target
COPY --from=dependencies /app/ui/ui-commons/pom.xml /app/ui/ui-commons/pom.xml
COPY --from=dependencies /app/api/api-pastis/pastis-client/target /app/api/api-pastis/pastis-client/target
COPY --from=dependencies /app/api/api-pastis/pastis-client/pom.xml /app/api/api-pastis/pastis-client/pom.xml
COPY --from=dependencies /app/api/api-pastis/pastis-commons/target /app/api/api-pastis/pastis-commons/target
COPY --from=dependencies /app/api/api-pastis/pastis-commons/pom.xml /app/api/api-pastis/pastis-commons/pom.xml
COPY --from=dependencies /app/ui/ui-frontend/target /app/ui/ui-frontend/target
COPY --from=dependencies /app/ui/ui-frontend/dist /app/ui/ui-frontend/dist
COPY --from=dependencies /app/ui/ui-frontend/pom.xml /app/ui/ui-frontend/pom.xml
COPY --from=dependencies /app/ui/ui-pastis/target /app/ui/ui-pastis/target
COPY --from=dependencies /app/ui/ui-pastis/run.sh /app/ui/ui-pastis/run.sh
COPY --from=dependencies /app/ui/ui-pastis/pom.xml /app/ui/ui-pastis/pom.xml
WORKDIR /app/ui/ui-pastis
RUN chmod +x run.sh
EXPOSE 9015
ENTRYPOINT ["/bin/bash", "./run.sh"]

FROM adoptopenjdk/openjdk11 AS pastis-standalone
MAINTAINER Zakaria NAJI
LABEL name=pastis-standalone
COPY --from=dependencies /app/api/api-pastis/pastis-standalone/target /app/api/api-pastis/pastis-standalone/target
COPY --from=dependencies /app/api/api-pastis/pastis-standalone/run.sh /app/api/api-pastis/pastis-standalone/run.sh
COPY --from=dependencies /app/api/api-pastis/pastis-standalone/pom.xml /app/api/api-pastis/pastis-standalone/pom.xml
WORKDIR /app/api/api-pastis/pastis-standalone
RUN chmod +x run.sh
EXPOSE 8096
ENTRYPOINT ["/bin/bash", "./run.sh"]