mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-07-31 17:38:33 +00:00
REPO-3299,REPO-3436,REPO-3437: License infor for PDFium, LibreOffice and ImageMagick
This commit is contained in:
@@ -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 && \
|
||||
|
8
alfresco-docker-alfresco-pdf-renderer/LICENSES.md
Normal file
8
alfresco-docker-alfresco-pdf-renderer/LICENSES.md
Normal 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.
|
@@ -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());
|
||||
}
|
||||
|
Reference in New Issue
Block a user