[IMP]GOLEM better dev files

This commit is contained in:
Fabien Bourgeois 2017-06-05 08:23:45 +02:00
parent dbe775daa5
commit 4a4090c169
4 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,7 @@
FROM registry.yaltik.net/golem:yaltikv3
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

@ -17,7 +17,7 @@ services:
service: odoodev10
build:
context: .
dockerfile: Dockerfile.v3
dockerfile: Dockerfile.v3.dev
image: golem:yaltikdev10
volumes:
- /home/fabien/bak/code/odoo/yaltik:/opt/odoo/custom-addons/yaltik:ro

View File

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

3
odoo/golem/shell10.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
python OCB/odoo-bin shell -c odoo.conf -d "$@" --xmlrpc-port=8999