Skip to content

Commit 840fe74

Browse files
Merge pull request #2108 from syedriko/remove_obsolete_files
Remove obsolete files from the fluentd image
2 parents 9aeb8ba + d6cf551 commit 840fe74

35 files changed

+21
-1666
lines changed

fluentd/Dockerfile

Lines changed: 19 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,24 @@
1-
FROM registry.ci.openshift.org/ocp/builder:ubi8.ruby.25 AS builder
1+
FROM registry.ci.openshift.org/ocp/builder:ubi8.ruby.25
22

33
MAINTAINER OpenShift Development <[email protected]>
44

5-
ARG DATA_VERSION_VALUE=1.6.0
6-
ARG FLUENTD_VERSION_VALUE=1.7.4
7-
ARG HOME_VALUE=/opt/app-root/src
8-
ARG PATH_VALUE=/opt/app-root/src/bin:/opt/app-root/bin
9-
ARG LOGGING_FILE_PATH_VALUE=/var/log/fluentd/fluentd.log
10-
ARG LOGGING_FILE_AGE_VALUE=10
11-
ARG LOGGING_FILE_SIZE_VALUE=1024000
12-
ARG CONTAINER_VALUE=oci
5+
ENV DATA_VERSION=1.6.0 \
6+
FLUENTD_VERSION=1.7.4 \
7+
HOME=/opt/app-root/src \
8+
PATH=/opt/app-root/src/bin:/opt/app-root/bin:$PATH \
9+
LOGGING_FILE_PATH=/var/lib/fluentd/fluentd.log \
10+
LOGGING_FILE_AGE=10 \
11+
LOGGING_FILE_SIZE=1024000 \
12+
container=oci
1313

14-
ENV DATA_VERSION=$DATA_VERSION_VALUE \
15-
FLUENTD_VERSION=$FLUENTD_VERSION_VALUE \
16-
HOME=$HOME_VALUE \
17-
PATH=$PATH_VALUE:$PATH \
18-
LOGGING_FILE_PATH=$LOGGING_FILE_PATH_VALUE \
19-
LOGGING_FILE_AGE=$LOGGING_FILE_AGE_VALUE \
20-
LOGGING_FILE_SIZE=$LOGGING_FILE_SIZE_VALUE \
21-
container=$CONTAINER_VALUE
22-
23-
ARG TEST_REPO
24-
#ADD test.repo /etc/yum.repos.d
14+
ARG BUILD_PKGS="make gcc-c++ libffi-devel autoconf automake libtool m4 redhat-rpm-config"
15+
ARG RUNTIME_PKGS="hostname bc iproute"
2516

2617
USER 0
2718

28-
RUN BUILD_PKGS="make gcc-c++ libffi-devel \
29-
autoconf automake libtool m4 \
30-
redhat-rpm-config" && \
31-
RUNTIME_PKGS="hostname \
32-
bc \
33-
iproute" && \
34-
yum install -y $BUILD_PKGS $RUNTIME_PKGS && \
35-
rpm -V $BUILD_PKGS && \
36-
rpm -V $RUNTIME_PKGS && \
37-
yum clean all
38-
39-
# uncomment if you want to try out test rpm builds
40-
#ADD *.rpm /tmp/
41-
#RUN yum -y install /tmp/*.rpm
19+
RUN yum install -y $BUILD_PKGS $RUNTIME_PKGS && \
20+
rpm -V $BUILD_PKGS $RUNTIME_PKGS && \
21+
yum clean all
4222

4323
ADD jemalloc/ ${HOME}/jemalloc/
4424
RUN cd ${HOME}/jemalloc && EXTRA_CFLAGS="$( rpm --eval '%{optflags}' )" ./autogen.sh && \
@@ -56,25 +36,20 @@ ADD install-gems.sh *.patch.sh *.patch ${HOME}/vendored_gem_src/
5636

5737
RUN cd ${HOME}/vendored_gem_src/ && ./install-gems.sh && cd / && rm -rf ${HOME}/vendored_gem_src/
5838

59-
RUN BUILD_PKGS="make gcc-c++ libffi-devel \
60-
autoconf automake libtool m4 \
61-
redhat-rpm-config" && \
62-
yum remove -y $BUILD_PKGS
39+
RUN yum remove -y $BUILD_PKGS
6340

6441
RUN mkdir -p /etc/fluent/plugin
65-
ADD configs.d/ /etc/fluent/configs.d/
6642
ADD out_syslog_buffered.rb out_syslog.rb out_rawtcp.rb /etc/fluent/plugin/
67-
ADD run.sh generate_syslog_config.rb wait_for_es_version.rb wait_for_es_version.sh ${HOME}/
68-
ADD lib/generate_throttle_configs/lib/*.rb ${HOME}/
43+
ADD run.sh wait_for_es_version.rb wait_for_es_version.sh ${HOME}/
6944
ADD lib/filter_parse_json_field/lib/*.rb /etc/fluent/plugin/
7045
ADD lib/filter_elasticsearch_genid_ext/lib/filter_elasticsearch_genid_ext.rb /etc/fluent/plugin/
7146
ADD lib/parser_viaq_host_audit/lib/*.rb /etc/fluent/plugin/
7247
ADD lib/fluent-plugin-viaq_data_model/lib/fluent/plugin/*.rb /etc/fluent/plugin/
7348
COPY utils/ /usr/local/bin/
7449

75-
RUN mkdir -p /etc/fluent/configs.d/{dynamic,user} && \
76-
chmod 777 /etc/fluent/configs.d/dynamic && \
77-
ln -s /etc/fluent/configs.d/user/fluent.conf /etc/fluent/fluent.conf
50+
RUN mkdir -p /etc/fluent/configs.d/user && \
51+
chmod 777 /etc/fluent/configs.d/user && \
52+
ln -s /etc/fluent/configs.d/user/fluent.conf /etc/fluent/fluent.conf
7853

7954
WORKDIR ${HOME}
8055
CMD ["sh", "run.sh"]

fluentd/configs.d/filter-parse-json-field.conf

Lines changed: 0 additions & 6 deletions
This file was deleted.

fluentd/configs.d/filter-post-z-retag-one.conf

Lines changed: 0 additions & 21 deletions
This file was deleted.

fluentd/configs.d/filter-post-z-retag-two.conf

Lines changed: 0 additions & 37 deletions
This file was deleted.

fluentd/configs.d/input-pre-debug.conf

Lines changed: 0 additions & 5 deletions
This file was deleted.

fluentd/configs.d/input-pre-monitor.conf

Lines changed: 0 additions & 5 deletions
This file was deleted.

fluentd/configs.d/openshift/README

Lines changed: 0 additions & 96 deletions
This file was deleted.

fluentd/configs.d/openshift/filter-exclude-journal-debug.conf

Lines changed: 0 additions & 7 deletions
This file was deleted.

fluentd/configs.d/openshift/filter-k8s-meta.conf

Lines changed: 0 additions & 29 deletions
This file was deleted.

fluentd/configs.d/openshift/filter-k8s-record-transform.conf

Whitespace-only changes.

fluentd/configs.d/openshift/filter-kibana-transform.conf

Lines changed: 0 additions & 8 deletions
This file was deleted.

fluentd/configs.d/openshift/filter-post-genid.conf

Lines changed: 0 additions & 8 deletions
This file was deleted.

fluentd/configs.d/openshift/filter-pre-force-utf8.conf

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)