File tree Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Expand file tree Collapse file tree 3 files changed +32
-4
lines changed Original file line number Diff line number Diff line change 18
18
<parent >
19
19
<groupId >com.arpnetworking.build</groupId >
20
20
<artifactId >arpnetworking-parent-pom</artifactId >
21
- <version >2.0.6 </version >
21
+ <version >2.0.7 </version >
22
22
<relativePath />
23
23
</parent >
24
24
463
463
<env >
464
464
<JAVA_OPTS >${debugJavaOptions} </JAVA_OPTS >
465
465
<KAFKA_SOURCE_BOOTSTRAP_HOST >kafka</KAFKA_SOURCE_BOOTSTRAP_HOST >
466
+ <!-- TODO(ville): Obtain these from the current user! -->
467
+ <!-- Ref: https://github.com/rynr/user-id-maven-plugin -->
468
+ <KDB_UID >1000</KDB_UID >
469
+ <KDB_GID >1000</KDB_GID >
466
470
</env >
467
471
<volumes >
468
472
<bind >
Original file line number Diff line number Diff line change 46
46
<include >mad</include >
47
47
</includes >
48
48
</fileSet >
49
+ <fileSet >
50
+ <directory >${buildDirectory}</directory >
51
+ <outputDirectory >bin</outputDirectory >
52
+ <fileMode >0755</fileMode >
53
+ <includes >
54
+ <include >docker-entrypoint.sh</include >
55
+ </includes >
56
+ </fileSet >
49
57
<fileSet >
50
58
<directory >${buildDirectory}/appassembler/lib</directory >
51
59
<outputDirectory >lib</outputDirectory >
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM openjdk:8u151 -jre-alpine
15
+ FROM openjdk:8u212 -jre-alpine
16
16
17
17
MAINTAINER arpnetworking
18
18
19
19
EXPOSE 7090
20
20
WORKDIR /opt/mad
21
21
22
22
# Configuration
23
+ ENV MAD_USER="mad"
24
+ ENV MAD_UID=1000
25
+ ENV MAD_GID=1000
23
26
ENV JVM_XMS="64m"
24
27
ENV JVM_XMX="1024m"
25
28
ENV LOGBACK_CONFIG="-Dlogback.configurationFile=/opt/mad/config/logback.xml"
26
29
ENV MAD_CONFIG="/opt/mad/config/config.conf"
27
30
ENV JAVA_OPTS=""
28
31
29
32
# Build
30
- RUN mkdir -p /opt/mad/lib/ext && \
33
+ RUN apk add --no-cache su-exec && \
34
+ mkdir -p /opt/mad/lib/ext && \
31
35
mkdir -p /opt/mad/logs && \
32
36
mkdir -p /opt/mad/config/pipelines
33
37
ADD deps /opt/mad/lib/
@@ -36,7 +40,19 @@ ADD config /opt/mad/config/
36
40
ADD lib /opt/mad/lib/
37
41
38
42
# Entry point
39
- ENTRYPOINT [ \
43
+ ENTRYPOINT [ "/opt/mad/bin/docker-entrypoint.sh" ]
44
+
45
+ # Default arguments
46
+ CMD [ \
47
+ "-n" , \
48
+ "${MAD_USER}" , \
49
+ "-u" , \
50
+ "${MAD_UID}" , \
51
+ "-g" , \
52
+ "${MAD_GID}" , \
53
+ "-d" , \
54
+ "/opt/mad" , \
55
+ "--" , \
40
56
"/opt/mad/bin/mad" , \
41
57
"${LOGBACK_CONFIG}" , \
42
58
"-XX:+HeapDumpOnOutOfMemoryError" , \
You can’t perform that action at this time.
0 commit comments