changeset 5:9b74645ce4a4

add setenv file
author smith@nwoca.org
date Sun, 13 Sep 2015 18:14:10 -0400
parents b5534ea9a4cb
children 79c21c74fe03
files tomcat/Dockerfile tomcat/setenv.sh
diffstat 2 files changed, 27 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tomcat/Dockerfile	Sat Sep 12 18:10:12 2015 +0100
+++ b/tomcat/Dockerfile	Sun Sep 13 18:14:10 2015 -0400
@@ -2,4 +2,8 @@
 
 MAINTAINER Dave Smith <smith@nwoca.org>
 
+COPY setenv.sh /usr/local/tomcat/bin/setenv.sh
+
+RUN chmod 755 /usr/local/tomcat/bin/setenv.sh
+
 VOLUME /usr/local/tomcat/logs
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tomcat/setenv.sh	Sun Sep 13 18:14:10 2015 -0400
@@ -0,0 +1,23 @@
+
+echo "_______________________________________________"
+
+export CATALINA_OPTS="$CATALINA_OPTS -Xss256k"
+
+export CATALINA_OPTS="$CATALINA_OPTS -XX:+UseCompressedOops"
+
+export CATALINA_OPTS="$CATALINA_OPTS -Djava.security.egd=file:/dev/./urandom"
+
+echo "Using CATALINA_OPTS:"
+for arg in $CATALINA_OPTS
+do
+    echo ">> " $arg
+done
+echo ""
+
+echo "Using JAVA_OPTS:"
+for arg in $JAVA_OPTS
+do
+    echo ">> " $arg
+done
+echo "_______________________________________________"
+echo ""
\ No newline at end of file