Merge pull request #3216 from dstancer/master
WKHTMLtoX changes for Apple silicon
This commit is contained in:
commit
61a186e54b
|
@ -185,6 +185,7 @@ WORKSPACE_SSH_PORT=2222
|
||||||
WORKSPACE_INSTALL_FFMPEG=false
|
WORKSPACE_INSTALL_FFMPEG=false
|
||||||
WORKSPACE_INSTALL_AUDIOWAVEFORM=false
|
WORKSPACE_INSTALL_AUDIOWAVEFORM=false
|
||||||
WORKSPACE_INSTALL_WKHTMLTOPDF=false
|
WORKSPACE_INSTALL_WKHTMLTOPDF=false
|
||||||
|
WORKSPACE_WKHTMLTOPDF_VERSION=0.12.6-1
|
||||||
WORKSPACE_INSTALL_GNU_PARALLEL=false
|
WORKSPACE_INSTALL_GNU_PARALLEL=false
|
||||||
WORKSPACE_INSTALL_AST=true
|
WORKSPACE_INSTALL_AST=true
|
||||||
WORKSPACE_AST_VERSION=1.0.10
|
WORKSPACE_AST_VERSION=1.0.10
|
||||||
|
@ -264,6 +265,7 @@ PHP_FPM_INSTALL_PING=false
|
||||||
PHP_FPM_INSTALL_SSHPASS=false
|
PHP_FPM_INSTALL_SSHPASS=false
|
||||||
PHP_FPM_INSTALL_MAILPARSE=false
|
PHP_FPM_INSTALL_MAILPARSE=false
|
||||||
PHP_FPM_INSTALL_WKHTMLTOPDF=false
|
PHP_FPM_INSTALL_WKHTMLTOPDF=false
|
||||||
|
PHP_FPM_KHTMLTOPDF_VERSION=0.12.6-1
|
||||||
PHP_FPM_INSTALL_XLSWRITER=false
|
PHP_FPM_INSTALL_XLSWRITER=false
|
||||||
PHP_FPM_INSTALL_PHPDECIMAL=false
|
PHP_FPM_INSTALL_PHPDECIMAL=false
|
||||||
PHP_FPM_INSTALL_ZOOKEEPER=false
|
PHP_FPM_INSTALL_ZOOKEEPER=false
|
||||||
|
|
|
@ -162,6 +162,7 @@ services:
|
||||||
- INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
|
- INSTALL_FFMPEG=${WORKSPACE_INSTALL_FFMPEG}
|
||||||
- INSTALL_AUDIOWAVEFORM=${WORKSPACE_INSTALL_AUDIOWAVEFORM}
|
- INSTALL_AUDIOWAVEFORM=${WORKSPACE_INSTALL_AUDIOWAVEFORM}
|
||||||
- INSTALL_WKHTMLTOPDF=${WORKSPACE_INSTALL_WKHTMLTOPDF}
|
- INSTALL_WKHTMLTOPDF=${WORKSPACE_INSTALL_WKHTMLTOPDF}
|
||||||
|
- WKHTMLTOPDF_VERSION=${WORKSPACE_WKHTMLTOPDF_VERSION}
|
||||||
- INSTALL_GNU_PARALLEL=${WORKSPACE_INSTALL_GNU_PARALLEL}
|
- INSTALL_GNU_PARALLEL=${WORKSPACE_INSTALL_GNU_PARALLEL}
|
||||||
- INSTALL_LNAV=${WORKSPACE_INSTALL_LNAV}
|
- INSTALL_LNAV=${WORKSPACE_INSTALL_LNAV}
|
||||||
- INSTALL_PROTOC=${WORKSPACE_INSTALL_PROTOC}
|
- INSTALL_PROTOC=${WORKSPACE_INSTALL_PROTOC}
|
||||||
|
@ -269,6 +270,7 @@ services:
|
||||||
- INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
|
- INSTALL_FFMPEG=${PHP_FPM_FFMPEG}
|
||||||
- INSTALL_AUDIOWAVEFORM=${PHP_FPM_AUDIOWAVEFORM}
|
- INSTALL_AUDIOWAVEFORM=${PHP_FPM_AUDIOWAVEFORM}
|
||||||
- INSTALL_WKHTMLTOPDF=${PHP_FPM_INSTALL_WKHTMLTOPDF}
|
- INSTALL_WKHTMLTOPDF=${PHP_FPM_INSTALL_WKHTMLTOPDF}
|
||||||
|
- WKHTMLTOPDF_VERSION=${WORKSPACE_WKHTMLTOPDF_VERSION}
|
||||||
- INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
|
- INSTALL_XHPROF=${PHP_FPM_INSTALL_XHPROF}
|
||||||
- INSTALL_XMLRPC=${PHP_FPM_INSTALL_XMLRPC}
|
- INSTALL_XMLRPC=${PHP_FPM_INSTALL_XMLRPC}
|
||||||
- INSTALL_PHPDECIMAL=${PHP_FPM_INSTALL_PHPDECIMAL}
|
- INSTALL_PHPDECIMAL=${PHP_FPM_INSTALL_PHPDECIMAL}
|
||||||
|
|
|
@ -1036,9 +1036,11 @@ RUN if [ ${INSTALL_AUDIOWAVEFORM} = true ]; then \
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ARG INSTALL_WKHTMLTOPDF=false
|
ARG INSTALL_WKHTMLTOPDF=false
|
||||||
|
ARG WKHTMLTOPDF_VERSION=0.12.6-1
|
||||||
|
|
||||||
RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \
|
RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \
|
||||||
apt-get install -yqq \
|
ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
|
||||||
|
&& apt-get install -yqq \
|
||||||
libxrender1 \
|
libxrender1 \
|
||||||
libfontconfig1 \
|
libfontconfig1 \
|
||||||
libx11-dev \
|
libx11-dev \
|
||||||
|
@ -1049,8 +1051,8 @@ RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \
|
||||||
xfonts-base \
|
xfonts-base \
|
||||||
xfonts-75dpi \
|
xfonts-75dpi \
|
||||||
wget \
|
wget \
|
||||||
&& wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.stretch_amd64.deb \
|
&& wget "https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox_0.12.6-1.stretch_${ARCH}.deb" \
|
||||||
&& dpkg -i wkhtmltox_0.12.6-1.stretch_amd64.deb \
|
&& dpkg -i "wkhtmltox_${WKHTMLTOPDF_VERSION}.stretch_${ARCH}.deb" \
|
||||||
&& apt -f install \
|
&& apt -f install \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
|
@ -1445,9 +1445,11 @@ RUN if [ ${INSTALL_AUDIOWAVEFORM} = true ]; then \
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
ARG INSTALL_WKHTMLTOPDF=false
|
ARG INSTALL_WKHTMLTOPDF=false
|
||||||
|
ARG WKHTMLTOPDF_VERSION=0.12.6-1
|
||||||
|
|
||||||
RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \
|
RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \
|
||||||
apt-get install -y \
|
ARCH=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) \
|
||||||
|
&& apt-get install -y \
|
||||||
libxrender1 \
|
libxrender1 \
|
||||||
libfontconfig1 \
|
libfontconfig1 \
|
||||||
libx11-dev \
|
libx11-dev \
|
||||||
|
@ -1458,8 +1460,8 @@ RUN if [ ${INSTALL_WKHTMLTOPDF} = true ]; then \
|
||||||
xfonts-base \
|
xfonts-base \
|
||||||
xfonts-75dpi \
|
xfonts-75dpi \
|
||||||
wget \
|
wget \
|
||||||
&& wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.bionic_amd64.deb \
|
&& wget "https://github.com/wkhtmltopdf/packaging/releases/download/${WKHTMLTOPDF_VERSION}/wkhtmltox_0.12.6-1.bionic_${ARCH}.deb" \
|
||||||
&& dpkg -i wkhtmltox_0.12.6-1.bionic_amd64.deb \
|
&& dpkg -i "wkhtmltox_${WKHTMLTOPDF_VERSION}.bionic_${ARCH}.deb" \
|
||||||
&& apt -f install \
|
&& apt -f install \
|
||||||
;fi
|
;fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue