mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
REPO-3457: remove quay.io as ref in the dockerfile
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
FROM quay.io/alfresco/alfresco-base-tomcat:8.5.28-java-8-oracle-centos-7-f7b1278cc0eb
|
||||
# Fetch image based on Tomcat 8.5.28 and Java 8
|
||||
# More infos about this image: https://github.com/Alfresco/alfresco-docker-base-tomcat
|
||||
FROM alfresco/alfresco-base-tomcat:8.5.28-java-8-oracle-centos-7
|
||||
|
||||
# Base ACS Repository Image includes transformation commands:
|
||||
# /usr/bin/alfresco-pdf-renderer - alfresco-pdf-renderer
|
||||
@@ -19,9 +21,10 @@ ENV IMAGEMAGICK_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositor
|
||||
ENV IMAGEMAGICK_LIB_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/imagemagick/imagemagick-distribution/7.0.7-27/imagemagick-distribution-7.0.7-27-libs-linux.rpm
|
||||
ENV IMAGEMAGICK_LICENSE_FILE=https://github.com/Alfresco/acs-community-packaging/blob/master/distribution/src/main/resources/licenses/3rd-party/ImageMagick-license.txt
|
||||
|
||||
# Install transformer binaries
|
||||
RUN yum install wget -y && \
|
||||
\
|
||||
wget $ALFRESCO_PDF_RENDERER_LIB_RPM_URL && \
|
||||
\
|
||||
wget $ALFRESCO_PDF_RENDERER_LIB_RPM_URL && \
|
||||
wget -P /. $PDFIUM_LICENSE_FILE && \
|
||||
tar xf alfresco-pdf-renderer-*-linux.tgz -C /usr/bin && \
|
||||
rm -f alfresco-pdf-renderer-*-linux.tgz && \
|
||||
@@ -40,22 +43,29 @@ RUN yum install wget -y && \
|
||||
rm -f imagemagick-distribution-*-linux.rpm && \
|
||||
\
|
||||
yum clean all &&\
|
||||
\
|
||||
yum remove wget -y
|
||||
\
|
||||
yum remove wget -y
|
||||
|
||||
# Create prerequisite to store tools and properties
|
||||
RUN mkdir -p /usr/local/tomcat/shared/classes/alfresco/extension && \
|
||||
mkdir /usr/local/tomcat/alfresco-mmt
|
||||
|
||||
RUN touch /usr/local/tomcat/shared/classes/alfresco-global.properties
|
||||
|
||||
# You need to run `mvn clean install` in the root of this project to update the following dependencies
|
||||
# Copy the WAR files to the appropriate location for your application server
|
||||
# Copy the JDBC drivers for the database you are using to the lib/ directory.
|
||||
# Copy the alfresco-mmt.jar
|
||||
COPY target/war /usr/local/tomcat/webapps
|
||||
COPY target/connector/* /usr/local/tomcat/lib/
|
||||
COPY target/alfresco-mmt/* /usr/local/tomcat/alfresco-mmt/
|
||||
RUN rm -rf /usr/local/tomcat/webapps/ROOT
|
||||
COPY target/server-root/* /usr/local/tomcat/webapps
|
||||
|
||||
# Change the value of the shared.loader= property to the following:
|
||||
# shared.loader=${catalina.base}/shared/classes
|
||||
RUN sed -i "s/shared.loader=/shared.loader=\${catalina.base}\/shared\/classes/" /usr/local/tomcat/conf/catalina.properties
|
||||
|
||||
# Add here configurations for alfresco-global.properties
|
||||
RUN echo -e '\n\
|
||||
alfresco-pdf-renderer.root=/usr/bin/\n\
|
||||
alfresco-pdf-renderer.exe=${alfresco-pdf-renderer.root}/alfresco-pdf-renderer\n\
|
||||
@@ -77,12 +87,15 @@ img.exe=/usr/bin/convert\n\
|
||||
|
||||
RUN mkdir -p /usr/local/tomcat/amps
|
||||
|
||||
# Copy the amps from build context to the appropriate location for your application server
|
||||
COPY target/amps /usr/local/tomcat/amps
|
||||
|
||||
|
||||
# Install amps on alfresco.war
|
||||
RUN java -jar /usr/local/tomcat/alfresco-mmt/alfresco-mmt*.jar install \
|
||||
/usr/local/tomcat/amps /usr/local/tomcat/webapps/alfresco -directory -nobackup -force
|
||||
|
||||
# Docker CMD from parent image starts the server
|
||||
|
||||
# To remote debug into this image add: EXPOSE 8000
|
||||
# Changes are also required to the docker-compose/docker-compose.yml file.
|
||||
# EXPOSE 8000
|
||||
|
Reference in New Issue
Block a user