Compare commits

...

16 Commits

4 changed files with 29 additions and 12 deletions

5
.env
View File

@@ -4,3 +4,8 @@ ALFRESCO_LICENSE_DIR=~/alfresco/license
PROXY_PROTOCOL=http PROXY_PROTOCOL=http
PROXY_HOST=localhost PROXY_HOST=localhost
PROXY_PORT=8080 PROXY_PORT=8080
ACS_TAG=7.4.1.1
AAMQ_TAG=latest
POSTGRES_TAG=13
ACS_SHARE_TAG=7.4.1.2

View File

@@ -1,4 +1,5 @@
FROM alfresco/alfresco-share:latest ARG ACS_SHARE_TAG=inject-it
FROM alfresco/alfresco-share:${ACS_SHARE_TAG}
ARG TOMCAT_DIR=/usr/local/tomcat ARG TOMCAT_DIR=/usr/local/tomcat
@@ -6,5 +7,5 @@ COPY tomcat-share-context.xml ${TOMCAT_DIR}/conf/Catalina/localhost/share.xml
COPY *.amp ${TOMCAT_DIR}/amps_share/ 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 mkdir -p ${TOMCAT_DIR}/modules/share

View File

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

View File

@@ -1,12 +1,21 @@
# Sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml # Originally sourced from https://github.com/Alfresco/acs-deployment/blob/4.0.3/docker-compose/docker-compose.yml
# #
# Using version 2 as 3 does not support resource constraint options (cpu_*, mem_* limits) for non swarm mode in Compose version: "3"
version: "2"
services: services:
platform: platform:
image: alfresco/alfresco-content-repository:latest image: alfresco/alfresco-content-repository-community:${ACS_TAG}
environment: environment:
JAVA_TOOL_OPTIONS: "
-Dencryption.keystore.type=JCEKS
-Dencryption.cipherAlgorithm=DESede/CBC/PKCS5Padding
-Dencryption.keyAlgorithm=DESede
-Dencryption.keystore.location=/usr/local/tomcat/shared/classes/alfresco/extension/keystore/keystore
-Dmetadata-keystore.password=mp6yc0UD9e
-Dmetadata-keystore.aliases=metadata
-Dmetadata-keystore.metadata.password=oKIWzVdEdA
-Dmetadata-keystore.metadata.algorithm=DESede"
JAVA_OPTS: " JAVA_OPTS: "
-Ddb.driver=org.postgresql.Driver -Ddb.driver=org.postgresql.Driver
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco -Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco
@@ -23,7 +32,10 @@ services:
- activemq - activemq
share: share:
build: ./alfresco-share/docker build:
context: ./alfresco-share/docker
args:
ACS_SHARE_TAG: ${ACS_SHARE_TAG}
image: local/alfresco-share:latest image: local/alfresco-share:latest
environment: environment:
REPO_HOST: "platform" REPO_HOST: "platform"
@@ -38,13 +50,13 @@ services:
-Dalfresco.protocol=${PROXY_PROTOCOL} -Dalfresco.protocol=${PROXY_PROTOCOL}
" "
volumes: volumes:
- "./alfresco-share/modules:/usr/local/tomcat/modules:ro" - "./alfresco-share/modules:/usr/local/tomcat/modules/share:ro"
postgres-acs: postgres-acs:
image: postgres:latest image: postgres:${POSTGRES_TAG}
activemq: activemq:
image: alfresco/alfresco-activemq:latest image: alfresco/alfresco-activemq:${AAMQ_TAG}
proxy: proxy:
build: ./nginx-ingress build: ./nginx-ingress