Compare commits

..

14 Commits

6 changed files with 39 additions and 14 deletions

View File

@@ -0,0 +1,17 @@
ARG ACS_TAG=inject-it
FROM alfresco/alfresco-content-repository-community:${ACS_TAG}
ARG USERNAME=alfresco
ARG TOMCAT_DIR=/usr/local/tomcat
USER root
COPY catalina.policy /tmp/catalina.policy.ext
COPY tomcat-platform-context.xml ${TOMCAT_DIR}/conf/Catalina/localhost/alfresco.xml
COPY *.amp ${TOMCAT_DIR}/amps/
RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install ${TOMCAT_DIR}/amps ${TOMCAT_DIR}/webapps/alfresco -nobackup -directory && \
mkdir -p ${TOMCAT_DIR}/modules/platform && \
cat /tmp/catalina.policy.ext >> ${TOMCAT_DIR}/conf/catalina.policy
USER ${USERNAME}

View File

@@ -0,0 +1,3 @@
## Usage
Download all AMP files needed into this directory. All of them will be copied into a new Docker image and installed into the Alfresco Platform web application.

View File

@@ -0,0 +1,4 @@
grant codeBase "file:${catalina.base}/modules/-" {
permission java.security.AllPermission;
};

View File

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

View File

@@ -0,0 +1,3 @@
## Usage
Download all JAR module files needed into this directory. All of them will be dynamically loaded into the Docker container and loaded into the Alfresco Platform web application.

View File

@@ -5,7 +5,11 @@ version: "3"
services:
platform:
image: alfresco/alfresco-content-repository-community:${ACS_TAG}
build:
context: ./alfresco-content-repository/docker
args:
ACS_TAG: ${ACS_TAG}
image: local/alfresco-content-repository:latest
environment:
JAVA_TOOL_OPTIONS: "
-Dencryption.keystore.type=JCEKS
@@ -28,17 +32,13 @@ services:
- postgres-acs
- activemq
volumes:
- acsbin-volume:/usr/local/tomcat/alf_data:rw
- "./alfresco-content-repository/modules:/usr/local/tomcat/modules/platform:ro"
postgres-acs:
image: postgres:${POSTGRES_TAG}
volumes:
- acsdb-volume:/var/lib/postgresql/data:rw
activemq:
image: alfresco/alfresco-activemq:${AAMQ_TAG}
volumes:
- activemq-volume:/opt/activemq/data:rw
proxy:
build: ./nginx-ingress
@@ -47,11 +47,3 @@ services:
- 8080:8080
depends_on:
- platform
volumes:
acsbin-volume:
driver: local
acsdb-volume:
driver: local
activemq-volume:
driver: local