Skip to content

Commit

Permalink
feat: add rdkafka gem installation to Dockerfiles for fluent-watcher (#…
Browse files Browse the repository at this point in the history
…1415)

* feat: add rdkafka gem installation to Dockerfiles for fluent-watcher

Signed-off-by: Tomáš Novák <[email protected]>

* feat: add rdkafka build dependencies

Signed-off-by: Tomáš Novák <[email protected]>

---------

Signed-off-by: Tomáš Novák <[email protected]>
  • Loading branch information
MioOgbeni authored Nov 26, 2024
1 parent c9150cd commit 92df045
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions cmd/fluent-watcher/fluentd/Dockerfile.amd64
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ RUN apk update \
&& apk add --no-cache --virtual .build-deps \
build-base linux-headers \
ruby-dev gnupg \
bash \
openssl-dev \
&& echo 'gem: --no-document' >> /etc/gemrc \
&& gem install oj -v 3.13.22 \
&& gem install json -v 2.6.2 \
Expand All @@ -35,6 +37,7 @@ RUN apk update \
&& gem install elasticsearch -v 7.13.3 \
&& gem install elasticsearch-xpack -v 7.13.3 \
&& gem install fluent-plugin-detect-exceptions -v 0.0.14 \
&& gem install rdkafka -v 0.19.0 \
&& gem install \
fluent-plugin-s3 \
fluent-plugin-grok-parser \
Expand Down
5 changes: 3 additions & 2 deletions cmd/fluent-watcher/fluentd/Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN apt-get update \
ca-certificates \
&& buildDeps=" \
make gcc g++ libc-dev \
wget bzip2 gnupg dirmngr \
wget bzip2 gnupg dirmngr bash openssl build-essential \
" \
&& apt-get install -y --no-install-recommends $buildDeps \
&& echo 'gem: --no-document' >> /etc/gemrc \
Expand All @@ -43,6 +43,7 @@ RUN apt-get update \
&& gem install elasticsearch -v 7.13.3 \
&& gem install elasticsearch-xpack -v 7.13.3 \
&& gem install fluent-plugin-detect-exceptions -v 0.0.14 \
&& gem install rdkafka -v 0.19.0 \
&& gem install \
fluent-plugin-s3 \
fluent-plugin-grok-parser \
Expand All @@ -63,7 +64,7 @@ RUN apt-get update \
&& cd /tmp && tar -xjf jemalloc-5.3.0.tar.bz2 && cd jemalloc-5.3.0/ \
&& ./configure && make \
&& mv lib/libjemalloc.so.2 /usr/lib \
&& apt-get purge -y --auto-remove \
&& apt-get purge -y --allow-remove-essential --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false \
$buildDeps \
&& rm -rf /var/lib/apt/lists/* \
Expand Down
5 changes: 3 additions & 2 deletions cmd/fluent-watcher/fluentd/Dockerfile.arm64.base
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN apt-get update \
ca-certificates \
&& buildDeps=" \
make gcc g++ libc-dev \
wget bzip2 gnupg dirmngr\
wget bzip2 gnupg dirmngr bash openssl build-essential \
" \
&& apt-get install -y --no-install-recommends $buildDeps \
&& echo 'gem: --no-document' >> /etc/gemrc \
Expand All @@ -33,6 +33,7 @@ RUN apt-get update \
&& gem install elasticsearch -v 7.13.3 \
&& gem install elasticsearch-xpack -v 7.13.3 \
&& gem install fluent-plugin-detect-exceptions -v 0.0.14 \
&& gem install rdkafka -v 0.19.0 \
&& gem install \
fluent-plugin-s3 \
fluent-plugin-grok-parser \
Expand All @@ -52,4 +53,4 @@ RUN apt-get update \
&& cd /tmp && tar -xjf jemalloc-4.5.0.tar.bz2 && cd jemalloc-4.5.0/ \
&& ./configure && make \
&& mv lib/libjemalloc.so.2 /usr/lib \
&& echo "plugins installed."
&& echo "plugins installed."

0 comments on commit 92df045

Please sign in to comment.