[ADD]Odoo server dev switch to easily show local versions
This commit is contained in:
parent
bb59d0e8ee
commit
6948f86014
@ -28,6 +28,7 @@ services:
|
|||||||
dockerfile: Dockerfile.10.dev
|
dockerfile: Dockerfile.10.dev
|
||||||
image: odoodev:yaltik10
|
image: odoodev:yaltik10
|
||||||
environment:
|
environment:
|
||||||
|
DEV: 1
|
||||||
ADMIN_PASSWORD: dev
|
ADMIN_PASSWORD: dev
|
||||||
LIST_DB: "True"
|
LIST_DB: "True"
|
||||||
DB_MAXCONN: 20
|
DB_MAXCONN: 20
|
||||||
|
@ -4,3 +4,4 @@ MAINTAINER Yaltik - Fabien Bourgeois <fabien@yaltik.com>
|
|||||||
RUN pip install --user watchdog
|
RUN pip install --user watchdog
|
||||||
COPY shell10.sh ./
|
COPY shell10.sh ./
|
||||||
COPY launch10.dev.sh ./launch10.sh
|
COPY launch10.dev.sh ./launch10.sh
|
||||||
|
ENV DEV 1
|
||||||
|
@ -1,7 +1,11 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
CONF=/opt/odoo/odoo.conf
|
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
|
# Configuration generation and Odoo launch
|
||||||
bash genconf.sh && $ODOOCMD
|
bash genconf.sh && $ODOOCMD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user