kolla-ansible/docker/nova/nova-compute/Dockerfile.j2
Steven Dake 194bb93ff2 Make Ceph install from Source on RPM
Ceph doesnt install from source on RPM because Ceph pulls in
python-requests.  This causes a cpio error during unpacking
because requests is installed in the base image.  A simple
workaround is to remove in the nova-compute container which
is the only container this conflict occurs within.

backport: liberty

Change-Id: I493900854a53c98f1a5cb6478675a18feceefea5
Closes-Bug: #1508236
2015-10-20 19:55:22 -04:00

39 lines
919 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}nova-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-nova-compute \
openvswitch \
sysfsutils \
ceph-common \
&& yum clean all
{% endif %}
{% elif install_type == 'source' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN pip uninstall -y requests \
&& yum -y install \
libvirt-python \
openvswitch \
qemu-img \
sysfsutils \
ceph-common \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends \
qemu-utils \
ceph-common \
&& apt-get clean \
&& mkdir -p /etc/ceph
{% endif %}
{% endif %}
{{ include_footer }}