From a7c3851d29d0085c3e39f72fbf79244aa64c5f50 Mon Sep 17 00:00:00 2001 From: "Swapnil Kulkarni (coolsvap)" Date: Mon, 25 Jul 2016 08:55:33 +0530 Subject: Customizations for mistral This patchset contains customization of Dockerfiles of mistral containers Change-Id: I0ad1e9aa80b563da17275268ca90b618da350b06 Partially-implements: blueprint third-party-plugin-support --- docker/mistral/mistral-base/Dockerfile.j2 | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'docker/mistral/mistral-base') diff --git a/docker/mistral/mistral-base/Dockerfile.j2 b/docker/mistral/mistral-base/Dockerfile.j2 index 782d31c97..a31286799 100644 --- a/docker/mistral/mistral-base/Dockerfile.j2 +++ b/docker/mistral/mistral-base/Dockerfile.j2 @@ -1,21 +1,16 @@ 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-mistral-common \ - && yum clean all +{% import "macros.j2" as macros with context %} - {% elif base_distro in ['ubuntu'] %} - -RUN apt-get -y install --no-install-recommends \ - mistral-common \ - && apt-get clean +{% if install_type == 'binary' %} - {% endif %} +{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + {% set mistral_base_packages = ['openstack-mistral-common'] %} +{% elif base_distro in ['ubuntu'] %} + {% set mistral_base_packages = ['mistral-common'] %} +{% endif %} +RUN {{ macros.install_packages(mistral_base_packages | customizable("packages")) }} {% elif install_type == 'source' %} -- cgit v1.2.3