cc18c1e1b5
Centos 8 stream amphora images were incorrectly using haproxy from Centos 8 NFV network-extras repo. This repo was deleted and was replaced by a Centos 8 stream repo. Change-Id: I5b50ebc5e9443f1a0edd987069d482e03d85e726
22 lines
825 B
Bash
Executable File
22 lines
825 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eu
|
|
set -o xtrace
|
|
|
|
if [[ "$DISTRO_NAME" == "centos" && "$DIB_RELEASE" == "8-stream" ]]; then
|
|
dnf install -y dnf-plugins-core centos-release-nfv-common
|
|
# REVISIT(cgoncalves): replace arch if-else + GPG with release RPM once available
|
|
if [[ "$ARCH" =~ (aarch64|arm64) ]]; then
|
|
yum_arch=aarch64
|
|
elif [[ "$ARCH" =~ (ppc64le|ppc64el) ]]; then
|
|
yum_arch=ppc64le
|
|
elif [[ "$ARCH" =~ (x86_64|amd64) ]]; then
|
|
yum_arch=x86_64
|
|
else
|
|
echo "ERROR: Unsupported architecture $ARCH"
|
|
exit 1
|
|
fi
|
|
dnf config-manager --add-repo http://mirror.centos.org/centos/$DIB_RELEASE/nfv/${yum_arch}/network-extras
|
|
echo gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-NFV >> /etc/yum.repos.d/mirror.centos.org_centos_${DIB_RELEASE}_nfv_*_network-extras.repo
|
|
fi
|