aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-05-04 08:59:33 +0000
committerGerrit Code Review <review@openstack.org>2017-05-04 08:59:33 +0000
commit1d9b3a3f87dee53b3bc5ec3a1b6c841ef6dc64a9 (patch)
tree97b02fe33759fda12cbb2e2899b495434cc4b748
parentd2b07c553d2395621a4d28fbbe15a153ddaff584 (diff)
parentfe777f4e76263a10def1e2e507c429971e05cd04 (diff)
downloadkolla-1d9b3a3f87dee53b3bc5ec3a1b6c841ef6dc64a9.tar.gz
kolla-1d9b3a3f87dee53b3bc5ec3a1b6c841ef6dc64a9.zip
Merge "Update oraclelinux tag to new slim base image"
-rwxr-xr-xkolla/common/config.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/kolla/common/config.py b/kolla/common/config.py
index 429efb6cc..5c096da58 100755
--- a/kolla/common/config.py
+++ b/kolla/common/config.py
@@ -20,6 +20,13 @@ from kolla.version import version_info as version
BASE_OS_DISTRO = ['centos', 'rhel', 'ubuntu', 'oraclelinux', 'debian']
BASE_ARCH = ['x86_64']
+DEFAULT_BASE_TAGS = {
+ 'centos': '7',
+ 'rhel': '7',
+ 'oraclelinux': '7-slim',
+ 'debian': '8',
+ 'ubuntu': '16.04',
+}
DISTRO_RELEASE = {
'centos': '7',
'rhel': '7',
@@ -876,7 +883,7 @@ def parse(conf, args, usage=None, prog=None,
# NOTE(jeffrey4l): set the default base tag based on the
# base option
- conf.set_default('base_tag', DISTRO_RELEASE.get(conf.base))
+ conf.set_default('base_tag', DEFAULT_BASE_TAGS.get(conf.base))
if not conf.base_image:
conf.base_image = conf.base