mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2026-09-16 18:13:21 +00:00
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.
34 lines
1.1 KiB
Docker
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} |