mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-08-07 17:48:35 +00:00
ACS-5039 Transformers multi-arch support (#837)
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -158,6 +158,10 @@ jobs:
|
|||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.34.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.34.0
|
||||||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.34.0
|
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.34.0
|
||||||
|
- name: Set up QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
with:
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
- name: "Login to Docker Hub"
|
- name: "Login to Docker Hub"
|
||||||
uses: docker/login-action@v2.1.0
|
uses: docker/login-action@v2.1.0
|
||||||
with:
|
with:
|
||||||
|
@@ -12,12 +12,12 @@ ARG EXIFTOOL_FOLDER=Image-ExifTool-${EXIFTOOL_VERSION}
|
|||||||
ARG EXIFTOOL_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/exiftool/image-exiftool/${EXIFTOOL_VERSION}/image-exiftool-${EXIFTOOL_VERSION}.tgz
|
ARG EXIFTOOL_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/exiftool/image-exiftool/${EXIFTOOL_VERSION}/image-exiftool-${EXIFTOOL_VERSION}.tgz
|
||||||
|
|
||||||
ARG IMAGEMAGICK_VERSION=7.1.0-16
|
ARG IMAGEMAGICK_VERSION=7.1.0-16
|
||||||
ENV IMAGEMAGICK_RPM_URL=https://github.com/Alfresco/imagemagick-build/releases/download/v${IMAGEMAGICK_VERSION}/ImageMagick-${IMAGEMAGICK_VERSION}.x86_64.rpm
|
ENV IMAGEMAGICK_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/imagemagick/imagemagick-distribution/${IMAGEMAGICK_VERSION}-ci-3/imagemagick-distribution-${IMAGEMAGICK_VERSION}-ci-3
|
||||||
ENV IMAGEMAGICK_LIB_RPM_URL=https://github.com/Alfresco/imagemagick-build/releases/download/v${IMAGEMAGICK_VERSION}/ImageMagick-libs-${IMAGEMAGICK_VERSION}.x86_64.rpm
|
|
||||||
ENV IMAGEMAGICK_DEP_RPM_URL=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
ENV IMAGEMAGICK_DEP_RPM_URL=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
||||||
|
|
||||||
ARG LIBREOFFICE_VERSION=7.2.5
|
ARG LIBREOFFICE_VERSION=7.2.5
|
||||||
ENV LIBREOFFICE_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/libreoffice/libreoffice-dist/${LIBREOFFICE_VERSION}/libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz
|
ENV LIBREOFFICE_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/libreoffice/libreoffice-dist/${LIBREOFFICE_VERSION}/libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz
|
||||||
|
ENV LIBREOFFICE_ARM64_RPM_URL=https://dl.rockylinux.org/pub/rocky/8.8/devel/aarch64/os/Packages/l/libreoffice-core-6.4.7.2-13.el8.aarch64.rpm
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
@@ -34,15 +34,23 @@ COPY target/${env.project_artifactId}-${env.project_version}.jar /usr/bin
|
|||||||
#removing perl-ExtUtils-MakeMaker cascades to remove exiftools
|
#removing perl-ExtUtils-MakeMaker cascades to remove exiftools
|
||||||
RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
||||||
yum install -y $IMAGEMAGICK_DEP_RPM_URL && \
|
yum install -y $IMAGEMAGICK_DEP_RPM_URL && \
|
||||||
yum install -y $IMAGEMAGICK_LIB_RPM_URL $IMAGEMAGICK_RPM_URL && \
|
if [ "$(uname -m)" = "x86_64" ]; then \
|
||||||
rpm -e --nodeps libgs && \
|
yum install -y ${IMAGEMAGICK_RPM_URL}-el8.rpm ${IMAGEMAGICK_RPM_URL}-el8-libs.rpm; \
|
||||||
|
else \
|
||||||
|
yum install -y ${IMAGEMAGICK_RPM_URL}-arm64.rpm ${IMAGEMAGICK_RPM_URL}-arm64-libs.rpm; \
|
||||||
|
fi && \
|
||||||
yum install -y cairo cups-libs libSM libGLU && \
|
yum install -y cairo cups-libs libSM libGLU && \
|
||||||
test -f libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz && \
|
if [ "$(uname -m)" = "x86_64" ]; then \
|
||||||
ln -s libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz libreoffice-dist-linux.gz || \
|
test -f libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz && \
|
||||||
curl -s -S $LIBREOFFICE_RPM_URL -o libreoffice-dist-linux.gz && \
|
ln -s libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz libreoffice-dist-linux.gz || \
|
||||||
tar xzf libreoffice-dist-linux.gz && \
|
curl -s -S $LIBREOFFICE_RPM_URL -o libreoffice-dist-linux.gz && \
|
||||||
yum localinstall -y LibreOffice*/RPMS/*.rpm && \
|
tar xzf libreoffice-dist-linux.gz && \
|
||||||
rm -rf libreoffice-dist-*linux.gz LibreOffice_*_Linux_x86-64_rpm && \
|
yum localinstall -y LibreOffice*/RPMS/*.rpm && \
|
||||||
|
rm -rf libreoffice-dist-*linux.gz LibreOffice_*_Linux_x86-64_rpm; \
|
||||||
|
else \
|
||||||
|
yum install -y $LIBREOFFICE_ARM64_RPM_URL && \
|
||||||
|
update-alternatives --set java java-17-openjdk.aarch64; \
|
||||||
|
fi && \
|
||||||
curl -s -S $ALFRESCO_PDF_RENDERER_LIB_RPM_URL -o alfresco-pdf-renderer-linux.tgz && \
|
curl -s -S $ALFRESCO_PDF_RENDERER_LIB_RPM_URL -o alfresco-pdf-renderer-linux.tgz && \
|
||||||
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 && \
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<image.name>alfresco/alfresco-transform-core-aio</image.name>
|
<image.name>alfresco/alfresco-transform-core-aio</image.name>
|
||||||
<image.registry>quay.io</image.registry>
|
|
||||||
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -339,6 +338,15 @@
|
|||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -349,6 +357,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -392,6 +409,15 @@
|
|||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -402,6 +428,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<image.name>alfresco/alfresco-transform-example</image.name>
|
<image.name>alfresco/alfresco-transform-example</image.name>
|
||||||
<image.registry>quay.io</image.registry>
|
|
||||||
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -199,6 +198,51 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
|
<profile>
|
||||||
|
<id>push-docker-images</id>
|
||||||
|
<!-- publishes "image:latest" on Quay -->
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>io.fabric8</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<verbose>true</verbose>
|
||||||
|
<images>
|
||||||
|
<!-- Quay image -->
|
||||||
|
<image>
|
||||||
|
<name>${image.name}:${image.tag}</name>
|
||||||
|
<registry>${image.registry}</registry>
|
||||||
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
|
<contextDir>${project.basedir}</contextDir>
|
||||||
|
</build>
|
||||||
|
</image>
|
||||||
|
</images>
|
||||||
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>build-push-image</id>
|
||||||
|
<phase>install</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>build</goal>
|
||||||
|
<goal>push</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>internal</id>
|
<id>internal</id>
|
||||||
<build>
|
<build>
|
||||||
@@ -213,6 +257,15 @@
|
|||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -223,6 +276,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -266,6 +328,15 @@
|
|||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -276,6 +347,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
|
@@ -7,8 +7,7 @@ FROM alfresco/alfresco-base-java:jre17-rockylinux8-202306121108
|
|||||||
# For other ImageMagick versions please look at https://github.com/Alfresco/imagemagick-build tags
|
# For other ImageMagick versions please look at https://github.com/Alfresco/imagemagick-build tags
|
||||||
ARG IMAGEMAGICK_VERSION=7.1.0-16
|
ARG IMAGEMAGICK_VERSION=7.1.0-16
|
||||||
|
|
||||||
ENV IMAGEMAGICK_RPM_URL=https://github.com/Alfresco/imagemagick-build/releases/download/v${IMAGEMAGICK_VERSION}/ImageMagick-${IMAGEMAGICK_VERSION}.x86_64.rpm
|
ENV IMAGEMAGICK_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/imagemagick/imagemagick-distribution/${IMAGEMAGICK_VERSION}-ci-3/imagemagick-distribution-${IMAGEMAGICK_VERSION}-ci-3
|
||||||
ENV IMAGEMAGICK_LIB_RPM_URL=https://github.com/Alfresco/imagemagick-build/releases/download/v${IMAGEMAGICK_VERSION}/ImageMagick-libs-${IMAGEMAGICK_VERSION}.x86_64.rpm
|
|
||||||
ENV IMAGEMAGICK_DEP_RPM_URL=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
ENV IMAGEMAGICK_DEP_RPM_URL=https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
|
||||||
ENV JAVA_OPTS=""
|
ENV JAVA_OPTS=""
|
||||||
|
|
||||||
@@ -22,9 +21,12 @@ COPY target/${env.project_artifactId}-${env.project_version}.jar /usr/bin
|
|||||||
|
|
||||||
RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
||||||
yum install -y $IMAGEMAGICK_DEP_RPM_URL && \
|
yum install -y $IMAGEMAGICK_DEP_RPM_URL && \
|
||||||
yum install -y $IMAGEMAGICK_LIB_RPM_URL $IMAGEMAGICK_RPM_URL && \
|
if [ "$(uname -m)" = "x86_64" ]; then \
|
||||||
yum clean all && \
|
yum install -y ${IMAGEMAGICK_RPM_URL}-el8.rpm ${IMAGEMAGICK_RPM_URL}-el8-libs.rpm; \
|
||||||
rpm -e --nodeps libgs
|
else \
|
||||||
|
yum install -y ${IMAGEMAGICK_RPM_URL}-arm64.rpm ${IMAGEMAGICK_RPM_URL}-arm64-libs.rpm; \
|
||||||
|
fi && \
|
||||||
|
yum clean all
|
||||||
|
|
||||||
ADD target/generated-resources/licenses /licenses
|
ADD target/generated-resources/licenses /licenses
|
||||||
ADD target/generated-resources/licenses.xml /licenses/
|
ADD target/generated-resources/licenses.xml /licenses/
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<image.name>alfresco/alfresco-imagemagick</image.name>
|
<image.name>alfresco/alfresco-imagemagick</image.name>
|
||||||
<image.registry>quay.io</image.registry>
|
|
||||||
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -205,6 +204,15 @@
|
|||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -215,6 +223,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -258,6 +275,15 @@
|
|||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -268,6 +294,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
|
@@ -7,6 +7,7 @@ FROM alfresco/alfresco-base-java:jre17-rockylinux8-202306121108
|
|||||||
ARG LIBREOFFICE_VERSION=7.2.5
|
ARG LIBREOFFICE_VERSION=7.2.5
|
||||||
|
|
||||||
ENV LIBREOFFICE_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/libreoffice/libreoffice-dist/${LIBREOFFICE_VERSION}/libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz
|
ENV LIBREOFFICE_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/thirdparty/content/org/libreoffice/libreoffice-dist/${LIBREOFFICE_VERSION}/libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz
|
||||||
|
ENV LIBREOFFICE_ARM64_RPM_URL=https://dl.rockylinux.org/pub/rocky/8.8/devel/aarch64/os/Packages/l/libreoffice-core-6.4.7.2-13.el8.aarch64.rpm
|
||||||
ENV JAVA_OPTS=""
|
ENV JAVA_OPTS=""
|
||||||
|
|
||||||
# Set default user information
|
# Set default user information
|
||||||
@@ -19,13 +20,18 @@ COPY target/${env.project_artifactId}-${env.project_version}.jar libreoffice-dis
|
|||||||
|
|
||||||
RUN ln /${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
RUN ln /${env.project_artifactId}-${env.project_version}.jar /usr/bin/${env.project_artifactId}.jar && \
|
||||||
yum install -y cairo cups-libs libSM libGLU && \
|
yum install -y cairo cups-libs libSM libGLU && \
|
||||||
test -f libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz && \
|
if [ "$(uname -m)" = "x86_64" ]; then \
|
||||||
ln -s libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz libreoffice-dist-linux.gz || \
|
test -f libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz && \
|
||||||
curl -s -S $LIBREOFFICE_RPM_URL -o libreoffice-dist-linux.gz && \
|
ln -s libreoffice-dist-${LIBREOFFICE_VERSION}-linux.gz libreoffice-dist-linux.gz || \
|
||||||
tar xzf libreoffice-dist-linux.gz && \
|
curl -s -S $LIBREOFFICE_RPM_URL -o libreoffice-dist-linux.gz && \
|
||||||
yum localinstall -y LibreOffice*/RPMS/*.rpm && \
|
tar xzf libreoffice-dist-linux.gz && \
|
||||||
rm -rf libreoffice-dist-*linux.gz LibreOffice_*_Linux_x86-64_rpm && \
|
yum localinstall -y LibreOffice*/RPMS/*.rpm && \
|
||||||
yum clean all
|
rm -rf libreoffice-dist-*linux.gz LibreOffice_*_Linux_x86-64_rpm; \
|
||||||
|
else \
|
||||||
|
yum install -y $LIBREOFFICE_ARM64_RPM_URL && \
|
||||||
|
update-alternatives --set java java-17-openjdk.aarch64; \
|
||||||
|
fi && \
|
||||||
|
yum clean all
|
||||||
|
|
||||||
ADD target/generated-resources/licenses /licenses
|
ADD target/generated-resources/licenses /licenses
|
||||||
ADD target/generated-resources/licenses.xml /licenses/
|
ADD target/generated-resources/licenses.xml /licenses/
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<image.name>alfresco/alfresco-libreoffice</image.name>
|
<image.name>alfresco/alfresco-libreoffice</image.name>
|
||||||
<image.registry>quay.io</image.registry>
|
|
||||||
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -209,6 +208,15 @@
|
|||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -219,6 +227,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -262,6 +279,15 @@
|
|||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -272,6 +298,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
|
@@ -12,7 +12,6 @@
|
|||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<image.registry>quay.io</image.registry>
|
|
||||||
<image.name>alfresco/alfresco-transform-misc</image.name>
|
<image.name>alfresco/alfresco-transform-misc</image.name>
|
||||||
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
||||||
</properties>
|
</properties>
|
||||||
@@ -154,7 +153,7 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<images>
|
<images>
|
||||||
<image>
|
<image>
|
||||||
<name>alfresco/alfresco-activemq:5.16.1</name>
|
<name>alfresco/alfresco-activemq:5.17.4-jre17-rockylinux8</name>
|
||||||
<run>
|
<run>
|
||||||
<hostname>activemq</hostname>
|
<hostname>activemq</hostname>
|
||||||
<ports>
|
<ports>
|
||||||
@@ -163,7 +162,7 @@
|
|||||||
<port>61616:61616</port>
|
<port>61616:61616</port>
|
||||||
</ports>
|
</ports>
|
||||||
<wait>
|
<wait>
|
||||||
<log>Apache ActiveMQ 5.16.1 .* started</log>
|
<log>Apache ActiveMQ 5.* started</log>
|
||||||
<time>20000</time>
|
<time>20000</time>
|
||||||
<kill>500</kill>
|
<kill>500</kill>
|
||||||
<shutdown>100</shutdown>
|
<shutdown>100</shutdown>
|
||||||
@@ -253,6 +252,15 @@
|
|||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -263,6 +271,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -306,6 +323,15 @@
|
|||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -316,6 +342,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<image.name>alfresco/alfresco-pdf-renderer</image.name>
|
<image.name>alfresco/alfresco-pdf-renderer</image.name>
|
||||||
<image.registry>quay.io</image.registry>
|
|
||||||
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -201,6 +200,15 @@
|
|||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -211,6 +219,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -254,6 +271,15 @@
|
|||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -264,6 +290,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
|
@@ -13,7 +13,6 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<image.name>alfresco/alfresco-tika</image.name>
|
<image.name>alfresco/alfresco-tika</image.name>
|
||||||
<image.registry>quay.io</image.registry>
|
|
||||||
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
@@ -297,6 +296,15 @@
|
|||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -307,6 +315,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${image.tag}</name>
|
<name>${image.name}:${image.tag}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -350,6 +367,15 @@
|
|||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<registry>${image.registry}</registry>
|
<registry>${image.registry}</registry>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
@@ -360,6 +386,15 @@
|
|||||||
<image>
|
<image>
|
||||||
<name>${image.name}:${project.version}</name>
|
<name>${image.name}:${project.version}</name>
|
||||||
<build>
|
<build>
|
||||||
|
<buildx>
|
||||||
|
<platforms>
|
||||||
|
<platform>linux/amd64</platform>
|
||||||
|
<platform>linux/arm64</platform>
|
||||||
|
</platforms>
|
||||||
|
<attestations>
|
||||||
|
<provenance>false</provenance>
|
||||||
|
</attestations>
|
||||||
|
</buildx>
|
||||||
<contextDir>${project.basedir}</contextDir>
|
<contextDir>${project.basedir}</contextDir>
|
||||||
<buildOptions>
|
<buildOptions>
|
||||||
<squash>true</squash>
|
<squash>true</squash>
|
||||||
|
1
pom.xml
1
pom.xml
@@ -19,6 +19,7 @@
|
|||||||
<maven.compiler.target>17</maven.compiler.target>
|
<maven.compiler.target>17</maven.compiler.target>
|
||||||
|
|
||||||
<image.tag>latest</image.tag>
|
<image.tag>latest</image.tag>
|
||||||
|
<image.registry>quay.io</image.registry>
|
||||||
<dependency.pdfbox.version>2.0.26</dependency.pdfbox.version>
|
<dependency.pdfbox.version>2.0.26</dependency.pdfbox.version>
|
||||||
<dependency.alfresco-jodconverter-core.version>3.0.1.18</dependency.alfresco-jodconverter-core.version>
|
<dependency.alfresco-jodconverter-core.version>3.0.1.18</dependency.alfresco-jodconverter-core.version>
|
||||||
<env.project_version>${project.version}</env.project_version>
|
<env.project_version>${project.version}</env.project_version>
|
||||||
|
Reference in New Issue
Block a user