Skip to content

Commit a802a45

Browse files
Merge pull request #54 from oracle-quickstart/docker-image_upgrade_ruby31
Ruby upgrade to 3.1.2 along with Fluentd and other dependency gem upd…
2 parents 40fa981 + 88bbd00 commit a802a45

File tree

8 files changed

+56
-54
lines changed

8 files changed

+56
-54
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Change Log
22

3+
## 2023-10-31
4+
### Changed
5+
- Ruby upgrade from 2.7.8 to 3.1.2 for OL8-Slim Fluentd container image. It also includes Fluentd (1.15.3 to 1.16.2) and other dependency gem upgrades.
6+
37
## 2023-09-26
48
### Changed
59
- Ruby upgrade from 2.7.6 to 2.7.8 for OL8-Slim Fluentd container image.

charts/logan/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ apiVersion: v2
55
name: oci-onm-logan
66
description: Charts for sending Kubernetes platform logs, compute logs, and Kubernetes Objects information to OCI Logging Analytics.
77
type: application
8-
version: 3.0.2
8+
version: 3.1.0
99
appVersion: "3.0.0"
1010

1111
dependencies:

charts/logan/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ image:
4848
# Image pull secrets for. Secret must be in the namespace defined by namespace
4949
imagePullSecrets:
5050
# -- Replace this value with actual docker image url
51-
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.0.0
51+
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.1.0
5252
# -- Image pull policy
5353
imagePullPolicy: Always
5454

charts/oci-onm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ type: application
1818
# This is the chart version. This version number should be incremented each time you make changes
1919
# to the chart and its templates, including the app version.
2020
# Versions are expected to follow Semantic Versioning (https://semver.org/)
21-
version: 3.0.2
21+
version: 3.1.0
2222

2323
# This is the version number of the application being deployed. This version number should be
2424
# incremented each time you make changes to the application. Versions are not expected to
@@ -32,7 +32,7 @@ dependencies:
3232
repository: "file://../common"
3333
condition: oci-onm-common.enabled
3434
- name: oci-onm-logan
35-
version: "3.0.2"
35+
version: "3.1.0"
3636
repository: "file://../logan"
3737
condition: oci-onm-logan.enabled
3838
- name: oci-onm-mgmt-agent

charts/oci-onm/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ oci-onm-logan:
3131
kubernetesClusterID: "{{ .Values.global.kubernetesClusterID }}"
3232
kubernetesClusterName: "{{ .Values.global.kubernetesClusterName }}"
3333
image:
34-
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.0.0
34+
url: container-registry.oracle.com/oci_observability_management/oci-la-fluentd-collector:1.1.0
3535
# Go to OCI Logging Analytics Administration, click Service Details, and note the namespace value.
3636
ociLANamespace:
3737
# OCI Logging Analytics Default Log Group OCID
@@ -52,4 +52,4 @@ oci-onm-mgmt-agent:
5252
# Replace this value with actual docker image URL for Management Agent
5353
url: container-registry.oracle.com/oci_observability_management/oci-management-agent:1.0.0
5454
# Image secrets to use for pulling container image (base64 encoded content of ~/.docker/config.json file)
55-
secret:
55+
secret:

logan/docker-images/v1.0/oraclelinux/8-slim/Dockerfile

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ USER root
1111
WORKDIR /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
1818
ENV FLUENTD_DISABLE_BUNDLER_INJECTION 1
1919

2020
COPY 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
5050
WORKDIR /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
5757
ENV 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

logan/docker-images/v1.0/oraclelinux/8-slim/Gemfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33

44
source "https://rubygems.org"
55

