mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-12 17:04:48 +00:00
REPO-3299,REPO-3436,REPO-3437: License infor for PDFium, LibreOffice and ImageMagick
This commit is contained in:
parent
a526b5f71c
commit
47f805e306
@ -1,14 +1,18 @@
|
|||||||
# Image provides a container in which to run alfresco-pdf-renderer transformations for Alfresco Content Services.
|
# 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
|
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 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
|
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 && \
|
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 && \
|
yum install -y wget && \
|
||||||
wget $ALFRESCO_PDF_RENDERER_LIB_RPM_URL && \
|
wget $ALFRESCO_PDF_RENDERER_LIB_RPM_URL && \
|
||||||
|
wget $PDFIUM_LICENSE_FILE && \
|
||||||
tar xf alfresco-pdf-renderer-*-linux.tgz -C /usr/bin && \
|
tar xf alfresco-pdf-renderer-*-linux.tgz -C /usr/bin && \
|
||||||
rm -f alfresco-pdf-renderer-*-linux.tgz && \
|
rm -f alfresco-pdf-renderer-*-linux.tgz && \
|
||||||
yum remove -y wget && \
|
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()
|
public AlfrescoPdfRendererController()
|
||||||
{
|
{
|
||||||
logger = LogFactory.getLog(AlfrescoPdfRendererController.class);
|
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());
|
setTransformCommand(createTransformCommand());
|
||||||
setCheckCommand(createCheckCommand());
|
setCheckCommand(createCheckCommand());
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
# Image provides a container in which to run ImageMagick transformations for Alfresco Content Services.
|
# Image provides a container in which to run ImageMagick transformations for Alfresco Content Services.
|
||||||
|
|
||||||
|
# ImageMagick is from ImageMagick Studio LLC. See the license at http://www.imagemagick.org/script/license.php or in /ImageMagick-license.txt
|
||||||
|
|
||||||
FROM quay.io/alfresco/alfresco-base-java:9
|
FROM quay.io/alfresco/alfresco-base-java:9
|
||||||
|
|
||||||
ENV IMAGEMAGICK_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-linux.rpm
|
ENV IMAGEMAGICK_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-linux.rpm
|
||||||
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_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/zip/src/main/resources/licenses/3rd-party/ImageMagick-license.txt
|
||||||
|
|
||||||
COPY target/alfresco-docker-imagemagick-${env.project_version}.jar /usr/bin
|
COPY target/alfresco-docker-imagemagick-${env.project_version}.jar /usr/bin
|
||||||
|
|
||||||
@ -11,6 +14,7 @@ RUN ln /usr/bin/alfresco-docker-imagemagick-${env.project_version}.jar /usr/bin/
|
|||||||
yum install -y wget && \
|
yum install -y wget && \
|
||||||
wget $IMAGEMAGICK_RPM_URL && \
|
wget $IMAGEMAGICK_RPM_URL && \
|
||||||
wget $IMAGEMAGICK_LIB_RPM_URL && \
|
wget $IMAGEMAGICK_LIB_RPM_URL && \
|
||||||
|
wget $IMAGEMAGICK_LICENSE_FILE && \
|
||||||
yum localinstall -y imagemagick-distribution-*-linux.rpm && \
|
yum localinstall -y imagemagick-distribution-*-linux.rpm && \
|
||||||
rm -f imagemagick-distribution-*-linux.rpm && \
|
rm -f imagemagick-distribution-*-linux.rpm && \
|
||||||
yum remove -y wget && \
|
yum remove -y wget && \
|
||||||
|
9
alfresco-docker-imagemagick/LICENSES.md
Normal file
9
alfresco-docker-imagemagick/LICENSES.md
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
### Alfresco License
|
||||||
|
|
||||||
|
* See the [LICENSE](LICENSE) file in this directory.
|
||||||
|
|
||||||
|
### 3rd party Licenses
|
||||||
|
|
||||||
|
* ImageMagick is from ImageMagick Studio LLC. See the license at [http://www.imagemagick.org/script/license.php](http://www.imagemagick.org/script/license.php)
|
||||||
|
or the [ImageMagick-license.txt](https://github.com/Alfresco/acs-community-packaging/blob/master/zip/src/main/resources/licenses/3rd-party/ImageMagick-license.txt)
|
||||||
|
file placed in the root directory of the docker image.
|
@ -80,6 +80,9 @@ public class ImageMagickController extends AbstractTransformerController
|
|||||||
public ImageMagickController()
|
public ImageMagickController()
|
||||||
{
|
{
|
||||||
logger = LogFactory.getLog(ImageMagickController.class);
|
logger = LogFactory.getLog(ImageMagickController.class);
|
||||||
|
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
|
logger.info("This transformer uses ImageMagick from ImageMagick Studio LLC. See the license at http://www.imagemagick.org/script/license.php or in /ImageMagick-license.txt");
|
||||||
|
logger.info("--------------------------------------------------------------------------------------------------------------------------------------------------------------");
|
||||||
setTransformCommand(createTransformCommand());
|
setTransformCommand(createTransformCommand());
|
||||||
setCheckCommand(createCheckCommand());
|
setCheckCommand(createCheckCommand());
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
# Image provides a container in which to run LibreOffice transformations for Alfresco Content Services.
|
# 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
|
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_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
|
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 wget && \
|
||||||
yum install -y cairo cups-libs libSM && \
|
yum install -y cairo cups-libs libSM && \
|
||||||
wget $LIBREOFFICE_RPM_URL && \
|
wget $LIBREOFFICE_RPM_URL && \
|
||||||
|
wget $LIBREOFFICE_LICENSE_FILE && \
|
||||||
tar xzf libreoffice-dist-*-linux.gz && \
|
tar xzf libreoffice-dist-*-linux.gz && \
|
||||||
yum localinstall -y LibreOffice*/RPMS/*.rpm && \
|
yum localinstall -y LibreOffice*/RPMS/*.rpm && \
|
||||||
rm -rf libreoffice-dist-*-linux.gz LibreOffice_*_Linux_x86-64_rpm && \
|
rm -rf libreoffice-dist-*-linux.gz LibreOffice_*_Linux_x86-64_rpm && \
|
||||||
|
10
alfresco-docker-libreoffice/LICENSES.md
Normal file
10
alfresco-docker-libreoffice/LICENSES.md
Normal 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.
|
@ -81,7 +81,9 @@ public class LibreOfficeController extends AbstractTransformerController
|
|||||||
public LibreOfficeController() throws Exception
|
public LibreOfficeController() throws Exception
|
||||||
{
|
{
|
||||||
logger = LogFactory.getLog(LibreOfficeController.class);
|
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());
|
setJodConverter(createJodConverter());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user