Skip to content

Commit 5a419fb

Browse files
committed
Add additional config and bin folders with tomcat config files
Add OS_VERSION is set to OS PRETTY_NAME as value Update openjdk8 to 1.8.0_252 Update openjdk11 to 11.0.8+11-alpine-r0 set JRE_HOME to /usr/lib/jvm/default-jvm/jre on both images Update tomcat to 9.0.37 Update Alpine to latest v3.12
1 parent 637bc28 commit 5a419fb

File tree

8 files changed

+5066
-46
lines changed

8 files changed

+5066
-46
lines changed

.dockerignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
jre-11.0.6
2-
.mvn
3-
src
4-
target
2+
.mvn

Dockerfile-tomcat-jre

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# docker build -t prasad1210/tomcat-custom:9.0.35.1-alpine-11.0.7 . -f Dockerfile-tomcat-jre --no-cache
1+
# docker build -t prasad1210/tomcat-custom:9.0.37.0-alpine-jre-11.0.8 . -f Dockerfile-tomcat-jre --no-cache
22
FROM alpine:latest AS stage-0
3+
# Prefer openjdk11 over openjdk11-jre for jlink and we can use it remove more default modules and reduce image size
34
RUN set -eux;\
4-
apk --no-cache --virtual add openjdk11
5-
#--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
5+
apk --no-cache --virtual add openjdk11 \
6+
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
67
WORKDIR /usr/lib/jvm/default-jvm/jre/bin/
78
RUN set -eux;\
89
./jlink --output jre --compress=2 --no-header-files --no-man-pages --module-path ../jmods --add-modules java.management,java.management.rmi,java.naming,java.net.http,java.prefs,java.rmi,java.scripting,java.se,java.security.jgss,java.security.sasl,java.smartcardio,java.sql,java.sql.rowset,java.transaction.xa,java.xml,java.xml.crypto
910

10-
11-
1211
FROM alpine:latest
13-
14-
MAINTAINER Prasad CH<[email protected]>
12+
MAINTAINER "Prasad CH <[email protected]>"
13+
ENV OS_RELEASE="Alpine Linux v3.12"
1514

1615
# Installed main dependencies:
1716
# ca-certificates-cacert-20191127-r1 x86_64: for certificate management to support SSL
18-
# openjdk11-jre-11.0.5_p10-r0: OpenJDK built by Timo Teras <[email protected]> from https://icedtea.classpath.org/
17+
# openjdk11: OpenJDK built by Simon Frankenberger <[email protected]> from https://hg.openjdk.java.net/jdk-updates/jdk11u
18+
# https://git.alpinelinux.org/aports/commit/?id=b039d1012b3676731ed179778f2732f7beebd611
1919
# fontconfig-2.13.1-r2 x86_64 : For supporting UI/ Fonts for reporting purposes
2020
# freetype-2.10.1-r0 x86_64: To support freetype fonts
21-
# Tomcat: Run a Java Container
21+
# Tomcat: Java Runtime Container
2222

2323
# https://adoptopenjdk.net/installation.html#x64_linux-jre
24-
RUN mkdir -p /usr/lib/jvm
25-
COPY --from=stage-0 /usr/lib/jvm/default-jvm/jre/bin/jre /usr/lib/jvm/default-jre
26-
ENV PATH=/usr/lib/jvm/default-jre/bin:$PATH
27-
ENV JAVA_HOME=/usr/lib/jvm/default-jre/
28-
ENV JAVA_VERSION=11.0.7+11-alpine-r1
24+
# Set JRE_HOME not JAVA_HOME as we don't intend to run tomcat in debug mode
25+
ENV JRE_HOME=/usr/lib/jvm/default-jvm/jre
26+
COPY --from=stage-0 /usr/lib/jvm/default-jvm/jre/bin/jre ${JRE_HOME}
27+
ENV PATH=${JRE_HOME}/bin:$PATH
28+
ENV JAVA_VERSION=11.0.8+11-alpine-r0
2929

