aboutsummaryrefslogtreecommitdiff
path: root/kolla/cmd
diff options
context:
space:
mode:
authorJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-05-23 10:15:38 +0800
committerJeffrey Zhang <jeffrey.zhang@99cloud.net>2016-05-31 01:41:48 +0000
commit4044a3475e51f763f8d4f3feda003f0a4837f177 (patch)
tree0f2931ac4ccd19dd60f813a12dd3810bc3cd1ba9 /kolla/cmd
parent3545e6d503c7451921333134fb75d3fef3713952 (diff)
downloadkolla-4044a3475e51f763f8d4f3feda003f0a4837f177.tar.gz
kolla-4044a3475e51f763f8d4f3feda003f0a4837f177.zip
Pin the base distro release version
Pin the base distro release version in the master branch(Newton). Only one distro version is supported. The supported versions are: * CentOS: 7 * RedHat: 7 * OracleLinux: 7 * Debian: 8 * Ubuntu: 14.04 NOTE: Kolla will move to Ubuntu 16.04 in the Newton cycle DocImpact TrivialFix Change-Id: I32c0edbee4de14c8a0cc7c961d566e84d70f19a4
Diffstat (limited to 'kolla/cmd')
-rwxr-xr-xkolla/cmd/build.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/kolla/cmd/build.py b/kolla/cmd/build.py
index bbd9788ad..ef17cd0ed 100755
--- a/kolla/cmd/build.py
+++ b/kolla/cmd/build.py
@@ -353,11 +353,6 @@ class KollaWorker(object):
self.namespace = conf.namespace
self.base = conf.base
self.base_tag = conf.base_tag
- if self.base == 'ubuntu' and self.base_tag == 'latest':
- self.base_tag = '14.04'
- # TODO(inc0): This will override default latest, which is xenial
- # if someone actually set up latest in their conf, it will be
- # overriden as well
self.install_type = conf.install_type
self.tag = conf.tag
self.images = list()
@@ -481,6 +476,8 @@ class KollaWorker(object):
def create_dockerfiles(self):
kolla_version = version.version_info.cached_version_string()
+ supported_distro_release = common_config.DISTRO_RELEASE.get(
+ self.base)
for path in self.docker_build_paths:
template_name = "Dockerfile.j2"
env = jinja2.Environment( # nosec: not used to render HTML
@@ -489,6 +486,7 @@ class KollaWorker(object):
values = {'base_distro': self.base,
'base_image': self.conf.base_image,
'base_distro_tag': self.base_tag,
+ 'supported_distro_release': supported_distro_release,
'install_metatype': self.install_metatype,
'image_prefix': self.image_prefix,
'install_type': self.install_type,