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,14 +1,18 @@
# Image provides a container in which to run alfresco-pdf-renderer transformations for Alfresco Content Services.
# The alfresco-pdf-renderer transformer uses the PDFium library from Google Inc. See the license at https://pdfium.googlesource.com/pdfium/+/master/LICENSE or in /pdfium.txt
FROM quay.io/alfresco/alfresco-base-java:9
ENV ALFRESCO_PDF_RENDERER_LIB_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/alfresco-pdf-renderer/1.1/alfresco-pdf-renderer-1.1-linux.tgz
ENV PDFIUM_LICENSE_FILE=https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/pdfium.txt
COPY target/alfresco-docker-alfresco-pdf-renderer-${env.project_version}.jar /usr/bin
RUN ln /usr/bin/alfresco-docker-alfresco-pdf-renderer-${env.project_version}.jar /usr/bin/alfresco-docker-alfresco-pdf-renderer.jar && \
yum install -y wget && \
wget $ALFRESCO_PDF_RENDERER_LIB_RPM_URL && \
wget $PDFIUM_LICENSE_FILE && \
tar xf alfresco-pdf-renderer-*-linux.tgz -C /usr/bin && \
rm -f alfresco-pdf-renderer-*-linux.tgz && \
yum remove -y wget && \

View File

@@ -0,0 +1,8 @@
### Alfresco License
* See the [LICENSE](LICENSE) file in this directory.
### 3rd party Licenses
* The alfresco-pdf-renderer transformer uses the PDFium library from Google Inc. See [https://pdfium.googlesource.com/pdfium/+/master/LICENSE](https://pdfium.googlesource.com/pdfium/+/master/LICENSE)
or the [pdfium.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/pdfium.txt) file placed in the root directory of the docker image.

View File

@@ -72,6 +72,9 @@ public class AlfrescoPdfRendererController extends AbstractTransformerController
public AlfrescoPdfRendererController()
{
logger = LogFactory.getLog(AlfrescoPdfRendererController.class);
logger.info("------------------------------------------------------------------------------------------------------------------------------------------");
logger.info("This transformer uses PDFium from Google Inc. See the license at https://pdfium.googlesource.com/pdfium/+/master/LICENSE or in /pdfium.txt");
logger.info("------------------------------------------------------------------------------------------------------------------------------------------");
setTransformCommand(createTransformCommand());
setCheckCommand(createCheckCommand());
}