-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile-ACS-7.3
29 lines (22 loc) · 1.31 KB
/
Dockerfile-ACS-7.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM alfresco/alfresco-content-repository-community:7.3.2
USER root
ARG AMP_PATH=full/repository/target
ARG AMP_NAME=de.acosix.alfresco.utility.repo-1.4.4.amp
ARG TOMCAT_DIR=/usr/local/tomcat
ARG GROUPNAME=Alfresco
ARG IMAGEUSERNAME=alfresco
# fix to deal with "warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)"
RUN yum install -y glibc-langpack-en
COPY $AMP_PATH/$AMP_NAME support-tools-repo-1.2.2.0-amp.amp $TOMCAT_DIR/amps/
RUN java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
$TOMCAT_DIR/amps/$AMP_NAME $TOMCAT_DIR/webapps/alfresco -nobackup -force \
&& java -jar $TOMCAT_DIR/alfresco-mmt/alfresco-mmt*.jar install \
$TOMCAT_DIR/amps/support-tools-repo-1.2.2.0-amp.amp $TOMCAT_DIR/webapps/alfresco -nobackup -force
# 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 chown -R root:${GROUPNAME} ${TOMCAT_DIR}/webapps/alfresco ${TOMCAT_DIR}/amps ${TOMCAT_DIR}/lib ${TOMCAT_DIR}/shared/classes && \
chmod -R u=rwX,g=rX,o= ${TOMCAT_DIR}/webapps/alfresco && \
chmod -R u=rwX,g=rX,o= ${TOMCAT_DIR}/shared && \
chmod -R u=rwX,g=rX,o= ${TOMCAT_DIR}/lib && \
chmod 664 ${TOMCAT_DIR}/amps/*
USER ${IMAGEUSERNAME}