Skip to content

update tomcat memory settings #60

Merged
merged 1 commit into from
Aug 4, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ FROM centos:centos7
### VERSION SETTINGS ###
########################
#
##java
ENV JAVA_VERSION=8u171 \
BUILD_VERSION=b11 \
JAVA_BUNDLE_ID=512cd62ec5174c3487ac17c61aaa89e8 \
##tomcat \
TOMCAT_MAJOR=9 \
ENV TOMCAT_MAJOR=9 \
TOMCAT_VERSION=9.0.10 \
##shib-idp \
VERSION=3.3.3 \
##TIER \
TIERVERSION=180701 \
TIERVERSION=180801 \
################## \
### OTHER VARS ### \
################## \
Expand All @@ -24,7 +20,7 @@ ENV JAVA_VERSION=8u171 \
MAINTAINER=tier \
#java \
JAVA_HOME=/usr \
JAVA_OPTS='-Xmx3000m -XX:MaxPermSize=256m' \
JAVA_OPTS='-Xmx3000m' \
#tomcat \
CATALINA_HOME=/usr/local/tomcat
ENV TOMCAT_TGZ_URL=https://www.apache.org/dist/tomcat/tomcat-$TOMCAT_MAJOR/v$TOMCAT_VERSION/bin/apache-tomcat-$TOMCAT_VERSION.tar.gz \
Expand All @@ -36,7 +32,6 @@ ENV TOMCAT_TGZ_URL=https://www.apache.org/dist/tomcat/tomcat-$TOMCAT_MAJOR/v$TOM
ENV ENV=dev \
USERTOKEN=nothing


#set labels
LABEL Vendor="Internet2" \
ImageType="Shibboleth IDP Release" \
Expand Down Expand Up @@ -83,7 +78,12 @@ RUN curl -o /tmp/ZuluJCEPolicies.zip https://cdn.azul.com/zcek/bin/ZuluJCEPolici
&& unzip -oj ZuluJCEPolicies.zip ZuluJCEPolicies/US_export_policy.jar -d $JAVA_HOME/lib/jvm/zulu-8/jre/lib/security/ \
&& rm -rf /tmp/ZuluJCEPolicies.zip

# To use Oracle java/JCE

# To use Oracle java/JCE:
#
#ENV JAVA_VERSION=8u171 \
# BUILD_VERSION=b11 \
# JAVA_BUNDLE_ID=512cd62ec5174c3487ac17c61aaa89e8 \
#
# Uncomment the following commands to download the Oracle JDK to your Shibboleth IDP image.
# ==> By uncommenting these next 6 lines, you agree to the Oracle Binary Code License Agreement for Java SE (http://www.oracle.com/technetwork/java/javase/terms/license/index.html)
Expand Down
3 changes: 2 additions & 1 deletion container_files/tomcat/setenv.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CLASSPATH=/usr/local/tomcat/bin/*
JAVA_OPTS="-Dlog4j.configurationFile=/usr/local/tomcat/conf/log4j2.xml -DENV=$ENV -DUSERTOKEN=$USERTOKEN"
JAVA_OPTS="$JAVA_OPTS -Dlog4j.configurationFile=/usr/local/tomcat/conf/log4j2.xml -DENV=$ENV -DUSERTOKEN=$USERTOKEN"
LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager
CATALINA_OPTS='-XX:+UseG1GC -Xmx3000m'