Merge "Cinder ubuntu binary container"

This commit is contained in:
Jenkins 2016-01-22 17:06:31 +00:00 committed by Gerrit Code Review
commit 4550142177
5 changed files with 41 additions and 0 deletions

View File

@ -7,6 +7,12 @@ MAINTAINER {{ maintainer }}
RUN yum install -y python-keystone \ RUN yum install -y python-keystone \
&& yum clean all && yum clean all
{% elif base_distro in ['ubuntu'] %}
RUN apt-get install -y --no-install-recommends \
cinder-api \
&& apt-get clean
{% endif %} {% endif %}
{% endif %} {% endif %}

View File

@ -1,6 +1,16 @@
FROM {{ namespace }}/{{ image_prefix }}cinder-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}cinder-base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['ubuntu'] %}
RUN apt-get install -y --no-install-recommends \
cinder-backup \
&& apt-get clean
{% endif %}
{% endif %}
{{ include_footer }} {{ include_footer }}
USER cinder USER cinder

View File

@ -13,6 +13,15 @@ RUN yum -y install openstack-cinder \
&& yum clean all \ && yum clean all \
&& mkdir -p /etc/ceph && mkdir -p /etc/ceph
{% elif base_distro in ['ubuntu'] %}
RUN apt-get install -y --no-install-recommends \
cinder-common \
ceph-common \
lvm2 \
&& apt-get clean \
&& mkdir -p /etc/ceph
{% endif %} {% endif %}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}

View File

@ -1,6 +1,16 @@
FROM {{ namespace }}/{{ image_prefix }}cinder-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}cinder-base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['ubuntu'] %}
RUN apt-get install -y --no-install-recommends \
cinder-scheduler \
&& apt-get clean
{% endif %}
{% endif %}
{{ include_footer }} {{ include_footer }}
USER cinder USER cinder

View File

@ -9,6 +9,12 @@ RUN yum install -y \
scsi-target-utils \ scsi-target-utils \
&& yum clean all && yum clean all
{% elif base_distro in ['ubuntu'] %}
RUN apt-get install -y --no-install-recommends \
cinder-volume \
&& apt-get clean
{% endif %} {% endif %}
{% endif %} {% endif %}