REPO-3299,REPO-3436,REPO-3437: License infor for PDFium, LibreOffice and ImageMagick

This commit is contained in:
Alan Davis
2018-03-26 18:30:10 +01:00
parent a526b5f71c
commit 47f805e306
9 changed files with 48 additions and 1 deletions

View File

@@ -1,8 +1,11 @@
# Image provides a container in which to run LibreOffice transformations for Alfresco Content Services.
# LibreOffice is from The Document Foundation. See the license at https://www.libreoffice.org/download/license/ or in /libreoffice.txt
FROM quay.io/alfresco/alfresco-base-java:9
ENV LIBREOFFICE_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/libreoffice/libreoffice-dist/5.4.6/libreoffice-dist-5.4.6-linux.gz
ENV LIBREOFFICE_LICENSE_FILE=https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/libreoffice.txt
COPY target/alfresco-docker-libreoffice-${env.project_version}.jar /usr/bin
@@ -10,6 +13,7 @@ RUN ln /usr/bin/alfresco-docker-libreoffice-${env.project_version}.jar /usr/bin/
yum install -y wget && \
yum install -y cairo cups-libs libSM && \
wget $LIBREOFFICE_RPM_URL && \
wget $LIBREOFFICE_LICENSE_FILE && \
tar xzf libreoffice-dist-*-linux.gz && \
yum localinstall -y LibreOffice*/RPMS/*.rpm && \
rm -rf libreoffice-dist-*-linux.gz LibreOffice_*_Linux_x86-64_rpm && \

View File

@@ -0,0 +1,10 @@
### Alfresco License
* See the [LICENSE](LICENSE) file in this directory.
### 3rd party Licenses
* This transformer uses LibreOffice from The Document Foundation. See the license at
[https://www.libreoffice.org/download/license/](https://www.libreoffice.org/download/license/)
or the [libreoffice.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/libreoffice.txt)
file placed in the root directory of the docker image.

View File

@@ -81,7 +81,9 @@ public class LibreOfficeController extends AbstractTransformerController
public LibreOfficeController() throws Exception
{
logger = LogFactory.getLog(LibreOfficeController.class);
logger.info("-------------------------------------------------------------------------------------------------------------------------------------------------------");
logger.info("This transformer uses LibreOffice from The Document Foundation. See the license at https://www.libreoffice.org/download/license/ or in /libreoffice.txt");
logger.info("-------------------------------------------------------------------------------------------------------------------------------------------------------");
setJodConverter(createJodConverter());
}