Skip to content

Commit 68258ec

Browse files
authored
Merge pull request #1274 from percona/exact-fluentbit
Make fluentbit version configurable
2 parents eec1410 + 19196f2 commit 68258ec

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

fluentbit/Dockerfile

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ RUN export GNUPGHOME="$(mktemp -d)" \
2828
# install exact version of PS for repeatability
2929
ENV PERCONA_VERSION=8.0.42-33.1.el9
3030

31+
# install exact version of Fluent Bit for repeatability
32+
ENV FLUENTBIT_VERSION=4.0.1-1
33+
3134
# Add Fluent Bit repo
3235
RUN printf "%s\n" \
3336
"[fluent-bit]" \
@@ -39,14 +42,27 @@ RUN printf "%s\n" \
3942
"enabled=1" \
4043
> /etc/yum.repos.d/fluent-bit.repo
4144

45+
# Install packages
4246
# fluentbit does not have el8 repo and the doc suggests installing el7 rpm
4347
RUN set -ex; \
44-
microdnf install -y hostname postgresql-libs shadow-utils yum-utils fluent-bit logrotate make libpq procps-ng compat-openssl11 percona-mongodb-mongosh \
45-
percona-xtradb-cluster-client-${PERCONA_VERSION} tar vim-minimal; \
48+
microdnf install -y \
49+
hostname \
50+
postgresql-libs \
51+
shadow-utils \
52+
yum-utils \
53+
fluent-bit-${FLUENTBIT_VERSION} \
54+
logrotate \
55+
make \
56+
libpq \
57+
procps-ng \
58+
compat-openssl11 \
59+
percona-mongodb-mongosh \
60+
percona-xtradb-cluster-client-${PERCONA_VERSION} \
61+
tar \
62+
vim-minimal; \
4663
curl -Lf https://github.com/michaloo/go-cron/releases/download/v0.0.2/go-cron.tar.gz -o /tmp/go-cron.tar.gz; \
4764
tar xvf /tmp/go-cron.tar.gz -C /usr/bin; \
48-
rm -rf /var/cache
49-
65+
rm -rf /var/cache /tmp/go-cron.tar.gz
5066

5167
RUN groupadd -g 1001 mysql
5268
RUN useradd -u 1001 -r -g 1001 -s /sbin/nologin \

0 commit comments

Comments
 (0)