12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM openjdk:8u131 -jre-alpine
15
+ FROM openjdk:8u151 -jre-alpine
16
16
17
17
MAINTAINER arpnetworking
18
18
@@ -24,9 +24,8 @@ WORKDIR /opt/cluster-aggregator
24
24
ENV JVM_XMS="64m"
25
25
ENV JVM_XMX="1024m"
26
26
ENV LOGBACK_CONFIG="-Dlogback.configurationFile=/opt/cluster-aggregator/config/logback.xml"
27
- ENV APP_PARAMS="/opt/cluster-aggregator/config/config.conf"
28
- ENV ADDITIONAL_APP_PARAMS=""
29
- ENV ADDITIONAL_JAVA_OPTS=""
27
+ ENV CAGG_CONFIG="/opt/cluster-aggregator/config/config.conf"
28
+ ENV JAVA_OPTS=""
30
29
31
30
# Build
32
31
RUN apk -U add libstdc++ && \
@@ -39,19 +38,21 @@ ADD config /opt/cluster-aggregator/config/
39
38
ADD lib /opt/cluster-aggregator/lib/
40
39
41
40
# Entry point
42
- CMD JAVA_OPTS="${LOGBACK_CONFIG} \
43
- -XX:+HeapDumpOnOutOfMemoryError \
44
- -XX:HeapDumpPath=/opt/cluster-aggregator/logs/cluster-aggregator.oom.hprof \
45
- -XX:+PrintGCDetails \
46
- -XX:+PrintGCDateStamps \
47
- -Xloggc:logs/cluster-aggregator.gc.log \
48
- -XX:NumberOfGCLogFiles=2 \
49
- -XX:GCLogFileSize=50M \
50
- -XX:+UseGCLogFileRotation \
51
- -Xms${JVM_XMS} \
52
- -Xmx${JVM_XMX} \
53
- -XX:+UseStringDeduplication \
54
- -XX:+UseG1GC \
55
- -Duser.timezone=UTC \
56
- ${ADDITIONAL_JAVA_OPTS}" \
57
- /opt/cluster-aggregator/bin/cluster-aggregator ${APP_PARAMS} ${ADDITIONAL_APP_PARAMS}
41
+ ENTRYPOINT [ \
42
+ "/opt/cluster-aggregator/bin/cluster-aggregator" , \
43
+ "${LOGBACK_CONFIG}" , \
44
+ "-XX:+HeapDumpOnOutOfMemoryError" , \
45
+ "-XX:HeapDumpPath=/opt/cluster-aggregator/logs/cluster-aggregator.oom.hprof" , \
46
+ "-XX:+PrintGCDetails" , \
47
+ "-XX:+PrintGCDateStamps" , \
48
+ "-Xloggc:/opt/cluster-aggregator/logs/cluster-aggregator.gc.log" , \
49
+ "-XX:NumberOfGCLogFiles=2" , \
50
+ "-XX:GCLogFileSize=50M" , \
51
+ "-XX:+UseGCLogFileRotation" , \
52
+ "-Xms${JVM_XMS}" , \
53
+ "-Xmx${JVM_XMX}" , \
54
+ "-XX:+UseStringDeduplication" , \
55
+ "-XX:+UseG1GC" , \
56
+ "-Duser.timezone=UTC" , \
57
+ "--" , \
58
+ "${CAGG_CONFIG}" ]
0 commit comments