From 05228aa72c3cbe33e6495bc5f419fc08cefa8579 Mon Sep 17 00:00:00 2001 From: Yoan Blanc Date: Thu, 6 Feb 2020 12:43:20 +0100 Subject: [PATCH] fixup! fixup! jvm: set a var for XX:ReservedCodeCacheSize Signed-off-by: Yoan Blanc --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 679fa36..6a07542 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,7 +44,7 @@ RUN groupadd --gid ${RUN_GID} ${RUN_GROUP} \ && chown -R ${RUN_USER}:${RUN_GROUP} ${CONFLUENCE_HOME} \ \ && sed -i -e 's/-Xms\([0-9]\+[kmg]\) -Xmx\([0-9]\+[kmg]\)/-Xms\${JVM_MINIMUM_MEMORY:=\1} -Xmx\${JVM_MAXIMUM_MEMORY:=\2} \${JVM_SUPPORT_RECOMMENDED_ARGS} -Dconfluence.home=\${CONFLUENCE_HOME}/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh \ - && sed -i -e 's/\(-XX:ReservedCodeCacheSize=\)\([0-9]\+[kmg]\)/\1${JVM_RESERVED_CODE_CACHE_SIZE:=\2}/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh + && sed -i -e 's/-XX:ReservedCodeCacheSize=\([0-9]\+[kmg]\)/-XX:ReservedCodeCacheSize=${JVM_RESERVED_CODE_CACHE_SIZE:=\1}/g' ${CONFLUENCE_INSTALL_DIR}/bin/setenv.sh VOLUME ["${CONFLUENCE_HOME}"] # Must be declared after setting perms