diff options
| author | riwinter <riwinter@cisco.com> | 2016-07-25 10:08:05 -0400 |
|---|---|---|
| committer | riwinter <riwinter@cisco.com> | 2016-07-26 19:26:48 -0400 |
| commit | f96458fcbfc2b26f47232e312eb6df962533def0 (patch) | |
| tree | 957f5bf94a667fbf8eb7600d02bcaf6e7300f1d5 | |
| parent | b2d69946c7a6ca4136bdd479c4a7059b7e89b3f0 (diff) | |
| download | kolla-f96458fcbfc2b26f47232e312eb6df962533def0.tar.gz kolla-f96458fcbfc2b26f47232e312eb6df962533def0.zip | |
Customizations for openvswitch
This patchset contains customization of Dockerfiles
of openvswitch containers
Change-Id: I9404fbee8552d5218ac57abf8a01bf259db729f5
Partially-implements: blueprint third-party-plugin-support
| -rw-r--r-- | docker/openvswitch/openvswitch-base/Dockerfile.j2 | 12 | ||||
| -rw-r--r-- | docker/openvswitch/openvswitch-db-server/Dockerfile.j2 | 2 | ||||
| -rw-r--r-- | docker/openvswitch/openvswitch-vswitchd/Dockerfile.j2 | 2 |
3 files changed, 8 insertions, 8 deletions
diff --git a/docker/openvswitch/openvswitch-base/Dockerfile.j2 b/docker/openvswitch/openvswitch-base/Dockerfile.j2 index 1dd566438..d959407b6 100644 --- a/docker/openvswitch/openvswitch-base/Dockerfile.j2 +++ b/docker/openvswitch/openvswitch-base/Dockerfile.j2 @@ -1,19 +1,15 @@ FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }} MAINTAINER {{ maintainer }} +{% import "macros.j2" as macros with context %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} - -RUN yum -y install \ - openvswitch \ - && yum clean all + {% set openvswitch_base_packages = ['openvswitch'] %} {% elif base_distro in ['ubuntu', 'debian'] %} - -RUN apt-get -y install --no-install-recommends \ - openvswitch-switch \ - && apt-get clean + {% set openvswitch_base_packages = ['openvswitch-switch'] %} {% endif %} +RUN {{ macros.install_packages(openvswitch_base_packages | customizable("packages")) }} COPY extend_start.sh /usr/local/bin/kolla_extend_start diff --git a/docker/openvswitch/openvswitch-db-server/Dockerfile.j2 b/docker/openvswitch/openvswitch-db-server/Dockerfile.j2 index b588a094d..64d8fc46d 100644 --- a/docker/openvswitch/openvswitch-db-server/Dockerfile.j2 +++ b/docker/openvswitch/openvswitch-db-server/Dockerfile.j2 @@ -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 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 }} diff --git a/docker/openvswitch/openvswitch-vswitchd/Dockerfile.j2 b/docker/openvswitch/openvswitch-vswitchd/Dockerfile.j2 index 632e54a23..5e6880ce5 100644 --- a/docker/openvswitch/openvswitch-vswitchd/Dockerfile.j2 +++ b/docker/openvswitch/openvswitch-vswitchd/Dockerfile.j2 @@ -4,4 +4,6 @@ MAINTAINER {{ maintainer }} COPY extend_start.sh /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 }} |
