File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ ARG TINI_VERSION=v0.18.0
24
24
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
25
25
RUN chmod +x /tini
26
26
27
- COPY scripts/context.sh /context.sh
28
27
COPY entrypoint.sh /entrypoint.sh
29
28
30
29
ENV CROWD_VERSION 3.4.5
@@ -35,5 +34,3 @@ RUN mkdir -p ${CROWD_INSTALL_DIR} \
35
34
&& chown -R ${RUN_USER}:${RUN_GROUP} ${CROWD_INSTALL_DIR}/ \
36
35
&& 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} -Dcrowd.home=\$ {CROWD_HOME}/g' ${CROWD_INSTALL_DIR}/apache-tomcat/bin/setenv.sh \
37
36
&& sed -i -e 's/port="8095"/port="8095" secure="${catalinaConnectorSecure}" scheme="${catalinaConnectorScheme}" proxyName="${catalinaConnectorProxyName}" proxyPort="${catalinaConnectorProxyPort}"/' ${CROWD_INSTALL_DIR}/apache-tomcat/conf/server.xml
38
-
39
- RUN /context.sh
Original file line number Diff line number Diff line change @@ -18,6 +18,19 @@ CATALINA_OPTS="${CATALINA_OPTS} -DcatalinaContextPath=${CATALINA_CONTEXT_PATH}"
18
18
19
19
export CATALINA_OPTS
20
20
21
+ # Set the Tomcat context
22
+ if [ -z " $CATALINA_CONTEXT_PATH " ];
23
+ then
24
+ mv ${CROWD_INSTALL_DIR} /apache-tomcat/conf/Catalina/localhost/crowd.xml ${CROWD_INSTALL_DIR} /apache-tomcat/conf/Catalina/localhost/ROOT.xml
25
+ else
26
+ if [ " $CATALINA_CONTEXT_PATH " == " crowd" ];
27
+ then
28
+ echo " Context is default. Skipping..."
29
+ else
30
+ mv ${CROWD_INSTALL_DIR} /apache-tomcat/conf/Catalina/localhost/crowd.xml ${CROWD_INSTALL_DIR} /apache-tomcat/conf/Catalina/localhost/${CATALINA_CONTEXT_PATH} .xml
31
+ fi
32
+ fi
33
+
21
34
22
35
# Start Crowd as the correct user
23
36
if [ " ${UID} " -eq 0 ]; then
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments