Customizations for openvswitch
This patchset contains customization of Dockerfiles of openvswitch containers Change-Id: I9404fbee8552d5218ac57abf8a01bf259db729f5 Partially-implements: blueprint third-party-plugin-support
This commit is contained in:
parent
b2d69946c7
commit
f96458fcbf
@ -1,19 +1,15 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
||||||
MAINTAINER {{ maintainer }}
|
MAINTAINER {{ maintainer }}
|
||||||
|
{% import "macros.j2" as macros with context %}
|
||||||
|
|
||||||
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
||||||
|
{% set openvswitch_base_packages = ['openvswitch'] %}
|
||||||
RUN yum -y install \
|
|
||||||
openvswitch \
|
|
||||||
&& yum clean all
|
|
||||||
|
|
||||||
{% elif base_distro in ['ubuntu', 'debian'] %}
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
{% set openvswitch_base_packages = ['openvswitch-switch'] %}
|
||||||
RUN apt-get -y install --no-install-recommends \
|
|
||||||
openvswitch-switch \
|
|
||||||
&& apt-get clean
|
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
RUN {{ macros.install_packages(openvswitch_base_packages | customizable("packages")) }}
|
||||||
|
|
||||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
|
|
||||||
|
@ -5,4 +5,6 @@ COPY ovs_ensure_configured.sh /usr/local/bin/kolla_ensure_openvswitch_configured
|
|||||||
COPY extend_start.sh /usr/local/bin/kolla_openvswitch_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_openvswitch_extend_start
|
||||||
RUN chmod 755 /usr/local/bin/kolla_ensure_openvswitch_configured /usr/local/bin/kolla_openvswitch_extend_start
|
RUN chmod 755 /usr/local/bin/kolla_ensure_openvswitch_configured /usr/local/bin/kolla_openvswitch_extend_start
|
||||||
|
|
||||||
|
{% block openvswitch_db_server_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
@ -4,4 +4,6 @@ MAINTAINER {{ maintainer }}
|
|||||||
COPY extend_start.sh /usr/local/bin/kolla_openvswitch_extend_start
|
COPY extend_start.sh /usr/local/bin/kolla_openvswitch_extend_start
|
||||||
RUN chmod 755 /usr/local/bin/kolla_openvswitch_extend_start
|
RUN chmod 755 /usr/local/bin/kolla_openvswitch_extend_start
|
||||||
|
|
||||||
|
{% block openvswitch_vswitchd_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
Loading…
Reference in New Issue
Block a user