From 3b8b398180ee80a66c84cc987922dfe37da2e1bb Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Sun, 26 May 2024 22:59:33 +0200 Subject: [PATCH] [FIX]Odoo 14 OL8 : need to compile postgres tools --- odoo/odoo/Dockerfile.14.ol8 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/odoo/odoo/Dockerfile.14.ol8 b/odoo/odoo/Dockerfile.14.ol8 index b6262af..0ddeb8c 100644 --- a/odoo/odoo/Dockerfile.14.ol8 +++ b/odoo/odoo/Dockerfile.14.ol8 @@ -11,11 +11,18 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] # Odoo dependencies from OL repositories, python38 and WKHTML # Then PG10 and fonts RUN yum -y groupinstall "Development Tools" && \ - yum -y install zlib-devel bzip2-devel openssl openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap xz-devel git mercurial libpng libjpeg libXext curl xorg-x11-font-utils fontconfig libevent-devel libxml2-devel libxslt-devel openldap-devel openjpeg2 freetype-devel libjpeg-turbo-devel libtiff-devel kernel-devel mailcap nodejs npm python38-devel python38-pip postgresql libpq libpq-devel liberation-fonts && \ + yum -y install zlib-devel bzip2-devel openssl openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel libpcap xz-devel git mercurial libpng libjpeg libXext curl xorg-x11-font-utils fontconfig libevent-devel libxml2-devel libxslt-devel openldap-devel openjpeg2 freetype-devel libjpeg-turbo-devel libtiff-devel kernel-devel mailcap nodejs npm python38-devel python38-pip libpq libpq-devel liberation-fonts && \ yum -y install https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox-0.12.5-1.centos8.x86_64.rpm && \ yum clean all && \ /usr/sbin/update-alternatives --set python3 /usr/bin/python3.8 +# PostgreSQL 12 : missing packges on official v12 +WORKDIR /tmp/ +RUN curl -LO https://ftp.postgresql.org/pub/source/v12.19/postgresql-12.19.tar.gz && \ + tar xzf postgresql-12.19.tar.gz +WORKDIR /tmp/postgresql-12.19 +RUN ./configure && make && make install && ln -s /usr/local/pgsql/bin/* /usr/local/bin/ + # Install NPM dependencies RUN npm install -g less@3 less-plugin-clean-css@1.5.1 rtlcss@2.6.2