Skip to content
This repository was archived by the owner on Aug 16, 2023. It is now read-only.

[FIX] odoo100, odoo110: Using wkhtmltopdf 0.12.5-1 recommended by Odoo #390

Merged
merged 6 commits into from
Mar 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions odoo100/scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ set -e
ARCH="$( dpkg --print-architecture )"
NODE_UPSTREAM_REPO="deb http://deb.nodesource.com/node_5.x trusty main"
NODE_UPSTREAM_KEY="https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
WKHTMLTOX_URL="https://downloads.wkhtmltopdf.org/0.12/0.12.4/wkhtmltox-0.12.4_linux-generic-${ARCH}.tar.xz"
ODOO_DEPENDENCIES="git+https://github.com/vauxoo/[email protected] \
git+https://github.com/vauxoo/[email protected] \
git+https://github.com/vauxoo/[email protected] \
git+https://github.com/vauxoo/pylint-odoo@master"
WKHTMLTOX_URL="https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.${DISTRIB_CODENAME}_${ARCH}.deb"
ODOO_DEPENDENCIES=""
DEPENDENCIES_FILE="/usr/share/vx-docker-internal/odoo100/10.0-full_requirements.txt"
GEOIP2_URLS="https://s3.vauxoo.com/GeoLite2-City_20191224.tar.gz \
https://s3.vauxoo.com/GeoLite2-Country_20191224.tar.gz \
Expand Down Expand Up @@ -59,8 +56,7 @@ PIP_OPTS="--upgrade \
PIP_DEPENDS_EXTRA="requirements-parser==0.1.0 \
setuptools==33.1.1 \
git+https://github.com/vauxoo/pylint-odoo@master#egg=pylint-odoo \
git+https://github.com/vauxoo/panama-dv@master#egg=ruc \
hg+https://bitbucket.org/birkenfeld/sphinx-contrib@default#egg=sphinxcontrib-youtube&subdirectory=youtube"
git+https://github.com/vauxoo/panama-dv@master#egg=ruc"

PIP_DPKG_BUILD_DEPENDS=""

Expand Down
4 changes: 2 additions & 2 deletions odoo100/scripts/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ function collect_pip_dependencies(){
function wkhtmltox_install(){
URL="${1}"
DIR="$( mktemp -d )"
wget -qO- "${URL}" | tar -xJ -C "${DIR}/"
mv "${DIR}/wkhtmltox/bin/wkhtmltopdf" "/usr/local/bin/wkhtmltopdf"
wget -qO "${DIR}/wkhtmltox.deb" "${URL}"
apt update && apt install "${DIR}/wkhtmltox.deb"
rm -rf "${DIR}"
}

Expand Down
7 changes: 2 additions & 5 deletions odoo110/scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ set -e
ARCH="$( dpkg --print-architecture )"
NODE_UPSTREAM_REPO="deb http://deb.nodesource.com/node_5.x trusty main"
NODE_UPSTREAM_KEY="https://deb.nodesource.com/gpgkey/nodesource.gpg.key"
WKHTMLTOX_URL="https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-${ARCH}.tar.xz"
WKHTMLTOX_URL="https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.${DISTRIB_CODENAME}_${ARCH}.deb"
RUBY_VERSION="2.5.3"
ODOO_DEPENDENCIES="git+https://github.com/vauxoo/[email protected] \
git+https://github.com/vauxoo/[email protected] \
git+https://github.com/vauxoo/[email protected] \
git+https://github.com/vauxoo/pylint-odoo@master"
ODOO_DEPENDENCIES=""
DEPENDENCIES_FILE="/usr/share/vx-docker-internal/odoo110/11.0-full_requirements.txt"
GEOIP2_URLS="https://s3.vauxoo.com/GeoLite2-City_20191224.tar.gz \
https://s3.vauxoo.com/GeoLite2-Country_20191224.tar.gz \
Expand Down
4 changes: 2 additions & 2 deletions odoo110/scripts/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ function collect_pip_dependencies(){
function wkhtmltox_install(){
URL="${1}"
DIR="$( mktemp -d )"
wget -qO- "${URL}" | tar -xJ -C "${DIR}/"
mv "${DIR}/wkhtmltox/bin/wkhtmltopdf" "/usr/local/bin/wkhtmltopdf"
wget -qO "${DIR}/wkhtmltox.deb" "${URL}"
apt update && apt install "${DIR}/wkhtmltox.deb"
rm -rf "${DIR}"
}

Expand Down