Compare commits
34 Commits
propagate/
...
propagate/
Author | SHA1 | Date | |
---|---|---|---|
|
228e930caa | ||
6bce626075 | |||
fa515e4984 | |||
ebd6c503bd | |||
5a12f3a6e0 | |||
1d5624496d | |||
3a6b5c4850 | |||
c0c6dcd1ce | |||
3cb24f7587 | |||
6579a5a0c9 | |||
1ead7a8d16 | |||
63aa212ccb | |||
6d396a640f | |||
b6ff1bb4d2 | |||
8467968c92 | |||
9720bd7fa6 | |||
32b8e047fb | |||
119c6643bd | |||
a30f423c44 | |||
4650110b96 | |||
24114c2604 | |||
46bbeeef30 | |||
6b0c103d75 | |||
faee3aaa48 | |||
beb87dd97a | |||
db6a1e148c | |||
ab396f7656 | |||
b65d3d301f | |||
6332985ebd | |||
010149e6b6 | |||
79a1644530 | |||
5cfee3d18f | |||
6c665fab04 | |||
0f36dd1943 |
16
alfresco-content-repository/docker/Dockerfile
Normal file
16
alfresco-content-repository/docker/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
FROM alfresco/alfresco-content-repository:latest
|
||||||
|
|
||||||
|
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 && \
|
||||||
|
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,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>
|
||||||
|
|
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.
|
@@ -4,71 +4,29 @@
|
|||||||
version: "2"
|
version: "2"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
activiti-app:
|
platform:
|
||||||
image: alfresco/process-services:1.11.1.1
|
build: ./alfresco-content-repository/docker
|
||||||
mem_limit: 512m
|
image: local/alfresco-content-repository:latest
|
||||||
environment:
|
environment:
|
||||||
ACTIVITI_DATASOURCE_USERNAME: alfresco
|
JAVA_OPTS: "
|
||||||
ACTIVITI_DATASOURCE_PASSWORD: alfresco
|
-Ddb.driver=org.postgresql.Driver
|
||||||
ACTIVITI_DATASOURCE_DRIVER: org.postgresql.Driver
|
-Ddb.url=jdbc:postgresql://postgres-acs:5432/alfresco
|
||||||
ACTIVITI_HIBERNATE_DIALECT: org.hibernate.dialect.PostgreSQLDialect
|
-Dalfresco.host=${PROXY_HOST}
|
||||||
ACTIVITI_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps:5432/activiti?characterEncoding=UTF-8'
|
-Dalfresco.port=${PROXY_PORT}
|
||||||
ACTIVITI_ES_SERVER_TYPE: rest
|
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||||
ACTIVITI_ES_REST_CLIENT_ADDRESS: search-aps
|
-Dmessaging.broker.url=\"failover:(nio://activemq:61616)?timeout=3000&jms.useCompression=true\"
|
||||||
ACTIVITI_ES_REST_CLIENT_PORT: 9200
|
"
|
||||||
ACTIVITI_ES_REST_CLIENT_SCHEMA: http
|
|
||||||
JAVA_OPTS: "-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
|
|
||||||
depends_on:
|
depends_on:
|
||||||
- postgres-aps
|
- postgres-acs
|
||||||
|
- activemq
|
||||||
volumes:
|
volumes:
|
||||||
- "$ALFRESCO_LICENSE_DIR/aps:/root/.activiti/enterprise-license:ro"
|
- "./alfresco-content-repository/modules:/usr/local/tomcat/modules:ro"
|
||||||
|
|
||||||
activiti-admin:
|
postgres-acs:
|
||||||
image: alfresco/process-services-admin:1.11.1.1
|
image: postgres:latest
|
||||||
mem_limit: 256m
|
|
||||||
environment:
|
|
||||||
ACTIVITI_ADMIN_DATASOURCE_USERNAME: alfresco
|
|
||||||
ACTIVITI_ADMIN_DATASOURCE_PASSWORD: alfresco
|
|
||||||
ACTIVITI_ADMIN_DATASOURCE_DRIVER: org.postgresql.Driver
|
|
||||||
ACTIVITI_ADMIN_HIBERNATE_DIALECT: org.hibernate.dialect.PostgreSQLDialect
|
|
||||||
ACTIVITI_ADMIN_DATASOURCE_URL: 'jdbc:postgresql://postgres-aps-admin:5432/activiti-admin?characterEncoding=UTF-8'
|
|
||||||
ACTIVITI_ADMIN_REST_APP_HOST: http://activiti-app
|
|
||||||
ACTIVITI_ADMIN_REST_APP_PORT: 8080
|
|
||||||
JAVA_OPTS: "-XX:MinRAMPercentage=50 -XX:MaxRAMPercentage=80"
|
|
||||||
depends_on:
|
|
||||||
- postgres-aps-admin
|
|
||||||
- activiti-app
|
|
||||||
|
|
||||||
postgres-aps:
|
activemq:
|
||||||
image: postgres:11.6
|
image: alfresco/alfresco-activemq:latest
|
||||||
mem_limit: 256m
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: activiti
|
|
||||||
POSTGRES_USER: alfresco
|
|
||||||
POSTGRES_PASSWORD: alfresco
|
|
||||||
command: postgres -c max_connections=300 -c log_min_messages=LOG
|
|
||||||
|
|
||||||
postgres-aps-admin:
|
|
||||||
image: postgres:11.6
|
|
||||||
mem_limit: 128m
|
|
||||||
environment:
|
|
||||||
POSTGRES_DB: activiti-admin
|
|
||||||
POSTGRES_USER: alfresco
|
|
||||||
POSTGRES_PASSWORD: alfresco
|
|
||||||
command: postgres -c max_connections=50 -c log_min_messages=LOG
|
|
||||||
|
|
||||||
search-aps:
|
|
||||||
image: elasticsearch:7.6.0
|
|
||||||
mem_limit: 512m
|
|
||||||
environment:
|
|
||||||
discovery.type: single-node
|
|
||||||
ES_JAVA_OPTS: "-Xms128m -Xmx256m"
|
|
||||||
ulimits:
|
|
||||||
memlock:
|
|
||||||
soft: -1
|
|
||||||
hard: -1
|
|
||||||
depends_on:
|
|
||||||
- activiti-app
|
|
||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
build: ./nginx-ingress
|
build: ./nginx-ingress
|
||||||
@@ -76,5 +34,4 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
depends_on:
|
depends_on:
|
||||||
- activiti-app
|
- platform
|
||||||
- activiti-admin
|
|
||||||
|
@@ -1,11 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [[ $APS_APP_URL ]]; then
|
if [[ $ACS_PLATFORM_URL ]]; then
|
||||||
sed -i s%http:\/\/activiti-app:8080%"$APS_APP_URL"%g /etc/nginx/nginx.conf
|
sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $APS_ADMIN_URL ]]; then
|
|
||||||
sed -i s%http:\/\/activiti-admin:8080%"$APS_ADMIN_URL"%g /etc/nginx/nginx.conf
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $ACCESS_LOG ]]; then
|
if [[ $ACCESS_LOG ]]; then
|
||||||
|
@@ -39,18 +39,11 @@ http {
|
|||||||
location ~ ^(/.*/s/prometheus)$ {return 403;}
|
location ~ ^(/.*/s/prometheus)$ {return 403;}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 301 $scheme://$http_host/activiti-app;
|
proxy_pass http://platform:8080;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /activiti-app/ {
|
location /alfresco/ {
|
||||||
proxy_pass http://activiti-app:8080;
|
proxy_pass http://platform:8080;
|
||||||
|
|
||||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
|
||||||
absolute_redirect off;
|
|
||||||
}
|
|
||||||
|
|
||||||
location /activiti-admin/ {
|
|
||||||
proxy_pass http://activiti-admin:8080;
|
|
||||||
|
|
||||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
||||||
absolute_redirect off;
|
absolute_redirect off;
|
||||||
|
Reference in New Issue
Block a user