enabled JAR extension loading

This commit is contained in:
Brian Long 2020-12-25 14:39:01 -05:00
parent 8a29bded24
commit 18839c8019
3 changed files with 12 additions and 2 deletions

View File

@ -4,4 +4,6 @@ ARG TOMCAT_DIR=/usr/local/tomcat
COPY *.amp ${TOMCAT_DIR}/amps_share/
RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install ${TOMCAT_DIR}/amps_share ${TOMCAT_DIR}/webapps/share -nobackup -directory
RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install ${TOMCAT_DIR}/amps_share ${TOMCAT_DIR}/webapps/share -nobackup -directory && \
mkdir -p ${TOMCAT_DIR}/modules

View File

@ -21,7 +21,8 @@ services:
environment:
REPO_HOST: "platform"
volumes:
- "./alfresco-share/modules:/usr/local/tomcat/modules/share:ro"
- "./tomcat-share-context.xml:/usr/local/tomcat/conf/Catalina/localhost/share.xml:ro"
- "./alfresco-share/modules:/usr/local/tomcat/modules:ro"
postgres-acs:
image: postgres:latest

7
tomcat-share-context.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<Context>
<Resources>
<PreResources base="${catalina.base}/modules" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF/lib" readOnly="true" />
</Resources>
</Context>