3030
RUN set -eux;\
3131
apk update \
@@ -67,18 +67,18 @@ ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOMCAT_NATIVE_LIBDIR
6767
ENV GPG_KEYS 05AB33110949707C93A279E3D3EFE6B686867BA6 07E48665A34DCAFAE522E5E6266191C37C037D42 47309207D818FFD8DCD3F83F1931D684307A10A5 541FBE7D8F78B25E055DDEE13C370389288584E7 61B832AC2F1C5A90F0F9B00A1C506407564C17A3 79F7026C690BAA50B92CD8B66A3AD3F4F22C4FED 9BA44C2621385CB966EBA586F72C284D731FABEE A27677289986DB50844682F8ACB77FC2E86E29AC A9C5DF4D22E99998D9875A5110C01C5A2F6059E7 DCFD35E0BF8CA7344752DE8B6FB21E8933C60243 F3A04C595DB5B6A5F1ECA43E3B7BBB100D811BBE F7DA48BB64BCB84ECBA7EE6935CD23C10D498E23
6868

6969
ENV TOMCAT_MAJOR 9
70-
ENV TOMCAT_VERSION 9.0.35
71-
ENV TOMCAT_DOWNLOAD_URL https://downloads.apache.org/tomcat/tomcat-9/v9.0.35/bin/apache-tomcat-9.0.35.tar.gz
72-
ENV TOMCAT_SHA512 0db27185d9fc3174f2c670f814df3dda8a008b89d1a38a5d96cbbe119767ebfb1cf0bce956b27954aee9be19c4a7b91f2579d967932207976322033a86075f98
70+
ENV TOMCAT_VERSION 9.0.37
71+
ENV TOMCAT_DOWNLOAD_URL https://downloads.apache.org/tomcat/tomcat-9/v9.0.37/bin/apache-tomcat-9.0.37.tar.gz
72+
ENV TOMCAT_SHA512 077c3e69553b9388b5cdf46b6d204e895d69629a4ec8dd8cf13eb2ee97a04f50e70478fee4f2f91e8809b85bdcd3656188b00d17165c86cf6113ded18729ba06
7373

