kolla/docker/monasca/monasca-agent/Dockerfile.j2
Doug Szumski e4e8ca3e1d Add Monasca Agent container
The Monasca Agent consists of 3 processes. The collector, which
collects system level metrics from a host, a statsd server, which is used
to receive application specific statsd metrics and a forwarder service
which batches metrics and sends them to the Monasca API at pre-defined
time intervals.

Partially-Implements: blueprint monasca-containers
Change-Id: Ia446ca0a6b932c2429d727b63e363b4e27307304
2018-07-27 15:46:38 +01:00

32 lines
777 B
Django/Jinja

FROM {{ namespace }}/{{ image_prefix }}monasca-base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% block monasca_agent_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if install_type == 'binary' %}
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
&& /bin/false
{% elif install_type == 'source' %}
ADD monasca-agent-archive /monasca-agent-source
{% set monasca_agent_pip_packages = [
'/monasca-agent'
] %}
RUN ln -s monasca-agent-source/* monasca-agent \
&& {{ macros.install_pip(monasca_agent_pip_packages | customizable("pip_packages")) }}
{% endif %}
{% block monasca_agent_footer %}{% endblock %}
{% block footer %}{% endblock %}
USER monasca