mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
* ATS-400 : Build improvements for TravisCI Building the LibreOffice docker image takes a long time due to the large packages that need to be downloaded and installed. This results in more than 10 minutes of inactivity in the build log and TravisCI kills the job. Improvements: - remove and replace unnecessary steps in Docker builds - cache LibreOffice GZIP distribution in Travis
36 lines
1.4 KiB
Docker
36 lines
1.4 KiB
Docker
# Image provides a container in which to run Tika transformations for Alfresco Enterprise Content Services.
|
|
|
|
# The container is only intended to be used with the Alfresco Enterprise editon which is covered by https://www.alfresco.com/legal/agreements and https://www.alfresco.com/terms-use.
|
|
# Tika is from Apache. See the license at http://www.apache.org/licenses/LICENSE-2.0.
|
|
|
|
FROM alfresco/alfresco-base-java:11.0.1-openjdk-centos-7-3e4e9f4e5d6a
|
|
|
|
ENV APACHE_LICENSE_FILE=https://github.com/Alfresco/acs-community-packaging/blob/master/distribution/src/main/resources/licenses/3rd-party/Apache%202.0.txt
|
|
ENV JAVA_OPTS=""
|
|
|
|
# Set default user information
|
|
ARG GROUPNAME=Alfresco
|
|
ARG GROUPID=1000
|
|
ARG USERNAME=tika
|
|
ARG USERID=33004
|
|
|
|
COPY target/alfresco-docker-tika-${env.project_version}.jar /usr/bin
|
|
|
|
RUN ln /usr/bin/alfresco-docker-tika-${env.project_version}.jar /usr/bin/alfresco-docker-tika.jar && \
|
|
curl -s -S $APACHE_LICENSE_FILE -o Apache\ 2.0.txt && \
|
|
yum clean all
|
|
|
|
ADD target/generated-resources/licenses /licenses
|
|
ADD target/generated-resources/licenses.xml /licenses/
|
|
ADD target/generated-sources/license/THIRD-PARTY.txt /licenses/
|
|
|
|
RUN groupadd -g ${GROUPID} ${GROUPNAME} && \
|
|
useradd -u ${USERID} -G ${GROUPNAME} ${USERNAME} && \
|
|
chgrp -R ${GROUPNAME} /usr/bin/alfresco-docker-tika.jar
|
|
|
|
EXPOSE 8090
|
|
|
|
USER ${USERNAME}
|
|
|
|
ENTRYPOINT java $JAVA_OPTS -jar /usr/bin/alfresco-docker-tika.jar
|