7474
# Install Tomcat
7575
RUN set -eux;\
76-
wget "$TOMCAT_DOWNLOAD_URL"\
77-
&& echo "$TOMCAT_SHA512 *apache-tomcat-9.0.35.tar.gz" | sha512sum -c -\
76+
wget "$TOMCAT_DOWNLOAD_URL" -O apache-tomcat.tar.gz\
77+
&& echo "$TOMCAT_SHA512 *apache-tomcat.tar.gz" | sha512sum -c -\
7878
&& mkdir -p /usr/local/tomcat\
79-
&& tar -xf apache-tomcat-9.0.35.tar.gz --strip-components=1\
79+
&& tar -xf apache-tomcat.tar.gz --strip-components=1\
8080
&& rm bin/*.bat\
81-
&& rm apache-tomcat-9.0.35.tar.gz*\
81+
&& rm apache-tomcat.tar.gz*\
8282
&& rm -rf webapps\
8383
&& mkdir webapps\
8484
&& find ./bin/ -name '*.sh' -exec sed -ri 's|^#!/bin/sh$|#!/usr/bin/env sh|' '{}' + \
@@ -90,13 +90,15 @@ RUN mkdir -p ${CATALINA_HOME}/conf/ ${CATALINA_HOME}/logs/ ${CATALINA_HOME}/conf
9090

9191
# Copy Custom init scripts if required
9292
# COPY bin/setenv.sh ${CATALINA_HOME}/bin/setenv.sh
93-
# RUN chmod 750 ${CATALINA_HOME}/bin/setenv.sh
9493

9594
# Remove default Tomcat installation files
9695
RUN rm -rf ${CATALINA_HOME}/webapps/*
96+
# COPY conf/context.xml $CATALINA_HOME/conf/context.xml
97+
# COPY conf/server.xml $CATALINA_HOME/conf/server.xml
98+
# COPY conf/web.xml $CATALINA_HOME/conf/web.xml
99+
# COPY conf/logging.properties $CATALINA_HOME/conf/logging.properties
97100
# Copy any additional organisational default files to override tomcat default config files
98101

99-
100102
# User Management
101103
# Add custom group tomcat with 61000 as a groupid to avoid conflicts with any existing groups
102104
RUN addgroup -g 61000 tomcat
@@ -122,9 +124,13 @@ RUN set -eux;\
122124
&& chmod -R g+s /usr/local/tomcat/webapps\
123125
&& chmod -R g+s /usr/local/tomcat/work
124126

127+
# Set Execute permissions on init script
128+
# RUN chown tomcat:tomcat ${CATALINA_HOME}/bin/setenv.sh
129+
# RUN chmod 750 ${CATALINA_HOME}/bin/setenv.sh
130+
125131
# Set user as tocmat by uid to be compatible with kubernetes psp
126132
USER 61000
127133

128134
EXPOSE 8080
129135

130-
CMD ["catalina.sh", "run"]
136+
CMD [ "catalina.sh", "run" ]

Dockerfile-tomcat-jre-8

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
1-
# docker build -t prasad1210/tomcat-custom:9.0.35.1-alpine-jre-1.8.0-242-b08 . -f Dockerfile-tomcat-jre-8 --no-cache
1+
# docker build -t prasad1210/tomcat-custom:9.0.37.0-alpine-jre-1.8.0-242-b08 . -f Dockerfile-tomcat-jre-8 --no-cache
22
FROM alpine:latest
3-
4-
MAINTAINER Prasad CH<[email protected]>
3+
MAINTAINER "Prasad CH <[email protected]>"
4+
ENV OS_RELEASE="Alpine Linux v3.12"
55

66
# Installed main dependencies:
77
# ca-certificates-cacert-20191127-r1 x86_64: for certificate management to support SSL
8-
# openjdk8-jre-8.242.08-r2: OpenJDK built by Simon Frankenberger <[email protected]> from https://hg.openjdk.java.net/jdk-updates/jdk11u
8+
# openjdk8-jre: OpenJDK built by Timo Teräs <[email protected]> from https://icedtea.classpath.org/
9+
# https://git.alpinelinux.org/aports/commit/?id=77cd8637f03e06b9bd744c787f23db02b2f476f7
910
# fontconfig-2.13.1-r2 x86_64 : For supporting UI/ Fonts for reporting purposes
1011
# freetype-2.10.1-r0 x86_64: To support freetype fonts
11-
# Tomcat: Run a Java Container
12+
# Tomcat: Java Runtime Container
1213

1314
# https://adoptopenjdk.net/installation.html#x64_linux-jre
14-
RUN mkdir -p /usr/lib/jvm/jre/bin
15+
# Set JRE_HOME not JAVA_HOME as we don't intend to run tomcat in debug mode
16+
ENV JRE_HOME=/usr/lib/jvm/default-jvm/jre
1517
RUN apk --no-cache --virtual add openjdk8-jre --repository=http://dl-cdn.alpinelinux.org/alpine/edge/community
16-
ENV PATH=/usr/lib/jvm/default-jre/bin:$PATH
17-
ENV JAVA_HOME=/usr/lib/jvm/default-jre/
18-
ENV JAVA_VERSION=11.0.7+11-alpine-r1
18+
ENV PATH=${JRE_HOME}/bin:$PATH
19+
ENV JAVA_VERSION=1.8.0_252
1920

2021
RUN set -eux;\
2122
apk update \
@@ -57,18 +58,18 @@ ENV LD_LIBRARY_PATH ${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}$TOMCAT_NATIVE_LIBDIR
5758
ENV GPG_KEYS 05AB33110949707C93A279E3D3EFE6B686867BA6 07E48665A34DCAFAE522E5E6266191C37C037D42 47309207D818FFD8DCD3F83F1931D684307A10A5 541FBE7D8F78B25E055DDEE13C370389288584E7 61B832AC2F1C5A90F0F9B00A1C506407564C17A3 79F7026C690BAA50B92CD8B66A3AD3F4F22C4FED 9BA44C2621385CB966EBA586F72C284D731FABEE A27677289986DB50844682F8ACB77FC2E86E29AC A9C5DF4D22E99998D9875A5110C01C5A2F6059E7 DCFD35E0BF8CA7344752DE8B6FB21E8933C60243 F3A04C595DB5B6A5F1ECA43E3B7BBB100D811BBE F7DA48BB64BCB84ECBA7EE6935CD23C10D498E23
5859

5960
ENV TOMCAT_MAJOR 9
60-
ENV TOMCAT_VERSION 9.0.35
61-
ENV TOMCAT_DOWNLOAD_URL https://downloads.apache.org/tomcat/tomcat-9/v9.0.35/bin/apache-tomcat-9.0.35.tar.gz
62-
ENV TOMCAT_SHA512 0db27185d9fc3174f2c670f814df3dda8a008b89d1a38a5d96cbbe119767ebfb1cf0bce956b27954aee9be19c4a7b91f2579d967932207976322033a86075f98
61+
ENV TOMCAT_VERSION 9.0.37
62+
ENV TOMCAT_DOWNLOAD_URL https://downloads.apache.org/tomcat/tomcat-9/v9.0.37/bin/apache-tomcat-9.0.37.tar.gz
63+
ENV TOMCAT_SHA512 077c3e69553b9388b5cdf46b6d204e895d69629a4ec8dd8cf13eb2ee97a04f50e70478fee4f2f91e8809b85bdcd3656188b00d17165c86cf6113ded18729ba06
6364

6465
# Install Tomcat
6566
RUN set -eux;\
66-
wget "$TOMCAT_DOWNLOAD_URL"\
67-
&& echo "$TOMCAT_SHA512 *apache-tomcat-9.0.35.tar.gz" | sha512sum -c -\
67+
wget "$TOMCAT_DOWNLOAD_URL" -O apache-tomcat.tar.gz\
68+
&& echo "$TOMCAT_SHA512 *apache-tomcat.tar.gz" | sha512sum -c -\
6869
&& mkdir -p /usr/local/tomcat\
69-
&& tar -xf apache-tomcat-9.0.35.tar.gz --strip-components=1\
70+
&& tar -xf apache-tomcat.tar.gz --strip-components=1\
7071
&& rm bin/*.bat\
71-
&& rm apache-tomcat-9.0.35.tar.gz*\
72+
&& rm apache-tomcat.tar.gz*\
7273
&& rm -rf webapps\
7374
&& mkdir webapps\
7475
&& find ./bin/ -name '*.sh' -exec sed -ri 's|^#!/bin/sh$|#!/usr/bin/env sh|' '{}' + \
@@ -80,13 +81,15 @@ RUN mkdir -p ${CATALINA_HOME}/conf/ ${CATALINA_HOME}/logs/ ${CATALINA_HOME}/conf
8081

8182
# Copy Custom init scripts if required
8283
# COPY bin/setenv.sh ${CATALINA_HOME}/bin/setenv.sh
83-
# RUN chmod 750 ${CATALINA_HOME}/bin/setenv.sh
8484

8585
# Remove default Tomcat installation files
8686
RUN rm -rf ${CATALINA_HOME}/webapps/*
87+
# COPY conf/context.xml $CATALINA_HOME/conf/context.xml
88+
# COPY conf/server.xml $CATALINA_HOME/conf/server.xml
89+
# COPY conf/web.xml $CATALINA_HOME/conf/web.xml
90+
# COPY conf/logging.properties $CATALINA_HOME/conf/logging.properties
8791
# Copy any additional organisational default files to override tomcat default config files
8892

89-
9093
# User Management
9194
# Add custom group tomcat with 61000 as a groupid to avoid conflicts with any existing groups
9295
RUN addgroup -g 61000 tomcat
@@ -112,9 +115,13 @@ RUN set -eux;\
112115
&& chmod -R g+s /usr/local/tomcat/webapps\
113116
&& chmod -R g+s /usr/local/tomcat/work
114117

118+
# Set Execute permissions on init script
119+
# RUN chown tomcat:tomcat ${CATALINA_HOME}/bin/setenv.sh
120+
# RUN chmod 750 ${CATALINA_HOME}/bin/setenv.sh
121+
115122
# Set user as tocmat by uid to be compatible with kubernetes psp
116123
USER 61000
117124

118125
EXPOSE 8080
119126

120-
CMD ["catalina.sh", "run"]
127+
CMD [ "catalina.sh", "run" ]

bin/setenv.sh

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,137 @@
1+
#!/usr/bin/env bash
2+
echo "Setting parameters from $CATALINA_BASE/bin/setenv.sh"
3+
echo "_____________________________________________________"
4+
5+
# Default Ports
6+
export HTTP_PORT=8080
7+
export HTTPS_PORT=5443
8+
export AJP_PORT=3009
9+
# Disable shutdown port
10+
export SHUTDOWN_PORT=-1
11+
12+
13+
# The hotspot server JVM has specific code-path optimizations
14+
# Which yield an approximate 102 gain over the client version.
15+
16+
export CATALINA_OPTS="$CATALINA_OPTS -server"
17+
18+
19+
# discourage address map swapping by setting Xms and Mmx to the same value
20+
# http: //confluence.atlassian. com/display/DOC/Garbage+Collector+PerformancetIssues
21+
# export CATALINA_OPTS="$CATALINA_OPTS -Xms512m -Xmx512m"
22+
23+
# Java 10 introduced +UseContainerSupport (enabled by default) which makes the JVM use sane defaults in a container environment.
24+
# This feature is backported to Java 8 since 8u191. -XX:1UseContainerSupport allows the JVM to read cgroup limits like
25+
# available CPUs and RAM from the host machine and configure itself accordingly. Doing so allows the JVM to die with
26+
# an OutOfMemoryError instead of the container being killed. The flag is available on Java 8u191+, 10 and newer.
27+
# The old (and somewhat broken) flags -XX:{Min|Max}RAMFraction are now deprecated.
28+
# There is a new flag -MN:MaxRAMPercentage, that takes a value between 0.0 and 100.0 and defaults to 25.0.
29+
30+
# With reasonable RAM limits (> 1 GB) we default to -XX:MaxRAMPercentage=80.0. This leaves enough free RAM for
31+
# other processes like a debug shell and doesn't waste too many resources.
32+
33+
export JAVA_OPTS="-XX:+UseContainerSupport -XX:MaxRAMPercentage=80.0 $JAVA_OPTS"
34+
35+
# Increase maximum perm size for web base applications to 4x the default amount
36+
# http: //wiki.apache.org/tomcat/FAQ/Memory
37+
# Removed in Tomcat 8
38+
# export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=256m"
39+
40+
# Oracle Java as default, uses the serial garbage collector on the
41+
# Full Tenured heap. The Young space is collected in parallel, but the
42+
# Tenured is not. This means that at a time of load if a full collection
43+
# event occurs, since the event is a 'stop-the-world' serial event then
44+
# all application threads other than the garbage collector thread are
45+
# taken off the CPU. This can have severe consequences if requests continue
46+
# to accrue during these 'outage' periods. (specifically webservices, webapps}
47+
# [Also enables adaptive sizing automatically]
48+
export CATALINA_OPTS="$CATALINA_OPTS -XX: +UseParallelGc"
49+
50+
# This is interpreted as a hint to the garbage collector that pause times
51+
# of <nnn> milliseconds or less are desired. The garbage collector will
52+
# adjust the Java heap size and other garbage collection related parameters
53+
# in an attempt to keep garbage collection pauses shorter than <nnn> milliseconds.
54+
# http://java.sun.com/docs/hotspot/gc5.0/ergo5.html
55+
56+
export CATALINA_OPTS="$CATALINA_OPTS -XX: MaxGCPauseMillis=1500"
57+
58+
# Verbose GC
59+
export CATALINA_OPTS="$CATALINA_OPTS -verbose:gc"
60+
#export CATALINA_OPTS="$CATALINA_OPTS -Xloggc:$CATALINA_BASE/logs/gc.log"
61+
export CATALINA_OPTS="$CATALINA_OPTS -XX:+PrintGcDetails"
62+
#export CATALINA_OPTS="$CATALINA_OPTS -XX:+PrintGCDateStamps"
63+
#export CATALINA_OPTS="$CATALINA_OPTS -XX:+PrintGCApplicationStoppedTime"
64+
65+
# Disable remote (distributed) garbage collection by Java clients
66+
# and remove ability for applications to call explicit GC collection
67+
export CATALINA_OPTS="$CATALINA_OPTS -XX:+DisableExplicitGC"
68+
69+
# Prefer IPv4 over IPv6 stack
70+
export CATALINA_OPTS="$CATALINA_OPTS -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Address=true"
71+
72+
# Set Java Server TimeZone to UIC
73+
export CATALINA_OPTS="$CATALINA_OPTS -Duser.timezone=${USER_TIMEZONE:-UTC}"
74+
75+
# IP ADDRESS OF CURRENT MACHINE
76+
if hash ip 2>&-
77+
then
78+
IP=`ip addr show | grep 'global eth[0-9]' | grep -o 'inet [0-9]\+.[0-9]\+.[0-9]\+.[0-9]\+' | grep -o '[0-9]\+.[0-9] \+.[0-9] \+.[0-9]\+'`
79+
else
80+
IP=`ifconfig | grep 'inet [0-9]\+.[0-9]\+.[0-9]\+.[0-9]\+.*broadcast' | grep -o 'inet [0-9]\+.[0-9]\+. [0-9] \+.[0-9]\+' | grep -o '[0-9]\+.[0-9]\+.[0-9\+.[0-9]\+'`
81+
fi
82+
83+
# Check for application specific parameters at startup
84+
if [ -r "$CATALINA_BASE/bin/appenv.sh" ]; then
85+
. "$CATALINA_BASE/bin/appenv.sh"
86+
fi
87+
88+
# Specifying JMX settings
89+
if [ -z $JME_PORT ]; then
90+
echo "JMX Port not specified. JMX interface disabled.\n"
91+
else
92+
echo "JMM interface is enabled on port $JMX_PORT\n"
93+
# Consider adding -Djava.rmi.server.hostname=<host ip>
94+
export CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \
95+
-Dcom.sun.management .jmxremote.port=$JMX_PORT \
96+
-Dcom.sun.management.jmxremote.ssl=false \
97+
-Dcom. sun. management. jmxremote.authenticate-false \
98+
-Djava.rmi.server.hostname=$IP"
99+
fi
100+
101+
# Export ports
102+
export CATALINA_OPTS="$CATALINA_OPTS -Dport.http=$HTTP_PORT"
103+
export CATALINA_OPTS="$CATALINA_OPTS -Dport.shutdown=$SHUTDOWN PORT"
104+
export CATALINA_OPTS="$CATALINA_OPTS -Dport.https=$HTTPS PORT"
105+
export CATALINA_OPTS="$CATALINA_OPTS -Dport.ajp=$AJP_PORT"
106+
107+
# export JAVA_ENDORSED_DIRS="$CATALINA_BASE/endorsed:$CATALINA_HOME/endorsed"
108+
109+
# Add log location although in container we are not suppose to write logs to file
110+
export CATALINA_OPTS="$CATALINA_OPTS -Dlog.location=${CATALINA_HOME} /logs/"
111+
112+
# Add $CATALINA_HOME/config/ and any existing $CLASSPATH into Tomcat classpath
113+
export CLASSPATH="$CATALINA_HOME/config/:$CLASSPATH"
114+
115+
# Set Spring config dir to config folder to let spring look for spring configuration files here
116+
# https://docs.spring.io/spring-boot/docs/2.1.9.RELEASE/reference/html/boot-features-external-config.html#boot-features-external-config-application-property-files
117+
export JAVA_OPTS="$JAVA_OPTS -Dspring.config.location=$ {CATALINA_HOME}/config/"
118+
119+
# Add ROOT Certificate and Intermediate certificates to trustStore and trust them in mal
120+
# export JAVA_OPTS="$JAVA_OPTS -Djavax.net.ssl.trustStore=/tmp/TrustStore.jks -Djavax.net.ssl.trustStorePassword=abcd1234"
121+
122+
echo "Using CATALINA_OPTS:"
123+
for arg in $CATALINA_OPTS
124+
do
125+
echo ">> " $arg
126+
done
127+
echo ""
128+
129+
# echo "Using JAVA_OPTS:"
130+
# for arg in $JAVA_OPTS
131+
# do
132+
# echo ">> " $arg
133+
# done
134+
135+
echo "___________________________________"
136+
echo ""
137+

conf/context.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<Context useHttpOnly="true">
2+
<WatchedResource>WEB-INF/web.xml</WatchedResource>
3+
<Manager className="org.apache.catalina.session.StandardManager" secureRandomClass="java.security.SecureRandom" />
4+
<CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" />
5+
</Context>

0 commit comments

Comments
 (0)