From a36850223e9219058e09250a269e3576882a42b4 Mon Sep 17 00:00:00 2001 From: Fabien BOURGEOIS Date: Sun, 11 Mar 2018 12:40:29 +0100 Subject: [PATCH] [IMP]Odoo Dev 10 base image with PGCLI inside --- odoo/odoo/Dockerfile.10.dev | 4 ++++ odoo/odoo/pgcli.sh | 3 +++ odoo/scripts/Dockerfile | 3 ++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 odoo/odoo/pgcli.sh diff --git a/odoo/odoo/Dockerfile.10.dev b/odoo/odoo/Dockerfile.10.dev index d358955..e11ebd0 100644 --- a/odoo/odoo/Dockerfile.10.dev +++ b/odoo/odoo/Dockerfile.10.dev @@ -1,6 +1,10 @@ FROM registry.yaltik.net/odoo:yaltik10 MAINTAINER Yaltik - Fabien Bourgeois +# PostgreSQL CLI +RUN pip install --user pgcli +COPY pgcli.sh ./ +# Odoo specific RUN pip install --user watchdog COPY shell10.sh ./ COPY launch10.dev.sh ./launch10.sh diff --git a/odoo/odoo/pgcli.sh b/odoo/odoo/pgcli.sh new file mode 100644 index 0000000..1799bbd --- /dev/null +++ b/odoo/odoo/pgcli.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +./.local/bin/pgcli postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@${DB_HOST:=postgres} diff --git a/odoo/scripts/Dockerfile b/odoo/scripts/Dockerfile index 71ae8cc..0a7b74d 100644 --- a/odoo/scripts/Dockerfile +++ b/odoo/scripts/Dockerfile @@ -1,8 +1,9 @@ FROM debian:jessie MAINTAINER Yaltik - Fabien Bourgeois -RUN apt-get update && apt-get install -y --no-install-recommends python2.7-minimal python-pip +RUN apt-get update && apt-get install -y --no-install-recommends python2.7-minimal python-pip python-psycopg2 RUN pip2 install odoorpc +RUN pip2 install pgcli # Packages cleanup RUN apt-get purge -y --auto-remove && apt-get clean RUN useradd odoo -m -s /bin/bash