REPO-3061: use environment variable to configure Share

This commit is contained in:
Andrei Rebegea
2017-12-15 17:54:33 +02:00
parent fbda727035
commit 346b626ca1
2 changed files with 3 additions and 2 deletions

View File

@@ -20,6 +20,9 @@ services:
share:
image: quay.io/alfresco/alfresco-full-share:${SHARE_TAG}
environment:
- REPO_HOST=alfresco
- REPO_PORT=8080
ports:
- 8080:8080

View File

@@ -5,7 +5,5 @@ RUN mkdir -p /usr/local/tomcat/amps_share
COPY target/alfresco-mmt/* /usr/local/tomcat/alfresco-mmt/
COPY target/amps_share /usr/local/tomcat/amps_share
RUN sed -i "s/localhost:8080/alfresco:8080/" /usr/local/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml
RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \
/usr/local/tomcat/amps_share /usr/local/tomcat/webapps/share -directory -nobackup -force