Skip to content

Commit 96f26f9

Browse files
committed
Force ruby platform not to use rdkafla native gem
Since rdkafka 0.22.x, x86_64-linux-gnu gem does not support SASL by default. To keep compatibility, do not use pre-built gem. Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent b392ddd commit 96f26f9

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docker-image/v1.19/arm64/debian-kafka/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN buildDeps="sudo make gcc g++ libc-dev libffi-dev build-essential autoconf au
2222
-y --no-install-recommends \
2323
$buildDeps $runtimeDeps net-tools \
2424
&& gem install bundler --version 2.4.17 \
25-
&& bundle config silence_root_warning true \
25+
&& bundle config silence_root_warning true && bundle config set force_ruby_platform true \
2626
&& bundle install --gemfile=/fluentd/Gemfile --path=/fluentd/vendor/bundle \
2727
&& SUDO_FORCE_REMOVE=yes \
2828
apt-get purge -y --auto-remove \

docker-image/v1.19/arm64/debian-kafka2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN buildDeps="sudo make gcc g++ libc-dev libffi-dev build-essential autoconf au
2222
-y --no-install-recommends \
2323
$buildDeps $runtimeDeps net-tools \
2424
&& gem install bundler --version 2.4.17 \
25-
&& bundle config silence_root_warning true \
25+
&& bundle config silence_root_warning true && bundle config set force_ruby_platform true \
2626
&& bundle install --gemfile=/fluentd/Gemfile --path=/fluentd/vendor/bundle \
2727
&& SUDO_FORCE_REMOVE=yes \
2828
apt-get purge -y --auto-remove \

docker-image/v1.19/debian-kafka/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN buildDeps="sudo make gcc g++ libc-dev libffi-dev build-essential autoconf au
2121
-y --no-install-recommends \
2222
$buildDeps $runtimeDeps net-tools \
2323
&& gem install bundler --version 2.4.17 \
24-
&& bundle config silence_root_warning true \
24+
&& bundle config silence_root_warning true && bundle config set force_ruby_platform true \
2525
&& bundle install --gemfile=/fluentd/Gemfile --path=/fluentd/vendor/bundle \
2626
&& SUDO_FORCE_REMOVE=yes \
2727
apt-get purge -y --auto-remove \

docker-image/v1.19/debian-kafka2/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN buildDeps="sudo make gcc g++ libc-dev libffi-dev build-essential autoconf au
2121
-y --no-install-recommends \
2222
$buildDeps $runtimeDeps net-tools \
2323
&& gem install bundler --version 2.4.17 \
24-
&& bundle config silence_root_warning true \
24+
&& bundle config silence_root_warning true && bundle config set force_ruby_platform true \
2525
&& bundle install --gemfile=/fluentd/Gemfile --path=/fluentd/vendor/bundle \
2626
&& SUDO_FORCE_REMOVE=yes \
2727
apt-get purge -y --auto-remove \

templates/Dockerfile.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ RUN buildDeps="sudo make gcc g++ libc-dev libffi-dev<% if target == "graylog" %>
3030
-y --no-install-recommends \
3131
$buildDeps $runtimeDeps net-tools \
3232
&& gem install bundler --version 2.4.17 \
33-
&& bundle config silence_root_warning true<% if target == "azureblob" %> && bundle config build.nokogiri --use-system-libraries<% end %> \
33+
&& bundle config silence_root_warning true<% if target == "azureblob" %> && bundle config build.nokogiri --use-system-libraries<% end %><% if target == "kafka" || target == "kafka2" %> && bundle config set force_ruby_platform true<% end %> \
3434
&& bundle install --gemfile=/fluentd/Gemfile --path=/fluentd/vendor/bundle \
3535
<% if target == "s3" %>
3636
&& curl -sL -o columnify_0.1.0_Linux_x86_64.tar.gz https://github.com/reproio/columnify/releases/download/v0.1.0/columnify_0.1.0_Linux_x86_64.tar.gz \

0 commit comments

Comments
 (0)