@@ -11,20 +11,20 @@ USER root
1111WORKDIR /fluentd
1212
1313# Environment variables
14- ENV PATH /fluentd/vendor/bundle/ruby/2.7 .0/bin:$PATH
15- ENV GEM_PATH /fluentd/vendor/bundle/ruby/2.7 .0:$GEM_PATH
16- ENV GEM_HOME /fluentd/vendor/bundle/ruby/2.7 .0
14+ ENV PATH /fluentd/vendor/bundle/ruby/3.1 .0/bin:$PATH
15+ ENV GEM_PATH /fluentd/vendor/bundle/ruby/3.1 .0:$GEM_PATH
16+ ENV GEM_HOME /fluentd/vendor/bundle/ruby/3.1 .0
1717# skip runtime bundler installation
1818ENV FLUENTD_DISABLE_BUNDLER_INJECTION 1
1919
2020COPY Gemfile* /fluentd/
2121
2222# Install ruby, ruby-libs along with rubygems and bundler.
23- RUN microdnf -y module enable ruby:2.7 \
24- # Install ruby (it's dependencies gdbm-libs) and ruby-libs, disabling week dependencies
25- && microdnf -y install --setopt=install_weak_deps=0 --nodocs ruby-2.7.8 ruby-libs-2.7.8 gdbm-libs \
23+ RUN microdnf -y module enable ruby:3.1 \
24+ # Install ruby and ruby-libs, disabling week dependencies
25+ && microdnf -y install --setopt=install_weak_deps=0 --nodocs ruby-3.1.2 ruby-libs-3.1.2 \
2626# Install rubygems (it's dependencies rubygem-openssl rubygem-psych), disabling week dependencies
27- && microdnf -y install --setopt=install_weak_deps=0 --nodocs rubygems-3.1.6 \
27+ && microdnf -y install --setopt=install_weak_deps=0 --nodocs rubygems-3.3.7 \
2828 && gem install bundler -v 2.3.25 \
2929# Install development dependent packages for gems native installation
3030 && microdnf -y install --nodocs gcc make redhat-rpm-config openssl ruby-devel gcc-c++ libtool libffi-devel bzip2 git \
@@ -34,8 +34,8 @@ RUN microdnf -y module enable ruby:2.7 \
3434 && bundle config --global jobs 9 \
3535 && bundle install --gemfile=/fluentd/Gemfile \
3636# Install tini, init for containers (from EPEL repo)
37- && microdnf -y install oracle-epel-release-el8 \
38- && microdnf -y install tini-0.19.0 \
37+ && microdnf -y install --setopt=install_weak_deps=0 --nodocs oracle-epel-release-el8 \
38+ && microdnf -y install --nodocs tini-0.19.0 \
3939# Install jemalloc (custom make with no docs)
4040 && cd /tmp && ls /tmp \
4141 && git clone -b 5.3.0 https://github.com/jemalloc/jemalloc.git && cd jemalloc/ \
@@ -50,18 +50,18 @@ USER root
5050WORKDIR /fluentd
5151
5252# Environment variables
53- ENV PATH /fluentd/vendor/bundle/ruby/2.7 .0/bin:$PATH
54- ENV GEM_PATH /fluentd/vendor/bundle/ruby/2.7 .0:$GEM_PATH
55- ENV GEM_HOME /fluentd/vendor/bundle/ruby/2.7 .0
53+ ENV PATH /fluentd/vendor/bundle/ruby/3.1 .0/bin:$PATH
54+ ENV GEM_PATH /fluentd/vendor/bundle/ruby/3.1 .0:$GEM_PATH
55+ ENV GEM_HOME /fluentd/vendor/bundle/ruby/3.1 .0
5656# skip runtime bundler installation
5757ENV FLUENTD_DISABLE_BUNDLER_INJECTION 1
5858
5959# Install ruby, ruby-libs along with rubygems and bundler.
60- RUN microdnf -y module enable ruby:2.7 \
61- # Install ruby (it's dependencies gdbm-libs) and ruby-libs, disabling week dependencies
62- && microdnf -y install --setopt=install_weak_deps=0 --nodocs ruby-2.7.8 ruby-libs-2.7.8 gdbm-libs \
60+ RUN microdnf -y module enable ruby:3.1 \
61+ # Install ruby and ruby-libs, disabling week dependencies
62+ && microdnf -y install --setopt=install_weak_deps=0 --nodocs ruby-3.1.2 ruby-libs-3.1.2 \
6363# Install rubygems (it's dependencies rubygem-openssl rubygem-psych), disabling week dependencies
64- && microdnf -y install --setopt=install_weak_deps=0 --nodocs rubygems-3.1.6 \
64+ && microdnf -y install --setopt=install_weak_deps=0 --nodocs rubygems-3.3.7 \
6565 && gem install bundler -v 2.3.25 \
6666 && bundle config --local path /fluentd/vendor/bundle \
6767# clear caches
0 commit comments