aboutsummaryrefslogtreecommitdiffstats
path: root/metis/scripts/build-package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'metis/scripts/build-package.sh')
-rw-r--r--metis/scripts/build-package.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/metis/scripts/build-package.sh b/metis/scripts/build-package.sh
index f6413e39..b50c1ea7 100644
--- a/metis/scripts/build-package.sh
+++ b/metis/scripts/build-package.sh
@@ -83,18 +83,22 @@ update_fdio_repo() {
REPO_VPP_URL="${NEXUS_PROXY}/content/repositories/fd.io.stable.1701.ubuntu.xenial.main/"
REPO=${REPO_NAME:-"master.ubuntu.xenial.main"}
REPO_CICN_URL="${NEXUS_PROXY}/content/repositories/fd.io.${REPO}"
+ echo "deb ${REPO_VPP_URL} ./" | sudo tee /etc/apt/sources.list.d/99fd.io.list
+ echo "deb ${REPO_CICN_URL} ./" | sudo tee /etc/apt/sources.list.d/99fd.io.master.list
elif [ "$DISTRIB_CODENAME" == "trusty" ]; then
REPO_VPP_URL="${NEXUS_PROXY}/content/repositories/fd.io.stable.1701.ubuntu.trusty.main/"
REPO=${REPO_NAME:-"master.ubuntu.trusty.main"}
REPO_CICN_URL="${NEXUS_PROXY}/content/repositories/fd.io.${REPO}"
+ echo "deb ${REPO_VPP_URL} ./" | sudo tee /etc/apt/sources.list.d/99fd.io.list
+ echo "deb ${REPO_CICN_URL} ./" | sudo tee /etc/apt/sources.list.d/99fd.io.master.list
+ elif [ "$DISTRIB_CODENAME" == "bionic" ]; then
+ curl -s https://packagecloud.io/install/repositories/fdio/release/script.deb.sh | sudo bash
+ curl -s https://packagecloud.io/install/repositories/fdio/master/script.deb.sh | sudo bash
else
echo "Distribution $DISTRIB_CODENAME is not supported"
exit -1
fi
- echo "deb ${REPO_VPP_URL} ./" | sudo tee /etc/apt/sources.list.d/99fd.io.list
- echo "deb ${REPO_CICN_URL} ./" | sudo tee /etc/apt/sources.list.d/99fd.io.master.list
-
elif [ "$DISTRIB_ID" == "CentOS" ]; then
REPO_VPP_URL="${NEXUS_PROXY}/content/repositories/fd.io.centos7/"
REPO=${REPO_NAME:-"master.centos7"}