From 4a4090c169cbb79de2d267b6e442065d591eda14 Mon Sep 17 00:00:00 2001 From: Fabien Bourgeois Date: Mon, 5 Jun 2017 08:23:45 +0200 Subject: [PATCH] [IMP]GOLEM better dev files --- odoo/golem/Dockerfile.v3.dev | 7 +++++++ odoo/golem/dev.yml | 2 +- odoo/golem/launch10.dev.sh | 11 +++++++++++ odoo/golem/shell10.sh | 3 +++ 4 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 odoo/golem/Dockerfile.v3.dev create mode 100644 odoo/golem/launch10.dev.sh create mode 100644 odoo/golem/shell10.sh diff --git a/odoo/golem/Dockerfile.v3.dev b/odoo/golem/Dockerfile.v3.dev new file mode 100644 index 0000000..a56c93b --- /dev/null +++ b/odoo/golem/Dockerfile.v3.dev @@ -0,0 +1,7 @@ +FROM registry.yaltik.net/golem:yaltikv3 +MAINTAINER Yaltik - Fabien Bourgeois + +RUN pip install --user watchdog +COPY shell10.sh ./ +COPY launch10.dev.sh ./launch10.sh +ENV DEV 1 diff --git a/odoo/golem/dev.yml b/odoo/golem/dev.yml index cbc79d7..2eb40f0 100644 --- a/odoo/golem/dev.yml +++ b/odoo/golem/dev.yml @@ -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 diff --git a/odoo/golem/launch10.dev.sh b/odoo/golem/launch10.dev.sh new file mode 100644 index 0000000..eb7c5f7 --- /dev/null +++ b/odoo/golem/launch10.dev.sh @@ -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 diff --git a/odoo/golem/shell10.sh b/odoo/golem/shell10.sh new file mode 100644 index 0000000..c1ee521 --- /dev/null +++ b/odoo/golem/shell10.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +python OCB/odoo-bin shell -c odoo.conf -d "$@" --xmlrpc-port=8999