Skip to content

Commit

Permalink
ACS-5830 - Release 2 arch
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekswieton committed Sep 21, 2023
1 parent f424f7d commit 144bf7b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
14 changes: 10 additions & 4 deletions engines/aio/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ 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_ARM64_RPM_URL=https://dl.rockylinux.org/pub/rocky/8/Devel/aarch64/os/Packages/l/libreoffice-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.2/alfresco-pdf-renderer-1.2-linux.tgz
ENV ALFRESCO_PDF_RENDERER_ARM64_LIB_RPM_URL=https://nexus.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/alfresco-pdf-renderer/1.2/alfresco-pdf-renderer-1.2-linux-arm.tgz

ENV JAVA_OPTS=""

Expand Down Expand Up @@ -52,9 +52,15 @@ RUN ln /usr/bin/${env.project_artifactId}-${env.project_version}.jar /usr/bin/${
dnf --enablerepo=devel 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 && \
tar xf alfresco-pdf-renderer-linux.tgz -C /usr/bin && \
rm -f alfresco-pdf-renderer-linux.tgz && \
if [ "$(uname -m)" = "x86_64" ]; then \
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 && \
rm -f alfresco-pdf-renderer-linux.tgz; \
else \
curl -s -S $ALFRESCO_PDF_RENDERER_ARM64_LIB_RPM_URL -o alfresco-pdf-renderer-linux.tgz && \
tar xf alfresco-pdf-renderer-linux.tgz -C /usr/bin && \
rm -f alfresco-pdf-renderer-linux.tgz; \
fi && \
curl -s -S $EXIFTOOL_URL -o ${EXIFTOOL_FOLDER}.tgz && \
tar xzf ${EXIFTOOL_FOLDER}.tgz && \
yum -y install perl perl-ExtUtils-MakeMaker make && \
Expand Down
7 changes: 5 additions & 2 deletions engines/aio/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
</parent>

<properties>
<image.name>alfresco/alfresco-transform-core-aio</image.name>
<!-- <image.name>alfresco/alfresco-transform-core-aio</image.name> -->
<image.name>alfresco/dev</image.name>
<env.project_artifactId>${project.artifactId}</env.project_artifactId>
</properties>

Expand Down Expand Up @@ -339,7 +340,7 @@
<images>
<!-- QuayIO image -->
<image>
<name>${image.name}:${image.tag}</name>
<name>${image.name}:alfresco-transform-core-aio-pdf</name>
<registry>${image.registry}</registry>
<build>
<buildx>
Expand All @@ -358,6 +359,7 @@
</build>
</image>
<!-- DockerHub image -->
<!--
<image>
<name>${image.name}:${image.tag}</name>
<build>
Expand All @@ -376,6 +378,7 @@
</buildOptions>
</build>
</image>
-->
</images>
</configuration>
<executions>
Expand Down

0 comments on commit 144bf7b

Please sign in to comment.