diff options
| author | Steven Dake <stdake@cisco.com> | 2015-10-13 03:56:20 -0400 |
|---|---|---|
| committer | Steven Dake <stdake@cisco.com> | 2015-10-13 21:48:17 -0400 |
| commit | 1353538644253081f62a6a74e299d102aa9965dd (patch) | |
| tree | f34365df52e1be7c5953424b40a444eb7056de5c /docker/glance | |
| parent | ba3b1bcf90549e276f8f6d94b38c9b1c8816b2ed (diff) | |
| download | kolla-1353538644253081f62a6a74e299d102aa9965dd.tar.gz kolla-1353538644253081f62a6a74e299d102aa9965dd.zip | |
Make Ceph work for RPM based distributions
Ceph packages need to be installed in nova, glance, and cinder.
Once that is done, Ceph works like a champ!
Change-Id: I296da1d04d0c1bcb729f22e65e432d53d561b49c
backport: liberty
Closes-Bug: #1505549
Diffstat (limited to 'docker/glance')
| -rw-r--r-- | docker/glance/glance-base/Dockerfile.j2 | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/docker/glance/glance-base/Dockerfile.j2 b/docker/glance/glance-base/Dockerfile.j2 index bf079c528..3ca7e5133 100644 --- a/docker/glance/glance-base/Dockerfile.j2 +++ b/docker/glance/glance-base/Dockerfile.j2 @@ -9,11 +9,22 @@ RUN yum -y install \ python-oslo-i18n \ python-castellan \ python-cryptography \ - && yum clean all + python-rbd \ + python-rados \ + && yum clean all \ + && mkdir -p /etc/ceph/ {% endif %} {% elif install_type == 'source' %} - {% if base_distro in ['ubuntu', 'debian'] %} + {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + +RUN yum -y install \ + python-rbd \ + python-rados \ + && yum clean all \ + && mkdir -p /etc/ceph/ + + {% elif base_distro in ['ubuntu', 'debian'] %} RUN apt-get install -y --no-install-recommends \ python-rbd \ |
