File tree 2 files changed +5
-12
lines changed 2 files changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ RELEASE_VERSION=${FLUENT_BIT_RELEASE_VERSION:-}
11
11
INSTALL_CMD_PREFIX=${FLUENT_BIT_INSTALL_COMMAND_PREFIX:- }
12
12
# Optionally set the name of th package to install, e.g. for legacy td-agent-bit.
13
13
INSTALL_PACKAGE_NAME=${FLUENT_BIT_INSTALL_PACKAGE_NAME:- fluent-bit}
14
- # Optional Apt/Yum additional parameters (e.g. releasever for AL2022)
14
+ # Optional Apt/Yum additional parameters (e.g. releasever for AL2022/AL2023 )
15
15
APT_PARAMETERS=${FLUENT_BIT_INSTALL_APT_PARAMETERS:- }
16
16
YUM_PARAMETERS=${FLUENT_BIT_INSTALL_YUM_PARAMETERS:- }
17
17
57
57
# Will require sudo
58
58
case ${OS} in
59
59
amzn|amazonlinux)
60
- # We need variable expansion and non-expansion on the URL line to pick up the base URL.
61
- # Therefore we combine things with sed to handle it.
62
60
$SUDO sh << SCRIPT
63
61
rpm --import $RELEASE_KEY
64
62
cat << EOF > /etc/yum.repos.d/fluent-bit.repo
65
63
[fluent-bit]
66
64
name = Fluent Bit
67
65
# Legacy server style
68
- baseurl = $RELEASE_URL /amazonlinux/VERSION_SUBSTR
66
+ baseurl = $RELEASE_URL /amazonlinux/$VERSION
69
67
gpgcheck=1
70
68
repo_gpgcheck=1
71
69
gpgkey=$RELEASE_KEY
72
70
enabled=1
73
71
EOF
74
- sed -i 's|VERSION_SUBSTR|\$ releasever/|g' /etc/yum.repos.d/fluent-bit.repo
75
72
cat /etc/yum.repos.d/fluent-bit.repo
76
73
$INSTALL_CMD_PREFIX yum -y $YUM_PARAMETERS install $INSTALL_PACKAGE_NAME$YUM_VERSION
77
74
SCRIPT
78
75
;;
79
76
centos|centoslinux|rhel|redhatenterpriselinuxserver|fedora|rocky|almalinux)
77
+ # We need variable expansion and non-expansion on the URL line to pick up the base URL.
78
+ # Therefore we combine things with sed to handle it.
80
79
$SUDO sh << SCRIPT
81
80
rpm --import $RELEASE_KEY
82
81
cat << EOF > /etc/yum.repos.d/fluent-bit.repo
Original file line number Diff line number Diff line change 53
53
echo " Testing $IMAGE "
54
54
LOG_FILE=$( mktemp)
55
55
56
- UPDATED_FLUENT_BIT_INSTALL_COMMAND_PREFIX=${FLUENT_BIT_INSTALL_COMMAND_PREFIX:- }
57
- # For AL2023 we currently want a fixed 2023 version instead of build timestamps
58
- if [[ " $IMAGE " == " amazonlinux:2023" ]]; then
59
- UPDATED_FLUENT_BIT_INSTALL_COMMAND_PREFIX=" sed -i 's|\$ releasever/|2023/|g' /etc/yum.repos.d/fluent-bit.repo;${FLUENT_BIT_INSTALL_COMMAND_PREFIX:- } "
60
- fi
61
-
62
56
# We do want word splitting for EXTRA_MOUNTS
63
57
# shellcheck disable=SC2086
64
58
$CONTAINER_RUNTIME run --rm -t \
65
59
-e FLUENT_BIT_PACKAGES_URL=" ${FLUENT_BIT_PACKAGES_URL:- https:// packages.fluentbit.io} " \
66
60
-e FLUENT_BIT_PACKAGES_KEY=" ${FLUENT_BIT_PACKAGES_KEY:- https:// packages.fluentbit.io/ fluentbit.key} " \
67
61
-e FLUENT_BIT_RELEASE_VERSION=" ${FLUENT_BIT_RELEASE_VERSION:- } " \
68
- -e FLUENT_BIT_INSTALL_COMMAND_PREFIX=" $UPDATED_FLUENT_BIT_INSTALL_COMMAND_PREFIX " \
62
+ -e FLUENT_BIT_INSTALL_COMMAND_PREFIX=" ${FLUENT_BIT_INSTALL_COMMAND_PREFIX :- } " \
69
63
-e FLUENT_BIT_INSTALL_PACKAGE_NAME=" ${FLUENT_BIT_INSTALL_PACKAGE_NAME:- fluent-bit} " \
70
64
-e FLUENT_BIT_INSTALL_YUM_PARAMETERS=" ${FLUENT_BIT_INSTALL_YUM_PARAMETERS:- } " \
71
65
$EXTRA_MOUNTS \
You can’t perform that action at this time.
0 commit comments