Compare commits
30 Commits
acs-ext-sh
...
acs-ats-ba
Author | SHA1 | Date | |
---|---|---|---|
b17f702f05 | |||
c3f695ae8b | |||
2b14374993 | |||
a4cfbd0b14 | |||
04b394c31c | |||
fbbed5946f | |||
831f1cb4f0 | |||
0e5181d12a | |||
f569d712e1 | |||
ffac352049 | |||
39928d09fc | |||
9859e68fe8 | |||
4dccd7892f | |||
b024fd8d7e | |||
8a36f91d06 | |||
d3b41dcc46 | |||
b47583a716 | |||
04f44ef280 | |||
ce9b143fb5 | |||
f73fdbb5ea | |||
3b631bcd87 | |||
d6f1c99c79 | |||
6d35ffa551 | |||
6c739c5795 | |||
487a677f6f | |||
0608045c1b | |||
79ef1f5868 | |||
8c480402ed | |||
6858d201c2 | |||
c1323a8171 |
4
.env
4
.env
@@ -6,6 +6,8 @@ PROXY_HOST=localhost
|
|||||||
PROXY_PORT=8080
|
PROXY_PORT=8080
|
||||||
|
|
||||||
ACS_TAG=7.4.1.1
|
ACS_TAG=7.4.1.1
|
||||||
|
ATR_TAG=3.0.0
|
||||||
|
ATE_AIO_TAG=4.0.0
|
||||||
|
ASFS_TAG=3.0.0
|
||||||
AAMQ_TAG=latest
|
AAMQ_TAG=latest
|
||||||
POSTGRES_TAG=13
|
POSTGRES_TAG=13
|
||||||
ACS_SHARE_TAG=7.4.1.2
|
|
||||||
|
@@ -1,11 +0,0 @@
|
|||||||
ARG ACS_SHARE_TAG=inject-it
|
|
||||||
FROM alfresco/alfresco-share:${ACS_SHARE_TAG}
|
|
||||||
|
|
||||||
ARG TOMCAT_DIR=/usr/local/tomcat
|
|
||||||
|
|
||||||
COPY tomcat-share-context.xml ${TOMCAT_DIR}/conf/Catalina/localhost/share.xml
|
|
||||||
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 && \
|
|
||||||
mkdir -p ${TOMCAT_DIR}/modules/share
|
|
||||||
|
|
@@ -1,3 +0,0 @@
|
|||||||
## 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 Share web application.
|
|
@@ -1,6 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<Context>
|
|
||||||
<Resources>
|
|
||||||
<PreResources base="${catalina.base}/modules/share" className="org.apache.catalina.webresources.DirResourceSet" webAppMount="/WEB-INF/lib" readOnly="true" />
|
|
||||||
</Resources>
|
|
||||||
</Context>
|
|
@@ -1,3 +0,0 @@
|
|||||||
## 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 Share web application.
|
|
@@ -19,9 +19,6 @@ services:
|
|||||||
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
|
||||||
-Dshare.host=${PROXY_HOST}
|
|
||||||
-Dshare.port=${PROXY_PORT}
|
|
||||||
-Dshare.protocol=${PROXY_PROTOCOL}
|
|
||||||
-Dalfresco.host=${PROXY_HOST}
|
-Dalfresco.host=${PROXY_HOST}
|
||||||
-Dalfresco.port=${PROXY_PORT}
|
-Dalfresco.port=${PROXY_PORT}
|
||||||
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
||||||
@@ -30,27 +27,31 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
- postgres-acs
|
- postgres-acs
|
||||||
- activemq
|
- activemq
|
||||||
|
- shared-file-store
|
||||||
|
|
||||||
share:
|
transform-router:
|
||||||
build:
|
image: quay.io/alfresco/alfresco-transform-router:${ATR_TAG}
|
||||||
context: ./alfresco-share/docker
|
|
||||||
args:
|
|
||||||
ACS_SHARE_TAG: ${ACS_SHARE_TAG}
|
|
||||||
image: local/alfresco-share:latest
|
|
||||||
environment:
|
environment:
|
||||||
REPO_HOST: "platform"
|
ACTIVEMQ_URL: "nio://activemq:61616"
|
||||||
CSRF_FILTER_REFERER: "${PROXY_PROTOCOL}://${PROXY_HOST}(:${PROXY_PORT})?/?.*"
|
CORE_AIO_URL : "http://transform-core-aio:8090"
|
||||||
CSRF_FILTER_ORIGIN: "${PROXY_PROTOCOL}://${PROXY_HOST}(:${PROXY_PORT})?"
|
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
|
||||||
JAVA_OPTS: "
|
depends_on:
|
||||||
-Dshare.host=${PROXY_HOST}
|
- activemq
|
||||||
-Dshare.port=${PROXY_PORT}
|
- shared-file-store
|
||||||
-Dshare.protocol=${PROXY_PROTOCOL}
|
|
||||||
-Dalfresco.host=${PROXY_HOST}
|
transform-core-aio:
|
||||||
-Dalfresco.port=${PROXY_PORT}
|
image: alfresco/alfresco-transform-core-aio:${ATE_AIO_TAG}
|
||||||
-Dalfresco.protocol=${PROXY_PROTOCOL}
|
environment:
|
||||||
"
|
ACTIVEMQ_URL: "nio://activemq:61616"
|
||||||
|
FILE_STORE_URL: "http://shared-file-store:8099/alfresco/api/-default-/private/sfs/versions/1/file"
|
||||||
|
depends_on:
|
||||||
|
- activemq
|
||||||
|
- shared-file-store
|
||||||
|
|
||||||
|
shared-file-store:
|
||||||
|
image: quay.io/alfresco/alfresco-shared-file-store:${ASFS_TAG}
|
||||||
volumes:
|
volumes:
|
||||||
- "./alfresco-share/modules:/usr/local/tomcat/modules/share:ro"
|
- shared-file-store-volume:/tmp/Alfresco/sfs
|
||||||
|
|
||||||
postgres-acs:
|
postgres-acs:
|
||||||
image: postgres:${POSTGRES_TAG}
|
image: postgres:${POSTGRES_TAG}
|
||||||
@@ -60,9 +61,14 @@ services:
|
|||||||
|
|
||||||
proxy:
|
proxy:
|
||||||
build: ./nginx-ingress
|
build: ./nginx-ingress
|
||||||
image: local/nginx-ingress:acs-share
|
image: local/nginx-ingress:acs
|
||||||
ports:
|
ports:
|
||||||
- 8080:8080
|
- 8080:8080
|
||||||
depends_on:
|
depends_on:
|
||||||
- platform
|
- platform
|
||||||
- share
|
|
||||||
|
volumes:
|
||||||
|
shared-file-store-volume:
|
||||||
|
driver_opts:
|
||||||
|
type: tmpfs
|
||||||
|
device: tmpfs
|
||||||
|
@@ -4,10 +4,6 @@ if [[ $ACS_PLATFORM_URL ]]; then
|
|||||||
sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf
|
sed -i s%http:\/\/platform:8080%"$ACS_PLATFORM_URL"%g /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $ACS_SHARE_URL ]]; then
|
|
||||||
sed -i s%http:\/\/share:8080%"$ACS_SHARE_URL"%g /etc/nginx/nginx.conf
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $ACCESS_LOG ]]; then
|
if [[ $ACCESS_LOG ]]; then
|
||||||
sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf
|
sed -i s%\#ENV_ACCESS_LOG%"access_log $ACCESS_LOG;"%g /etc/nginx/nginx.conf
|
||||||
fi
|
fi
|
||||||
|
@@ -48,12 +48,5 @@ http {
|
|||||||
# 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;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /share/ {
|
|
||||||
proxy_pass http://share:8080;
|
|
||||||
|
|
||||||
# If using external proxy / load balancer (for initial redirect if no trailing slash)
|
|
||||||
absolute_redirect off;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user