Skip to content
Snippets Groups Projects
Commit ae17562c authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "Customizations for Manila"

parents 595fa575 fdf9dd50
No related branches found
No related tags found
No related merge requests found
FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %} {% if install_type == 'binary' %}
{% if base_distro in ['ubuntu'] %} {% if base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \ {% set manila_api_packages = [
manila-api \ 'manila-api'
&& apt-get clean ] %}
RUN {{ macros.install_packages(manila_api_packages | customizable("packages")) }}
{% endif%} {% endif%}
{% endif%} {% endif%}
...@@ -14,6 +18,8 @@ RUN apt-get -y install --no-install-recommends \ ...@@ -14,6 +18,8 @@ RUN apt-get -y install --no-install-recommends \
COPY extend_start.sh /usr/local/bin/kolla_manila_extend_start COPY extend_start.sh /usr/local/bin/kolla_manila_extend_start
RUN chmod 755 /usr/local/bin/kolla_manila_extend_start RUN chmod 755 /usr/local/bin/kolla_manila_extend_start
{% block manila_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
USER manila USER manila
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %} {% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \ {% set manila_base_packages = [
openstack-manila \ 'openstack-manila',
openvswitch \ 'openvswitch'
&& yum clean all ] %}
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \ {% set manila_base_packages = [
manila-common \ 'manila-common',
openvswitch-switch \ 'openvswitch-switch'
&& apt-get clean ] %}
{% endif %} {% endif %}
RUN {{ macros.install_packages(manila_base_packages | customizable("packages")) }}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \ {% set manila_base_packages = ['openvswitch'] %}
openvswitch \
&& yum clean all
{% elif base_distro in ['ubuntu', 'debian'] %} {% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get -y install --no-install-recommends \ {% set manila_base_packages = ['openvswitch-switch'] %}
openvswitch-switch \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(manila_base_packages | customizable("packages")) }}
ADD manila-base-archive /manila-base-source ADD manila-base-archive /manila-base-source
RUN ln -s manila-base-source/* manila \ RUN ln -s manila-base-source/* manila \
&& useradd --user-group manila \ && useradd --user-group manila \
...@@ -53,3 +56,6 @@ RUN touch /usr/local/bin/kolla_manila_extend_start \ ...@@ -53,3 +56,6 @@ RUN touch /usr/local/bin/kolla_manila_extend_start \
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_manila_extend_start && chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_manila_extend_start
RUN usermod -a -G kolla manila RUN usermod -a -G kolla manila
{% block manila_base_footer %}{% endblock %}
{% block footer %}{% endblock %}
FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %} {% if install_type == 'binary' %}
{% if base_distro in ['ubuntu'] %} {% if base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \ {% set manila_scheduler_packages = [
manila-scheduler \ 'manila-scheduler'
&& apt-get clean ] %}
RUN {{ macros.install_packages(manila_scheduler_packages | customizable("packages")) }}
{% endif%} {% endif%}
{% endif%} {% endif%}
{% block manila_scheduler_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
USER manila USER manila
FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
MAINTAINER {{ maintainer }} MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %} {% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \ {% set manila_share_packages = [
openstack-manila-share \ 'openstack-manila-share'
&& yum clean all ] %}
RUN {{ macros.install_packages(manila_share_packages | customizable("packages")) }}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% block manila_share_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
USER manila USER manila
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment