[IMP]Odoo Dev 10 base image with PGCLI inside

This commit is contained in:
Fabien BOURGEOIS 2018-03-11 12:40:29 +01:00
parent 4d150ab04f
commit a36850223e
3 changed files with 9 additions and 1 deletions

View File

@ -1,6 +1,10 @@
FROM registry.yaltik.net/odoo:yaltik10
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
# 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

3
odoo/odoo/pgcli.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
./.local/bin/pgcli postgresql://$POSTGRES_USER:$POSTGRES_PASSWORD@${DB_HOST:=postgres}

View File

@ -1,8 +1,9 @@
FROM debian:jessie
MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
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