Files
acs-community-packaging/docker-alfresco/Dockerfile
T
Alan Davis 2cb08d3ead REPO-5271 Backport new project structure to master (#1067)
Original version was: 7.0.0-A3 (but keystore changes where cherry picked into the branch)

Uses alfresco-community-repo project structure rather than alfresco-core, alfresco-data-model, alfresco-repository and alfresco-remote-api.

Simplify dependencies, which flow downstream rather than being overridden in packaging.
Content repo base image separated from acs-community-packaging.
Licenses and default key store moved upstream. Allows use in upstream images.
TAS tests moved upstream, where they are content repository specific.
2020-10-04 19:42:45 +01:00

34 lines
1.1 KiB
Docker

FROM alfresco/alfresco-community-repo-base:${repo.image.tag}
# Set default docker_context.
ARG resource_path=target
# Set default user information
ARG GROUPNAME=Alfresco
ARG IMAGEUSERNAME=alfresco
# Set default environment args
ARG TOMCAT_DIR=/usr/local/tomcat
USER root
# Copy api-explorer war
COPY ${resource_path}/war ${TOMCAT_DIR}/webapps/
# Copy in the share-services amp
COPY ${resource_path}/amps/* ${TOMCAT_DIR}/amps/
# Install amps on alfresco.war
RUN java -jar ${TOMCAT_DIR}/alfresco-mmt/alfresco-mmt*.jar install \
${TOMCAT_DIR}/amps \
${TOMCAT_DIR}/webapps/alfresco -directory -nobackup
# The standard configuration is to have all Tomcat files owned by root with group GROUPNAME and whilst owner has read/write privileges,
# group only has restricted permissions and world has no permissions.
RUN chgrp -R ${GROUPNAME} ${TOMCAT_DIR}/webapps ${TOMCAT_DIR}/amps ${TOMCAT_DIR}/lib && \
find ${TOMCAT_DIR}/webapps -type d -exec chmod 0750 {} \; && \
find ${TOMCAT_DIR}/webapps -type f -exec chmod 0640 {} \; && \
chmod -R g+r ${TOMCAT_DIR}/webapps && \
chmod 664 ${TOMCAT_DIR}/amps/*
USER ${IMAGEUSERNAME}