forked from fabric8-launcher/launcher-application
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.deploy
43 lines (36 loc) · 1.5 KB
/
Dockerfile.deploy
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
FROM registry.centos.org/jboss/base-jdk:8
MAINTAINER Vasek Pavlin <[email protected]>
EXPOSE 8080
EXPOSE 8443
ENV LANG=en_US.UTF-8
USER root
RUN chgrp -R 0 /opt/jboss &&\
chmod -R g+rw /opt/jboss &&\
find /opt/jboss -type d -exec chmod g+x {} + &&\
yum -y -q install git &&\
yum clean all &&\
rm -rf /var/cache/yum &&\
git config --system user.name redhat-developers-launcher &&\
git config --system user.email [email protected]
USER jboss
COPY target/launcher-runner.jar ./
COPY target/lib/ ./lib/
CMD ["sh", "-c", "java -Djava.net.preferIPv4Stack=true \
-XX:+UnlockExperimentalVMOptions \
-XX:+UseCGroupMemoryLimitForHeap \
-XX:MaxRAMFraction=1 \
-XX:MetaspaceSize=96M \
-XX:MaxMetaspaceSize=512m \
-XX:AdaptiveSizePolicyWeight=90 \
-XX:+ExitOnOutOfMemoryError \
-XX:+HeapDumpOnOutOfMemoryError \
-XX:+UseParallelGC \
-XX:MinHeapFreeRatio=20 \
-XX:MaxHeapFreeRatio=40 \
-XX:CICompilerCount=2 \
-XX:ParallelGCThreads=1 \
-XX:ConcGCThreads=1 \
-XX:GCTimeRatio=4 \
-XshowSettings:vm \
$JAVA_OPTS \
-jar launcher-runner.jar"]