From 1f0afeb3ad2a43fecc0e37b6b4fa3178056d996b Mon Sep 17 00:00:00 2001 From: Dennis Mueller Date: Mon, 25 Jul 2016 09:24:07 +0200 Subject: [PATCH] Added neutron-metering-agent Added neutron-metering-agent container Change-Id: Ie72475a61e557a78ea0099940462a73699963642 Partially-Implements: blueprint support-neutron-metering-agent --- .../neutron-metering-agent/Dockerfile.j2 | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docker/neutron/neutron-metering-agent/Dockerfile.j2 diff --git a/docker/neutron/neutron-metering-agent/Dockerfile.j2 b/docker/neutron/neutron-metering-agent/Dockerfile.j2 new file mode 100644 index 0000000000..ad40833fae --- /dev/null +++ b/docker/neutron/neutron-metering-agent/Dockerfile.j2 @@ -0,0 +1,22 @@ +FROM {{ namespace }}/{{ image_prefix }}neutron-base:{{ tag }} +MAINTAINER {{ maintainer }} +{% import "macros.j2" as macros with context %} + +{% if install_type == 'binary' %} + + {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + {% set neutron_metering_agent_packages = ['openstack-neutron-metering-agent'] %} + {% elif base_distro in ['ubuntu', 'debian'] %} + {% set neutron_metering_agent_packages = ['neutron-metering-agent'] %} + {% endif %} + +RUN {{ macros.install_packages(neutron_metering_agent_packages | customizable("packages")) }} + +{% endif %} + + +{% block neutron_metering_agent_footer %}{% endblock %} +{% block footer %}{% endblock %} +{{ include_footer }} + +USER neutron