Compare commits
14 Commits
acs-mysql
...
acs-ext-pl
Author | SHA1 | Date | |
---|---|---|---|
50ad4a380b | |||
1e1667c039 | |||
6e6f38e9e4 | |||
aeb3fe5b62 | |||
|
228e930caa | ||
fa515e4984 | |||
5a12f3a6e0 | |||
b6ff1bb4d2 | |||
8467968c92 | |||
32b8e047fb | |||
119c6643bd | |||
a30f423c44 | |||
4650110b96 | |||
24114c2604 |
17
alfresco-content-repository/docker/Dockerfile
Normal file
17
alfresco-content-repository/docker/Dockerfile
Normal 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}
|
3
alfresco-content-repository/docker/README.md
Normal file
3
alfresco-content-repository/docker/README.md
Normal 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.
|
4
alfresco-content-repository/docker/catalina.policy
Normal file
4
alfresco-content-repository/docker/catalina.policy
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
grant codeBase "file:${catalina.base}/modules/-" {
|
||||||
|
permission java.security.AllPermission;
|
||||||
|
};
|
||||||
|
|
@@ -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>
|
3
alfresco-content-repository/modules/README.md
Normal file
3
alfresco-content-repository/modules/README.md
Normal 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.
|
@@ -5,7 +5,11 @@ version: "3"
|
|||||||
services:
|
services:
|
||||||
|
|
||||||
platform:
|
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:
|
environment:
|
||||||
JAVA_TOOL_OPTIONS: "
|
JAVA_TOOL_OPTIONS: "
|
||||||
-Dencryption.keystore.type=JCEKS
|
-Dencryption.keystore.type=JCEKS
|
||||||
@@ -15,48 +19,26 @@ services:
|
|||||||
-Dmetadata-keystore.password=mp6yc0UD9e
|
-Dmetadata-keystore.password=mp6yc0UD9e
|
||||||
-Dmetadata-keystore.aliases=metadata
|
-Dmetadata-keystore.aliases=metadata
|
||||||
-Dmetadata-keystore.metadata.password=oKIWzVdEdA
|
-Dmetadata-keystore.metadata.password=oKIWzVdEdA
|
||||||
-Dmetadata-keystore.metadata.algorithm=DESede
|
-Dmetadata-keystore.metadata.algorithm=DESede"
|
||||||
"
|
|
||||||
JAVA_OPTS: "
|
JAVA_OPTS: "
|
||||||
-Xms512m -Xmx1g
|
-Ddb.driver=org.postgresql.Driver
|
||||||
-Ddb.driver=com.mysql.jdbc.Driver
|
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco
|
||||||
-Ddb.username=alfresco
|
|
||||||
-Ddb.password=alfresco
|
|
||||||
-Ddb.url=jdbc:mysql://mysql-acs:3306/alfresco?useUnicode=yes\\&characterEncoding=UTF-8\\&useSSL=false
|
|
||||||
-Dindex.subsystem.name=noindex
|
|
||||||
-Dalfresco.host=${PROXY_HOST}
|
-Dalfresco.host=${PROXY_HOST}
|
||||||
-Dalfresco.port=${PROXY_PORT}
|
-Dalfresco.port=${PROXY_PORT}
|
||||||
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||||
-Daos.baseUrlOverwrite=${PROXY_PROTOCOL}://${PROXY_HOST}:${PROXY_PORT}/alfresco/aos
|
|
||||||
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
|
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
|
||||||
-Ddeployment.method=DOCKER_COMPOSE
|
|
||||||
-Dcsrf.filter.enabled=false
|
|
||||||
-Dcors.enabled=true
|
|
||||||
-Dcors.allowed.origins=http://localhost:4200,http://localhost:8080,${PROXY_PROTOCOL}://${PROXY_HOST}
|
|
||||||
-Dtransform.service.enabled=false
|
|
||||||
-Dlocal.transform.service.enabled=false
|
|
||||||
-Dsystem.content.eagerOrphanCleanup=true
|
|
||||||
-Dsystem.content.orphanProtectDays=0
|
|
||||||
-Djodconverter.enabled=false
|
|
||||||
"
|
"
|
||||||
depends_on:
|
depends_on:
|
||||||
- mysql-acs
|
- postgres-acs
|
||||||
- activemq
|
- activemq
|
||||||
|
volumes:
|
||||||
|
- "./alfresco-content-repository/modules:/usr/local/tomcat/modules/platform:ro"
|
||||||
|
|
||||||
mysql-acs:
|
postgres-acs:
|
||||||
image: mysql:5.7
|
image: postgres:${POSTGRES_TAG}
|
||||||
environment:
|
|
||||||
- MYSQL_RANDOM_ROOT_PASSWORD=true
|
|
||||||
- MYSQL_PASSWORD=alfresco
|
|
||||||
- MYSQL_USER=alfresco
|
|
||||||
- MYSQL_DATABASE=alfresco
|
|
||||||
|
|
||||||
activemq:
|
activemq:
|
||||||
image: alfresco/alfresco-activemq:${AAMQ_TAG}
|
image: alfresco/alfresco-activemq:${AAMQ_TAG}
|
||||||
environment:
|
|
||||||
ACTIVEMQ_OPTS_MEMORY: -Xms64m -Xmx256m
|
|
||||||
ACTIVEMQ_ADMIN_LOGIN: alfresco
|
|
||||||
ACTIVEMQ_ADMIN_PASSWORD: alfresco
|
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
build: ./nginx-ingress
|
build: ./nginx-ingress
|
||||||
|
Reference in New Issue
Block a user