diff options
| author | Michal Rostecki <mrostecki@mirantis.com> | 2015-11-18 07:22:17 +0100 |
|---|---|---|
| committer | Michal Rostecki <mrostecki@mirantis.com> | 2015-11-27 10:22:17 +0100 |
| commit | febcb600f122dc644f8a05c4a7697a39e9157834 (patch) | |
| tree | e7cdc8485f7613dc8c52a85d0a252c7c24a9d03e /docker/kolla-ansible | |
| parent | 563b56126991cfc2f3378f803e071ad79aca3487 (diff) | |
| download | kolla-febcb600f122dc644f8a05c4a7697a39e9157834.tar.gz kolla-febcb600f122dc644f8a05c4a7697a39e9157834.zip | |
Source installation in virtualenv
Use virtualenv for installation of OpenStack projects and
dependencies to avoid conflicts with Python libraries installed
by non-OpenStack binary packages.
Change-Id: I21ecd673b2e93335b1d3dd4e279e940c9d694c3c
Implements: blueprint virtualenv
Diffstat (limited to 'docker/kolla-ansible')
| -rw-r--r-- | docker/kolla-ansible/Dockerfile.j2 | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/docker/kolla-ansible/Dockerfile.j2 b/docker/kolla-ansible/Dockerfile.j2 index 8d3834662..e25ab520d 100644 --- a/docker/kolla-ansible/Dockerfile.j2 +++ b/docker/kolla-ansible/Dockerfile.j2 @@ -1,23 +1,42 @@ -FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }} +FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} MAINTAINER {{ maintainer }} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} RUN yum -y install \ gcc \ + git \ libffi-devel \ libxml2-devel \ libxslt-devel \ + mariadb-devel \ + mariadb-libs \ openssl-devel \ python-devel \ openssh-clients \ && yum clean all -RUN pip install -U pip wheel +{% elif base_distro in ['ubuntu', 'debian'] %} + +RUN apt-get -y --no-install-recommends install \ + build-essential \ + ca-certificates \ + git \ + libffi-dev \ + libmariadbclient-dev \ + libssl-dev \ + libxslt1-dev \ + python-dev \ + && apt-get clean {% endif %} -RUN pip --no-cache-dir install \ +RUN curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py \ + && python get-pip.py \ + && rm get-pip.py \ + && pip install -U wheel \ + && pip --no-cache-dir install \ + MySQL-python \ shade \ pyudev |
