From 52b72538114fdf3de5b71ce399bb0992d2748d75 Mon Sep 17 00:00:00 2001 From: Kuo-tung Kao Date: Wed, 14 Oct 2015 16:19:45 +0800 Subject: add "registry" flag to "tools/build.py" With registry flag, build image using `tools/build.py --registry 172.22.2.81:4000` the image name looks like `172.22.2.81:4000/kollaglue/data` When user use kolla-ansible, user set `docker_registry` to `172.22.2.81:4000` in `/etc/kolla/globals.yml`. Build image using `tools/build.py -n abcd` the image name looks like `abcd/data` When user use kolla-ansible, user set `docker_namespace:` to `abcd` in `/etc/kolla/globals.yml`. build image using `tools/build.py -n abcd --registry 172.22.2.81:4000` the image name looks like `abcd/data` When user use kolla-ansible, user set `docker_namespace:` to `abcd` in `/etc/kolla/globals.yml`. user set `docker_registry` to `172.22.2.81:4000` in `/etc/kolla/globals.yml`. With the feature, it will reduce user confusing and mistaking. Change-Id: I18ac7a3ccec032888e35f5e9a79fc190760cc8a0 Closes-Bug: #1505056 --- etc/kolla/kolla-build.conf | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/kolla/kolla-build.conf b/etc/kolla/kolla-build.conf index c4281248f..dc3e20816 100644 --- a/etc/kolla/kolla-build.conf +++ b/etc/kolla/kolla-build.conf @@ -42,6 +42,8 @@ # Path to custome file to be addded at end of Dockerfiles for final images #include_footer = /path/to/footer_file +# The registry host. The default registry host is Docker Hub. +#registry = None # Provide location of sources for source install builds. # Example: -- cgit v1.2.3