Inject qt-patched wkhtmltopdf to Odoo

This commit is contained in:
Disassembler 2021-03-21 11:24:17 +01:00
parent 2877cd2748
commit dd922b7775
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
2 changed files with 14 additions and 5 deletions

View File

@ -1,5 +1,5 @@
{ {
"version": "14.0.0-210320", "version": "14.0.0-210321",
"meta": { "meta": {
"title": "Odoo", "title": "Odoo",
"desc-cs": "Sada aplikací pro správu organizace", "desc-cs": "Sada aplikací pro správu organizace",
@ -8,7 +8,7 @@
}, },
"containers": { "containers": {
"odoo": { "odoo": {
"image": "odoo_14.0.0-210320", "image": "odoo_14.0.0-210321",
"depends": [ "depends": [
"odoo-postgres" "odoo-postgres"
], ],

View File

@ -1,12 +1,21 @@
IMAGE odoo_14.0.0-210320 IMAGE odoo_14.0.0-210321
FROM alpine3.12-python3.8_3.8.5-210106 FROM alpine3.12-python3.8_3.8.5-210106
RUN EOF RUN EOF
# Install runtime dependencies # Install runtime dependencies
apk --no-cache add libffi libjpeg-turbo libpq nodejs wkhtmltopdf apk --no-cache add libffi libjpeg-turbo libpq nodejs ttf-dejavu ttf-droid ttf-freefont ttf-liberation ttf-ubuntu-font-family wkhtmltopdf
# Install build dependencies # Install build dependencies
apk --no-cache add --virtual .deps build-base git libffi-dev libjpeg-turbo-dev libxml2-dev libxslt-dev linux-headers openldap-dev postgresql-dev python3-dev apk --no-cache add --virtual .deps build-base git libffi-dev libjpeg-turbo-dev libxml2-dev libxslt-dev linux-headers msttcorefonts-installer openldap-dev postgresql-dev python3-dev
# Update fonts
update-ms-fonts
fc-cache -f
# Replace wkhtmltopdf
# Extracted from https://github.com/Surnet/docker-wkhtmltopdf
# wkhtmltopdf 0.12.7 is expected to support Alpine linux out of the box
wget https://repo.spotter.cz/libwkhtmltox.tar.xz -O - | tar -xJf - -C /
# Clone Odoo repository # Clone Odoo repository
git clone -b 14.0 --depth 1 https://github.com/odoo/odoo.git /srv/odoo git clone -b 14.0 --depth 1 https://github.com/odoo/odoo.git /srv/odoo