From 9e742ca400d2718ffe18cf053f8aef1353a80942 Mon Sep 17 00:00:00 2001 From: Tulio Ruiz Date: Wed, 11 Oct 2017 13:52:11 -0500 Subject: [PATCH] [FIX] Install dev packages for postgres to avoid the exception. We need to install postgresql-server-dev so the pg_config commands shows the proper version, at the moment it shows 10.0 even when only the 9.6 is installed. This issue was fixed in pycopg 2.7, but not in the previous versions: https://github.com/psycopg/psycopg2/issues/594 This patch only apply for the images that uses older pycopg versions, that is 8.0 and 9.0 because 10 and 11 use 2.7. --- odoo80/scripts/build-image.sh | 1 + odoo90/scripts/build-image.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/odoo80/scripts/build-image.sh b/odoo80/scripts/build-image.sh index 83c01cef..e57d7f5b 100644 --- a/odoo80/scripts/build-image.sh +++ b/odoo80/scripts/build-image.sh @@ -52,6 +52,7 @@ DPKG_DEPENDS="nodejs \ postgresql-${PSQL_VERSION} \ postgresql-client-${PSQL_VERSION} \ postgresql-contrib-${PSQL_VERSION} \ + postgresql-server-dev-${PSQL_VERSION} \ pgbadger \ python-cups" DPKG_UNNECESSARY="" diff --git a/odoo90/scripts/build-image.sh b/odoo90/scripts/build-image.sh index 93844ad3..8c1682bc 100644 --- a/odoo90/scripts/build-image.sh +++ b/odoo90/scripts/build-image.sh @@ -52,6 +52,7 @@ DPKG_DEPENDS="nodejs \ postgresql-${PSQL_VERSION} \ postgresql-client-${PSQL_VERSION} \ postgresql-contrib-${PSQL_VERSION} \ + postgresql-server-dev-${PSQL_VERSION} \ pgbadger" DPKG_UNNECESSARY="" NPM_OPTS="-g"