diff --git a/alfresco-share/docker/Dockerfile b/alfresco-share/docker/Dockerfile new file mode 100644 index 0000000..177661b --- /dev/null +++ b/alfresco-share/docker/Dockerfile @@ -0,0 +1,7 @@ +FROM alfresco/alfresco-share:latest + +ARG TOMCAT_DIR=/usr/local/tomcat + +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 diff --git a/alfresco-share/docker/README.md b/alfresco-share/docker/README.md new file mode 100644 index 0000000..ac21091 --- /dev/null +++ b/alfresco-share/docker/README.md @@ -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 Share web application. diff --git a/alfresco-share/modules/README.md b/alfresco-share/modules/README.md new file mode 100644 index 0000000..8239f24 --- /dev/null +++ b/alfresco-share/modules/README.md @@ -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 Share web application. diff --git a/docker-compose.yml b/docker-compose.yml index f9499b3..884ded0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -16,9 +16,12 @@ services: - activemq share: - image: alfresco/alfresco-share:latest + build: ./alfresco-share/docker + image: local/alfresco-share:latest environment: REPO_HOST: "platform" + volumes: + - "./alfresco-share/modules:/usr/local/tomcat/modules/share:ro" postgres-acs: image: postgres:latest