6-
gem "oj", "3.14.1"
6+
gem "oj", "3.16.1"
77
gem "json", "2.6.3"
8-
gem "ext_monitor", "0.1.2"
9-
gem "fluentd", "1.15.3"
8+
gem "fluentd", "1.16.2"
109
gem "fluent-plugin-oci-logging-analytics", "2.0.5"
1110
gem "fluent-plugin-concat", "~> 2.5.0"
1211
gem "fluent-plugin-rewrite-tag-filter", "~> 2.4.0"
1312
gem "fluent-plugin-parser-cri", "~> 0.1.1"
14-
gem "fluent-plugin-kubernetes_metadata_filter", "2.13.0"
15-
gem "fluent-plugin-kubernetes-objects", "1.2.1"
13+
gem "fluent-plugin-kubernetes_metadata_filter", "3.3.0"
14+
gem "fluent-plugin-kubernetes-objects", "1.2.3"
Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.1)
4+
addressable (2.8.5)
55
public_suffix (>= 2.0.2, < 6.0)
6-
concurrent-ruby (1.2.0)
7-
cool.io (1.7.1)
6+
concurrent-ruby (1.2.2)
7+
cool.io (1.8.0)
88
domain_name (0.5.20190701)
99
unf (>= 0.0.5, < 1.0.0)
10-
ext_monitor (0.1.2)
1110
ffi (1.15.5)
1211
ffi-compiler (1.0.1)
1312
ffi (>= 1.0.0)
@@ -16,12 +15,12 @@ GEM
1615
fluentd (> 1.0.0, < 2)
1716
fluent-plugin-concat (2.5.0)
1817
fluentd (>= 0.14.0, < 2)
19-
fluent-plugin-kubernetes-objects (1.2.1)
18+
fluent-plugin-kubernetes-objects (1.2.3)
2019
fluentd (>= 1.9.1)
2120
http_parser.rb (= 0.8.0)
2221
kubeclient (~> 4.9.3)
23-
fluent-plugin-kubernetes_metadata_filter (2.13.0)
24-
fluentd (>= 0.14.0, < 1.16)
22+
fluent-plugin-kubernetes_metadata_filter (3.3.0)
23+
fluentd (>= 0.14.0, < 1.17)
2524
kubeclient (>= 4.0.0, < 5.0.0)
2625
lru_redux
2726
fluent-plugin-oci-logging-analytics (2.0.5)
@@ -35,17 +34,17 @@ GEM
3534
fluent-plugin-rewrite-tag-filter (2.4.0)
3635
fluent-config-regexp-type
3736
fluentd (>= 0.14.2, < 2)
38-
fluentd (1.15.3)
37+
fluentd (1.16.2)
3938
bundler
4039
cool.io (>= 1.4.5, < 2.0.0)
4140
http_parser.rb (>= 0.5.1, < 0.9.0)
4241
msgpack (>= 1.3.1, < 2.0.0)
43-
serverengine (>= 2.3.0, < 3.0.0)
44-
sigdump (~> 0.2.2)
42+
serverengine (>= 2.3.2, < 3.0.0)
43+
sigdump (~> 0.2.5)
4544
strptime (>= 0.2.4, < 1.0.0)
4645
tzinfo (>= 1.0, < 3.0)
4746
tzinfo-data (~> 1.0)
48-
webrick (>= 1.4.2, < 1.8.0)
47+
webrick (~> 1.4)
4948
yajl-ruby (~> 1.0)
5049
http (4.4.1)
5150
addressable (~> 2.3)
@@ -61,28 +60,28 @@ GEM
6160
http_parser.rb (0.8.0)
6261
inifile (3.0.0)
6362
json (2.6.3)
64-
jsonpath (1.1.2)
63+
jsonpath (1.1.4)
6564
multi_json
66-
jwt (2.7.0)
65+
jwt (2.7.1)
6766
kubeclient (4.9.3)
6867
http (>= 3.0, < 5.0)
6968
jsonpath (~> 1.0)
7069
recursive-open-struct (~> 1.1, >= 1.1.1)
7170
rest-client (~> 2.0)
7271
lru_redux (1.1.0)
73-
mime-types (3.4.1)
72+
mime-types (3.5.1)
7473
mime-types-data (~> 3.2015)
75-
mime-types-data (3.2022.0105)
76-
msgpack (1.7.1)
74+
mime-types-data (3.2023.1003)
75+
msgpack (1.7.2)
7776
multi_json (1.15.0)
7877
netrc (0.11.0)
7978
oci (2.18.0)
8079
inifile (~> 3.0, >= 3.0.0)
8180
json (>= 1.4.6, < 3.0.0)
8281
jwt (~> 2.1)
83-
oj (3.14.1)
82+
oj (3.16.1)
8483
prometheus-client (4.0.0)
85-
public_suffix (5.0.1)
84+
public_suffix (5.0.3)
8685
rake (13.0.6)
8786
recursive-open-struct (1.1.3)
8887
rest-client (2.1.0)
@@ -91,34 +90,34 @@ GEM
9190
mime-types (>= 1.16, < 4.0)
9291
netrc (~> 0.8)
9392
rubyzip (2.3.2)
94-
serverengine (2.3.1)
93+
serverengine (2.3.2)
9594
sigdump (~> 0.2.2)
96-
sigdump (0.2.4)
95+
sigdump (0.2.5)
96+
stringio (3.0.8)
9797
strptime (0.2.5)
9898
tzinfo (2.0.6)
9999
concurrent-ruby (~> 1.0)
100-
tzinfo-data (1.2022.7)
100+
tzinfo-data (1.2023.3)
101101
tzinfo (>= 1.0.0)
102102
unf (0.1.4)
103103
unf_ext
104104
unf_ext (0.0.8.2)
105-
webrick (1.7.0)
105+
webrick (1.8.1)
106106
yajl-ruby (1.4.3)
107107

108108
PLATFORMS
109109
x86_64-linux
110110

111111
DEPENDENCIES
112-
ext_monitor (= 0.1.2)
113112
fluent-plugin-concat (~> 2.5.0)
114-
fluent-plugin-kubernetes-objects (= 1.2.1)
115-
fluent-plugin-kubernetes_metadata_filter (= 2.13.0)
113+
fluent-plugin-kubernetes-objects (= 1.2.3)
114+
fluent-plugin-kubernetes_metadata_filter (= 3.3.0)
116115
fluent-plugin-oci-logging-analytics (= 2.0.5)
117116
fluent-plugin-parser-cri (~> 0.1.1)
118117
fluent-plugin-rewrite-tag-filter (~> 2.4.0)
119-
fluentd (= 1.15.3)
118+
fluentd (= 1.16.2)
120119
json (= 2.6.3)
121-
oj (= 3.14.1)
120+
oj (= 3.16.1)
122121

123122
BUNDLED WITH
124123
2.3.25

0 commit comments

Comments
 (0)