[ADD]Odoo server dev switch to easily show local versions

This commit is contained in:
Fabien Bourgeois 2016-11-08 15:49:24 +01:00
parent bb59d0e8ee
commit 6948f86014
3 changed files with 7 additions and 1 deletions

View File

@ -28,6 +28,7 @@ services:
dockerfile: Dockerfile.10.dev
image: odoodev:yaltik10
environment:
DEV: 1
ADMIN_PASSWORD: dev
LIST_DB: "True"
DB_MAXCONN: 20

View File

@ -4,3 +4,4 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
RUN pip install --user watchdog
COPY shell10.sh ./
COPY launch10.dev.sh ./launch10.sh
ENV DEV 1

View File

@ -1,7 +1,11 @@
#!/bin/bash
CONF=/opt/odoo/odoo.conf
ODOOCMD="python /opt/odoo/OCB/odoo-bin --config $CONF --dev all --log-handler :DEBUG"
ODOOCMD="python /opt/odoo/OCB/odoo-bin --config $CONF"
if [ "$DEV" == 1 ]; then
ODOOCMD="$ODOOCMD --dev all --log-handler :DEBUG"
fi
# Configuration generation and Odoo launch
bash genconf.sh && $ODOOCMD