forked from fabric8-launcher/launcher-application
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.deploy.rhel
41 lines (34 loc) · 1.48 KB
/
Dockerfile.deploy.rhel
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
FROM quay.io/openshiftio/rhel-base-jboss-jdk-8:latest
LABEL maintainer "Devtools <[email protected]>"
LABEL author "Devtools <[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 {} + &&\
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"]