mirror of
https://github.com/Alfresco/acs-community-packaging.git
synced 2025-09-10 14:12:09 +00:00
* ACS-4140 Changes in pom and Dockerfile for alfresco-content-repository-community image
* ACS-4140 Changes in pom and Dockerfile for alfresco-governance-share-community and alfresco-governance-repository-community
* ACS-4140 Add docker image build mode option in build.sh
* ACS-4140 Fix in prepare_buildx.sh to not duplicate image.tag
* ACS-4139 Fix intermittent failures
* ACS-4139 Remove echo
* ACS-4140 Refactor build.sh
* ACS-4140 Added missing <BASE_IMAGE> argument
* ACS-4140 Push docker images to local repository
* ACS-4140 Add 'build-multiarch-docker-images' profile to 'share-community-docker'
* ACS-4140 Use build for 'push-docker-images' and 'release' profiles
* ACS-4140 Remove comments
* ACS-4140 Add missing properties
* ACS-4140 Inherit required properties
* ACS-4140 Change the 'build-multiarch-docker-image' profile phase to package
* Revert "ACS-4140 Change the 'build-multiarch-docker-image' profile phase to package"
This reverts commit 38781abc9a
.
* ACS-4140 Bump community repo/share versions
---------
Co-authored-by: Damian.Ujma@hyland.com <Damian.Ujma@hyland.com>
35 lines
1.1 KiB
Docker
35 lines
1.1 KiB
Docker
ARG BASE_IMAGE
|
|
FROM ${BASE_IMAGE}
|
|
|
|
# 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} |