From d3c60d0035d62ece4277f59c40aabe570539face Mon Sep 17 00:00:00 2001 From: Paul Bourke Date: Fri, 5 Aug 2016 11:50:16 +0000 Subject: Customizations for Nova Change-Id: I7556d6cd473516c7ceb4aba7c1ba1130af2544ee Partially-implements: blueprint third-party-plugin-support --- docker/nova/nova-api/Dockerfile.j2 | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) (limited to 'docker/nova/nova-api') diff --git a/docker/nova/nova-api/Dockerfile.j2 b/docker/nova/nova-api/Dockerfile.j2 index 485efb1d1..1997b4c61 100644 --- a/docker/nova/nova-api/Dockerfile.j2 +++ b/docker/nova/nova-api/Dockerfile.j2 @@ -1,26 +1,33 @@ FROM {{ namespace }}/{{ image_prefix }}nova-base:{{ tag }} MAINTAINER {{ maintainer }} +{% import "macros.j2" as macros with context %} + {% if install_type == 'binary' %} {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} -RUN yum -y install \ - openstack-nova-api \ - && yum clean all + {% set nova_api_packages = [ + 'openstack-nova-api' + ] %} {% elif base_distro in ['ubuntu'] %} -RUN apt-get -y install --no-install-recommends \ - nova-api \ - python-memcache \ - && apt-get clean + {% set nova_api_packages = [ + 'nova-api', + 'python-memcache' + ] %} {% endif %} + +{{ macros.install_packages(nova_api_packages | customizable("packages")) }} + {% endif %} COPY extend_start.sh /usr/local/bin/kolla_nova_extend_start RUN chmod 755 /usr/local/bin/kolla_nova_extend_start +{% block nova_api_footer %}{% endblock %} +{% block footer %}{% endblock %} {{ include_footer }} USER nova -- cgit v1.2.3