Skip to content

Commit f15e9e4

Browse files
committed
packaging: fix base_url for suse repository
1 parent f810f0c commit f15e9e4

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

install.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -148,27 +148,23 @@ apt-get -y update
148148
$INSTALL_CMD_PREFIX apt-get -y $APT_PARAMETERS install $INSTALL_PACKAGE_NAME$APT_VERSION
149149
SCRIPT
150150
;;
151-
opensuse*|sles)
152-
SUSE_OS="opensuse"
153-
case "${OS}" in
154-
sles|suse) SUSE_OS="sles" ;;
155-
esac
156-
SUSE_VER="${VERSION_ID:-}"
157-
151+
opensuse-leap|sles)
158152
$SUDO sh <<SCRIPT
159153
rpm --import $RELEASE_KEY
160154
cat << EOF > /etc/zypp/repos.d/fluent-bit.repo
161155
[fluent-bit]
162156
name = Fluent Bit
163-
baseurl = $RELEASE_URL/$SUSE_OS/$SUSE_VER
157+
baseurl = $RELEASE_URL/suse/\$releasever
164158
gpgcheck=1
165159
repo_gpgcheck=1
166160
gpgkey=$RELEASE_KEY
167161
enabled=1
162+
type=rpm-md
163+
autorefresh=1
168164
EOF
169165
cat /etc/zypp/repos.d/fluent-bit.repo
170-
zypper --non-interactive refresh
171-
$INSTALL_CMD_PREFIX zypper --non-interactive $ZYPPER_PARAMETERS install $INSTALL_PACKAGE_NAME$ZYPPER_VERSION
166+
zypper --non-interactive --gpg-auto-import-keys refresh
167+
$INSTALL_CMD_PREFIX zypper --non-interactive --gpg-auto-import-keys $ZYPPER_PARAMETERS install $INSTALL_PACKAGE_NAME$ZYPPER_VERSION
172168
SCRIPT
173169
;;
174170
*)

packaging/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ The [`distros`](./distros/) directory contains OCI container definitions used to
3939
| Debian | 10 | arm64v8 | debian/buster.arm64v8 |
4040
| openSUSE | 15.6 | x86_64 | opensuse/15.6 |
4141
| openSUSE | 15.6 | arm64v8 | opensuse/15.6.arm64v8 |
42-
| **SLES** | 15.7 | x86_64 | sles/15.7 |
43-
| **SLES** | 15.7 | arm64v8 | sles/15.7.arm64v8 |
42+
| SLES | 15.7 | x86_64 | sles/15.7 |
43+
| SLES | 15.7 | arm64v8 | sles/15.7.arm64v8 |
4444
| Ubuntu | 24.04 / Noble Numbat | x86_64 | ubuntu/24.04 |
4545
| Ubuntu | 24.04 / Noble Numbat | arm64v8 | ubuntu/24.04.arm64v8 |
4646
| Ubuntu | 22.04 / Jammy Jellyfish | x86_64 | ubuntu/22.04 |

packaging/test-release-packages.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,9 @@ do
136136
-e FLUENT_BIT_INSTALL_ZYPPER_PARAMETERS="${FLUENT_BIT_INSTALL_ZYPPER_PARAMETERS:-}" \
137137
$EXTRA_MOUNTS \
138138
"$IMAGE" \
139-
sh -c "zypper --non-interactive refresh && zypper --non-interactive install gpg curl; $INSTALL_CMD && /opt/fluent-bit/bin/fluent-bit --version" | tee "$LOG_FILE"
139+
sh -c "zypper --non-interactive --gpg-auto-import-keys refresh \
140+
zypper --non-interactive --gpg-auto-import-keys install gpg curl; \
141+
$INSTALL_CMD /opt/fluent-bit/bin/fluent-bit --version" | tee "$LOG_FILE"
140142
check_version "$LOG_FILE"
141143
rm -f "$LOG_FILE"
142144
done

0 commit comments

Comments
 (0)