From d0aaeccbea9543482b045974719544592c65ccb7 Mon Sep 17 00:00:00 2001 From: "Brad P. Crochet" Date: Fri, 5 May 2017 10:27:37 -0400 Subject: [PATCH] Add mistral-event-engine image Mistral now has an event engine for triggering cron-like events. Change-Id: I039e812113c7ad565e11af6045cb3bd1a7af706b --- .../mistral-event-engine/Dockerfile.j2 | 22 +++++++++++++++++++ ...mistral-event-engine-053ebdfbd50e2e65.yaml | 3 +++ tests/test_build.py | 2 ++ 3 files changed, 27 insertions(+) create mode 100644 docker/mistral/mistral-event-engine/Dockerfile.j2 create mode 100644 releasenotes/notes/add-mistral-event-engine-053ebdfbd50e2e65.yaml diff --git a/docker/mistral/mistral-event-engine/Dockerfile.j2 b/docker/mistral/mistral-event-engine/Dockerfile.j2 new file mode 100644 index 0000000000..aa51729a74 --- /dev/null +++ b/docker/mistral/mistral-event-engine/Dockerfile.j2 @@ -0,0 +1,22 @@ +FROM {{ namespace }}/{{ image_prefix }}mistral-base:{{ tag }} +LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}" + +{% block mistral_event_engine_header %}{% endblock %} + +{% import "macros.j2" as macros with context %} + +{% if install_type == 'binary' %} + {% if base_distro in ['centos', 'oraclelinux', 'rhel'] %} + {% set mistral_event_engine_packages = ['openstack-mistral-event-engine'] %} + {{ macros.install_packages(mistral_event_engine_packages | customizable("packages")) }} + {% elif base_distro in ['debian', 'ubuntu'] %} +RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ + && /bin/false + {% endif %} + +{% endif %} + +{% block mistral_event_engine_footer %}{% endblock %} +{% block footer %}{% endblock %} + +USER mistral diff --git a/releasenotes/notes/add-mistral-event-engine-053ebdfbd50e2e65.yaml b/releasenotes/notes/add-mistral-event-engine-053ebdfbd50e2e65.yaml new file mode 100644 index 0000000000..ec9be84b61 --- /dev/null +++ b/releasenotes/notes/add-mistral-event-engine-053ebdfbd50e2e65.yaml @@ -0,0 +1,3 @@ +--- +features: + - Add mistral-event-engine image. diff --git a/tests/test_build.py b/tests/test_build.py index 8a0ff58446..8e7c80d270 100644 --- a/tests/test_build.py +++ b/tests/test_build.py @@ -121,6 +121,7 @@ class BuildTestUbuntuBinary(BuildTest, base.BaseTestCase): "heat-all", "karbor-base", "kuryr-base", + "mistral-event-engine", "monasca-base", "neutron-sfc-agent", "octavia-base", @@ -163,6 +164,7 @@ class BuildTestDebianBinary(BuildTest, base.BaseTestCase): "heat-all", "karbor-base", "kuryr-base", + "mistral-event-engine", "monasca-base", "neutron-sfc-agent", "octavia-base",