diff --git a/docker_build b/docker_build index da8156dad0e2575488223e04e3a3e0caadec66ab_ZG9ja2VyX2J1aWxk..2d61c36aae0dd066975d1d1707c040cc3fedbaee_ZG9ja2VyX2J1aWxk 100755 --- 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))