[CentOS-devel] [opstools] Building opstools7-fluentd-012-release for ppc64le

Thu Feb 22 03:56:40 UTC 2018
Mark Hamzy <hamzy at us.ibm.com>

> From: Tony Breeds <tony at bakeyournoodle.com>
> To: "The CentOS developers mailing list." <centos-devel at centos.org>
> Date: 02/21/2018 08:59 PM
> Subject: Re: [CentOS-devel] [opstools] Building opstools7-
> fluentd-012-release for ppc64le
> Sent by: "CentOS-devel" <centos-devel-bounces at centos.org>
> 
> And the current builds at:
> https://buildlogs.centos.org/centos/7/opstools/ppc64le/
> 
> So I guess the next step would be to rebuild anything that is missing
> and needed for ppc64le.

()[root at a0a1373d4ce8 /]# yum info fluentd hostname 
rubygem-fluent-plugin-elasticsearch rubygem-fluent-plugin-grok-parser 
rubygem-fluent-plugin-kubernetes_metadata_filter 
rubygem-fluent-plugin-rewrite-tag-filter 
rubygem-fluent-plugin-secure-forward 2>/dev/null| grep ^Name
Name        : hostname
Name        : fluentd
Name        : rubygem-fluent-plugin-elasticsearch
Name        : rubygem-fluent-plugin-rewrite-tag-filter
Name        : rubygem-fluent-plugin-secure-forward

rubygem-fluent-plugin-grok-parser and 
rubygem-fluent-plugin-kubernetes_metadata_filter are missing.
They are both noarch, so I don't know what went wrong there.

Pulling them in with the following hack worked:

diff --git a/docker/fluentd/Dockerfile.j2 b/docker/fluentd/Dockerfile.j2
index af2452a..ff88be3 100644
--- a/docker/fluentd/Dockerfile.j2
+++ b/docker/fluentd/Dockerfile.j2
@@ -17,12 +17,22 @@ LABEL maintainer="{{ maintainer }}" name="{{ 
image_name }}" build-date="{{ build
         'fluentd',
         'hostname',
         'rubygem-fluent-plugin-elasticsearch',
-        'rubygem-fluent-plugin-grok-parser',
-        'rubygem-fluent-plugin-kubernetes_metadata_filter',
         'rubygem-fluent-plugin-rewrite-tag-filter',
         'rubygem-fluent-plugin-secure-forward'
     ] %}
 
+    {% if base_arch == 'x86_64' %}
+        {% set fluentd_packages = fluentd_packages + [
+            'rubygem-fluent-plugin-grok-parser',
+            'rubygem-fluent-plugin-kubernetes_metadata_filter'
+        ] %}
+    {% elif base_arch == 'ppc64le' %}
+        {% set fluentd_packages = fluentd_packages + [
+ 
'http://cbs.centos.org/kojifiles/packages/rubygem-fluent-plugin-grok-parser/0.3.1/1.el7/noarch/rubygem-fluent-plugin-gr
+ 
'http://cbs.centos.org/kojifiles/packages/rubygem-fluent-plugin-kubernetes_metadata_filter/0.27.0/1.el7/noarch/rubygem-
+        ] %}
+    {% endif %}
+
 {% elif base_distro in ['debian', 'ubuntu'] %}
     {{ macros.configure_user(name='td-agent', groups='mysql') }}
     {% set fluentd_packages = [

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos-devel/attachments/20180221/fed9ce86/attachment-0008.html>