Skip to content

Commit d98cfdf

Browse files
ludovic-gascd-fence
authored andcommitted
[REF] Odoo 16.0: Add support of ppc64le and arm64
1 parent d04d885 commit d98cfdf

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

16.0/Dockerfile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
66
# Generate locale C.UTF-8 for postgres and general locale data
77
ENV LANG C.UTF-8
88

9+
# Retrieve the target architecture to install the correct wkhtmltopdf package
10+
ARG TARGETARCH
11+
912
# Install some deps, lessc and less-plugin-clean-css, and wkhtmltopdf
1013
RUN apt-get update && \
1114
apt-get install -y --no-install-recommends \
@@ -32,9 +35,15 @@ RUN apt-get update && \
3235
python3-watchdog \
3336
python3-xlrd \
3437
python3-xlwt \
35-
xz-utils \
36-
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.buster_amd64.deb \
37-
&& echo 'ea8277df4297afc507c61122f3c349af142f31e5 wkhtmltox.deb' | sha1sum -c - \
38+
xz-utils && \
39+
WKHTMLTOPDF_ARCH=${TARGETARCH} && \
40+
case ${TARGETARCH} in \
41+
"amd64" | "") WKHTMLTOPDF_ARCH=amd64 && WKHTMLTOPDF_SHA=9df8dd7b1e99782f1cfa19aca665969bbd9cc159 ;; \
42+
"arm64") WKHTMLTOPDF_SHA=58c84db46b11ba0e14abb77a32324b1c257f1f22 ;; \
43+
"ppc64le") WKHTMLTOPDF_ARCH=ppc64el && WKHTMLTOPDF_SHA=7ed8f6dcedf5345a3dd4eeb58dc89704d862f9cd ;; \
44+
esac \
45+
&& curl -o wkhtmltox.deb -sSL https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-3/wkhtmltox_0.12.6.1-3.bullseye_${WKHTMLTOPDF_ARCH}.deb \
46+
&& echo ${WKHTMLTOPDF_SHA} wkhtmltox.deb | sha1sum -c - \
3847
&& apt-get install -y --no-install-recommends ./wkhtmltox.deb \
3948
&& rm -rf /var/lib/apt/lists/* wkhtmltox.deb
4049

0 commit comments

Comments
 (0)