# HG changeset patch
# User Vincent Hatakeyama <vincent.hatakeyama@xcg-consulting.fr>
# Date 1470040527 -7200
#      Mon Aug 01 10:35:27 2016 +0200
# Node ID 2d61c36aae0dd066975d1d1707c040cc3fedbaee
# Parent  da8156dad0e2575488223e04e3a3e0caadec66ab
repository can be changed in setup.cfg

diff --git a/docker_build b/docker_build
--- a/docker_build
+++ b/docker_build
@@ -1,8 +1,7 @@
 #!/bin/zsh
 # template version 2.7
 
-# TODO add a way to bypass the value, maybe with a key in the setup.cfg file
-repository=dockerhub.xcg.io
+repository=$(python -B -c "import ConfigParser ; c = ConfigParser.ConfigParser() ; c.read('${project_home}/setup.cfg') ; print c.get('odoo_scripts', 'repository', 'dockerhub.xcg.io')")
 # TODO add a way to bypass the value, maybe with a key in the setup.cfg file
 project_home=$(dirname $0)/..
 image=$(basename $(readlink -f $project_home))