-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
157 lines (119 loc) · 5.37 KB
/
Dockerfile
File metadata and controls
157 lines (119 loc) · 5.37 KB
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
# syntax=docker/dockerfile:1
################################################################
# #
# WARNING: THIS FILE IS AUTO-GENERATED. DO NOT EDIT MANUALLY #
# #
################################################################
ARG CREATED_AT
FROM alpine:3.21.3 AS downloader
WORKDIR /opt
# Download Open Integration Engine release
RUN apk add --no-cache curl \
&& curl -L \
-o /opt/engine.tar.gz \
-H "Accept: application/vnd.github+json" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://github.com/OpenIntegrationEngine/engine/releases/download/v4.5.2-tp.1/oie_unix_4_5_2.tar.gz \
&& tar xzf engine.tar.gz \
&& mv /opt/oie /opt/engine \
&& mkdir -p /opt/engine/appdata
WORKDIR /opt/engine
COPY --chmod=755 entrypoint.sh /opt/engine/entrypoint.sh
RUN rm -rf cli-lib manager-lib \
&& rm mirth-cli-launcher.jar oiecommand
FROM eclipse-temurin:17.0.15_6-jre-noble AS ubuntu-jre
ARG CREATED_AT
LABEL \
"org.opencontainers.image.authors"="The Open Integration Engine Project and contributors" \
"org.opencontainers.image.created"="${CREATED_AT?:}" \
"org.opencontainers.image.description"="An open source fork of the now closed-source Mirth Connect" \
"org.opencontainers.image.licenses"="MPL-2.0" \
"org.opencontainers.image.source"="https://github.com/OpenIntegrationEngine/engine-docker" \
"org.opencontainers.image.title"="Open Integration Engine" \
"org.opencontainers.image.url"="https://github.com/OpenIntegrationEngine/engine" \
"org.opencontainers.image.vendor"="The Open Integration Engine Project" \
"org.opencontainers.image.version"="4.5.2-tp.1"
COPY --from=downloader --chown=1000:1000 /opt/engine /opt/engine
RUN apt-get update \
&& apt-get install -y unzip \
&& rm -rf /var/lib/apt/lists/* \
&& groupmod --new-name engine ubuntu \
&& usermod -l engine ubuntu \
&& usermod -aG engine engine
VOLUME /opt/engine/appdata
VOLUME /opt/engine/custom-extensions
WORKDIR /opt/engine
EXPOSE 8443
USER engine
ENTRYPOINT ["./entrypoint.sh"]
CMD ["./oieserver"]
FROM eclipse-temurin:17.0.15_6-jdk-noble AS ubuntu-jdk
ARG CREATED_AT
LABEL \
"org.opencontainers.image.authors"="The Open Integration Engine Project and contributors" \
"org.opencontainers.image.created"="${CREATED_AT?:}" \
"org.opencontainers.image.description"="An open source fork of the now closed-source Mirth Connect" \
"org.opencontainers.image.licenses"="MPL-2.0" \
"org.opencontainers.image.source"="https://github.com/OpenIntegrationEngine/engine-docker" \
"org.opencontainers.image.title"="Open Integration Engine" \
"org.opencontainers.image.url"="https://github.com/OpenIntegrationEngine/engine" \
"org.opencontainers.image.vendor"="The Open Integration Engine Project" \
"org.opencontainers.image.version"="4.5.2-tp.1"
COPY --from=downloader --chown=1000:1000 /opt/engine /opt/engine
RUN apt-get update \
&& apt-get install -y unzip \
&& rm -rf /var/lib/apt/lists/* \
&& groupmod --new-name engine ubuntu \
&& usermod -l engine ubuntu \
&& usermod -aG engine engine
VOLUME /opt/engine/appdata
VOLUME /opt/engine/custom-extensions
WORKDIR /opt/engine
EXPOSE 8443
USER engine
ENTRYPOINT ["./entrypoint.sh"]
CMD ["./oieserver"]
FROM eclipse-temurin:17.0.15_6-jre-alpine AS alpine-jre
ARG CREATED_AT
LABEL \
"org.opencontainers.image.authors"="The Open Integration Engine Project and contributors" \
"org.opencontainers.image.created"="${CREATED_AT?:}" \
"org.opencontainers.image.description"="An open source fork of the now closed-source Mirth Connect" \
"org.opencontainers.image.licenses"="MPL-2.0" \
"org.opencontainers.image.source"="https://github.com/OpenIntegrationEngine/engine-docker" \
"org.opencontainers.image.title"="Open Integration Engine" \
"org.opencontainers.image.url"="https://github.com/OpenIntegrationEngine/engine" \
"org.opencontainers.image.vendor"="The Open Integration Engine Project" \
"org.opencontainers.image.version"="4.5.2-tp.1"
COPY --from=downloader --chown=1000:1000 /opt/engine /opt/engine
RUN apk add --no-cache bash unzip \
&& adduser -D -H -u 1000 engine engine
VOLUME /opt/engine/appdata
VOLUME /opt/engine/custom-extensions
WORKDIR /opt/engine
EXPOSE 8443
USER engine
ENTRYPOINT ["./entrypoint.sh"]
CMD ["./oieserver"]
FROM eclipse-temurin:17.0.15_6-jdk-alpine AS alpine-jdk
ARG CREATED_AT
LABEL \
"org.opencontainers.image.authors"="The Open Integration Engine Project and contributors" \
"org.opencontainers.image.created"="${CREATED_AT?:}" \
"org.opencontainers.image.description"="An open source fork of the now closed-source Mirth Connect" \
"org.opencontainers.image.licenses"="MPL-2.0" \
"org.opencontainers.image.source"="https://github.com/OpenIntegrationEngine/engine-docker" \
"org.opencontainers.image.title"="Open Integration Engine" \
"org.opencontainers.image.url"="https://github.com/OpenIntegrationEngine/engine" \
"org.opencontainers.image.vendor"="The Open Integration Engine Project" \
"org.opencontainers.image.version"="4.5.2-tp.1"
COPY --from=downloader --chown=1000:1000 /opt/engine /opt/engine
RUN apk add --no-cache bash unzip \
&& adduser -D -H -u 1000 engine engine
VOLUME /opt/engine/appdata
VOLUME /opt/engine/custom-extensions
WORKDIR /opt/engine
EXPOSE 8443
USER engine
ENTRYPOINT ["./entrypoint.sh"]
CMD ["./oieserver"]