Skip to content

Commit

Permalink
[FIX] Install dev packages for postgres to avoid the exception.
Browse files Browse the repository at this point in the history
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: psycopg/psycopg2#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.
  • Loading branch information
ruiztulio committed Oct 11, 2017
1 parent 01f5c19 commit 9e742ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions odoo80/scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down
1 change: 1 addition & 0 deletions odoo90/scripts/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 9e742ca

Please sign in to comment.