aboutsummaryrefslogtreecommitdiff
path: root/docker/openstack-base
diff options
context:
space:
mode:
authorSam Yaple <sam@yaple.net>2015-09-03 10:32:42 +0000
committerSam Yaple <sam@yaple.net>2015-09-03 10:37:45 +0000
commit9d3f3f28e24388316f01eb5683e73ea1f25e3d91 (patch)
treea1e89cac5376a10b614c01fe73c9f315c1e28361 /docker/openstack-base
parent1cbfbcc48d7c0b206f3bb33a359cbaecc8464a44 (diff)
downloadkolla-9d3f3f28e24388316f01eb5683e73ea1f25e3d91.tar.gz
kolla-9d3f3f28e24388316f01eb5683e73ea1f25e3d91.zip
Create openstack-base container
This creates and moves the dependencies for Ubuntu into a common openstack-base container. This commit shows dramatically smaller sizes for all non-openstack containers. The Openstack container remain the same size. Change-Id: I2f46420d4b9edcfddda374caddcce906fc708f6c Partially-Implements: blueprint openstack-common-container
Diffstat (limited to 'docker/openstack-base')
-rw-r--r--docker/openstack-base/Dockerfile.j245
1 files changed, 45 insertions, 0 deletions
diff --git a/docker/openstack-base/Dockerfile.j2 b/docker/openstack-base/Dockerfile.j2
new file mode 100644
index 000000000..1e33530f7
--- /dev/null
+++ b/docker/openstack-base/Dockerfile.j2
@@ -0,0 +1,45 @@
+FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+{% if install_type == 'source' %}
+ {% if base_distro in ['ubuntu', 'debian'] %}
+
+RUN apt-get install -y --no-install-recommends \
+ curl \
+ ca-certificates \
+ build-essential \
+ python-dev \
+ libssl-dev \
+ libmariadbclient-dev \
+ libxslt1-dev \
+ libffi-dev \
+ libyaml-dev \
+ pkg-config \
+ && apt-get clean
+
+ {% endif %}
+
+RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \
+ && python get-pip.py \
+ && rm get-pip.py \
+ && pip --no-cache-dir install \
+ python-barbicanclient \
+ python-ceilometerclient \
+ python-congressclient \
+ python-designateclient \
+ python-heatclient \
+ python-ironicclient \
+ python-magnumclient \
+ python-manilaclient \
+ python-mistralclient \
+ python-muranoclient \
+ python-saharaclient \
+ python-swiftclient \
+ python-troveclient \
+ python-tuskarclient \
+ python-zaqarclient \
+ python-openstackclient \
+ MySQL-python \
+ numpy
+
+{% endif %}