diff options
| author | Paul Bourke <paul.bourke@oracle.com> | 2016-08-05 11:50:16 +0000 |
|---|---|---|
| committer | Paul Bourke <paul.bourke@oracle.com> | 2016-08-25 14:06:01 +0100 |
| commit | d3c60d0035d62ece4277f59c40aabe570539face (patch) | |
| tree | 8c453f8a6ba039539bdcfc294d34368a32be476e /docker/nova/nova-api | |
| parent | d8755e173ff6744e13fa73cbc4ed6b384c51a3e3 (diff) | |
| download | kolla-d3c60d0035d62ece4277f59c40aabe570539face.tar.gz kolla-d3c60d0035d62ece4277f59c40aabe570539face.zip | |
Customizations for Nova
Change-Id: I7556d6cd473516c7ceb4aba7c1ba1130af2544ee
Partially-implements: blueprint third-party-plugin-support
Diffstat (limited to 'docker/nova/nova-api')
| -rw-r--r-- | docker/nova/nova-api/Dockerfile.j2 | 21 |
1 files changed, 14 insertions, 7 deletions
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 |
