diff options
| author | Steven Dake <stdake@cisco.com> | 2015-09-29 03:38:51 -0700 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-09-29 03:45:38 -0700 |
| commit | 571c5bc87881c5326ca02e0e9472c6c15ed390fa (patch) | |
| tree | e56b126f849cc076b60445f252c1b98b2025661d /docker/openstack-base | |
| parent | 655d88e3a1054b61d9ede8b99c5ee95f11948227 (diff) | |
| download | kolla-571c5bc87881c5326ca02e0e9472c6c15ed390fa.tar.gz kolla-571c5bc87881c5326ca02e0e9472c6c15ed390fa.zip | |
Make a openstack-common container for CentOS variants
Only implements CentOS (RPM family) binary in openstack-common.
Change-Id: I5249d0ffaf4c0c946ee2347d5519391ded160cea
Partially Implments: blueprint openstack-common-container
Diffstat (limited to 'docker/openstack-base')
| -rw-r--r-- | docker/openstack-base/Dockerfile.j2 | 38 |
1 files changed, 35 insertions, 3 deletions
diff --git a/docker/openstack-base/Dockerfile.j2 b/docker/openstack-base/Dockerfile.j2 index 6a0604595..3e1350516 100644 --- a/docker/openstack-base/Dockerfile.j2 +++ b/docker/openstack-base/Dockerfile.j2 @@ -1,13 +1,45 @@ FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} MAINTAINER Kolla Project (https://launchpad.net/kolla) -{% if install_type == 'source' %} +{% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %} +RUN yum -y install \ + git \ + iproute \ + mariadb-libs \ + MySQL-python \ + openssl \ + patch \ + && yum clean all +{% endif %} + +{% if install_type == 'binary' %} {% if base_distro in ['fedora', 'centos', 'oraclelinux', 'rhel'] %} -RUN yum -y install patch \ +RUN yum -y install \ + python-barbicanclient \ + python-ceilometerclient \ + python-congressclient \ + python-designateclient \ + python-heatclient \ + python-ironicclient \ + python-magnumclient \ + python-manilaclient \ + python-mistralclient \ + python-muranoclient \ + python-pip \ + python-saharaclient \ + python-swiftclient \ + python-troveclient \ + python-tuskarclient \ + python-zaqarclient \ + python-openstackclient \ + MySQL-python \ && yum clean all - {% elif base_distro in ['ubuntu', 'debian'] %} + {% endif %} +{% elif install_type == 'source' %} + + {% if base_distro in ['ubuntu', 'debian'] %} RUN apt-get install -y --no-install-recommends \ curl \ |
