Skip to content

Commit

Permalink
Add fluentd_binary and fluentd_version labels
Browse files Browse the repository at this point in the history
In order to orchestrate a smooth migration of fluentd to newer
td-agent on CentOS x86_64, a label that points to fluentd binary
and version are needed.

Depends-On: https://review.opendev.org/677144/
Change-Id: Ie2257870d87c5b3a9b0572f8fd35085a3f95fedb
  • Loading branch information
mnasiadka committed Aug 19, 2019
1 parent 0ffd3ae commit 23f6d2a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/fluentd/Dockerfile.j2
@@ -1,5 +1,10 @@
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
{% if base_package_type == 'rpm' or base_arch != 'x86_64' %}
LABEL fluentd_version="0.12" fluentd_binary="fluentd"
{% else %}
LABEL fluentd_version="0.14" fluentd_binary="td-agent"
{% endif %}

{% block fluentd_header %}{% endblock %}

Expand Down

0 comments on commit 23f6d2a

Please sign in to comment.