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

Merge "Customizations for magnum"

parents ece15950 5b45d473
No related branches found
No related tags found
No related merge requests found
FROM {{ namespace }}/{{ image_prefix }}magnum-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}magnum-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'] %}
{% set magnum_api_packages = ['openstack-magnum-api'] %}
RUN yum -y install \
openstack-magnum-api \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set magnum_api_packages = ['magnum-api'] %}
RUN apt-get -y install --no-install-recommends \
magnum-api\
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(magnum_api_packages | customizable("packages")) }}
{% endif %} {% endif %}
COPY extend_start.sh /usr/local/bin/kolla_magnum_extend_start COPY extend_start.sh /usr/local/bin/kolla_magnum_extend_start
RUN chmod 755 /usr/local/bin/kolla_magnum_extend_start RUN chmod 755 /usr/local/bin/kolla_magnum_extend_start
{% block magnum_api_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
USER magnum USER magnum
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'] %} {% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
{% set magnum_base_packages = ['openstack-magnum-common'] %}
RUN curl -L https://trunk.rdoproject.org/centos7/current/delorean.repo -o /etc/yum.repos.d/delorean.repo \ RUN curl -L https://trunk.rdoproject.org/centos7/current/delorean.repo -o /etc/yum.repos.d/delorean.repo
&& yum -y install \
openstack-magnum-common \
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set magnum_base_packages = ['magnum-common'] %}
RUN apt-get -y install --no-install-recommends \
magnum-common \
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(magnum_base_packages | customizable("packages")) }}
{% elif install_type == 'source' %} {% elif install_type == 'source' %}
ADD magnum-base-archive /magnum-base-source ADD magnum-base-archive /magnum-base-source
......
FROM {{ namespace }}/{{ image_prefix }}magnum-base:{{ tag }} FROM {{ namespace }}/{{ image_prefix }}magnum-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'] %}
{% set magnum_conductor_packages = [
RUN yum -y install \ 'openstack-magnum-conductor',
openstack-magnum-conductor \ 'tar'
tar \ ] %}
&& yum clean all
{% elif base_distro in ['ubuntu'] %} {% elif base_distro in ['ubuntu'] %}
{% set magnum_conductor_packages = ['magnum-conductor'] %}
RUN apt-get -y install --no-install-recommends \
magnum-conductor\
&& apt-get clean
{% endif %} {% endif %}
RUN {{ macros.install_packages(magnum_conductor_packages | customizable("packages")) }}
# Install kubectl binary (ugh) # Install kubectl binary (ugh)
RUN cd /tmp \ RUN cd /tmp \
...@@ -26,6 +23,8 @@ RUN cd /tmp \ ...@@ -26,6 +23,8 @@ RUN cd /tmp \
{% endif %} {% endif %}
{% block magnum_conductor_footer %}{% endblock %}
{% block footer %}{% endblock %}
{{ include_footer }} {{ include_footer }}
USER magnum USER magnum
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