Skip to content
Snippets Groups Projects
Commit 3f20f257 authored by Swapnil Kulkarni (coolsvap)'s avatar Swapnil Kulkarni (coolsvap)
Browse files

Customizations for sahara

This patchset contains customization of Dockerfiles
of sahara containers

Change-Id: Ice1b71f6a58678184e9397dffb5c422da926c470
Partially-implements: blueprint third-party-plugin-support
parent 5a21032f
No related branches found
No related tags found
No related merge requests found
FROM {{ namespace }}/{{ image_prefix }}sahara-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-sahara-api \
&& yum clean all
{% set sahara_api_packages = ['openstack-sahara-api'] %}
{% elif base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \
sahara-api \
&& apt-get clean
{% set sahara_api_packages = ['sahara-api'] %}
{% endif %}
RUN {{ macros.install_packages(sahara_api_packages | customizable("packages")) }}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{% block sahara_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }}
USER sahara
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-sahara-common \
&& yum clean all
{% elif base_distro in ['ubuntu'] %}
{% import "macros.j2" as macros with context %}
RUN apt-get -y install --no-install-recommends \
sahara-common \
&& apt-get clean
{% if install_type == 'binary' %}
{% endif %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
{% set sahara_base_packages = ['openstack-sahara-common'] %}
{% elif base_distro in ['ubuntu'] %}
{% set sahara_base_packages = ['sahara-common'] %}
{% endif %}
RUN {{ macros.install_packages(sahara_base_packages | customizable("packages")) }}
{% elif install_type == 'source' %}
......@@ -29,3 +25,6 @@ RUN ln -s sahara-base-source/* sahara \
{% endif %}
RUN usermod -a -G kolla sahara
{% block sahara_base_footer %}{% endblock %}
{% block footer %}{% endblock %}
FROM {{ namespace }}/{{ image_prefix }}sahara-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-sahara-engine \
&& yum clean all
{% set sahara_engine_packages = ['openstack-sahara-engine'] %}
{% elif base_distro in ['ubuntu'] %}
RUN apt-get -y install --no-install-recommends \
sahara-engine \
&& apt-get clean
{% set sahara_engine_packages = ['sahara-engine'] %}
{% endif %}
RUN {{ macros.install_packages(sahara_engine_packages | customizable("packages")) }}
{% endif %}
{% block sahara_engine_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }}
......
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