X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=scripts%2Finstall%2Finstall-base.sh;h=a3d75df2a212e4e25590ae8311fe8f039c51ecf4;hb=6b918d63455df392a260daba83281fc49799f5a4;hp=0456e3f95f8774b7421d8ddfe1f76c0db6ec1d4e;hpb=acdf2fef66569640282c560d0ee2823b5f26f268;p=nonrtric%2Fplt%2Frappmanager.git diff --git a/scripts/install/install-base.sh b/scripts/install/install-base.sh index 0456e3f..a3d75df 100755 --- a/scripts/install/install-base.sh +++ b/scripts/install/install-base.sh @@ -2,6 +2,7 @@ # ============LICENSE_START=============================================== # Copyright (C) 2023 Nordix Foundation. All rights reserved. +# Copyright (C) 2023-2024 OpenInfra Foundation Europe. All rights reserved. # ======================================================================== # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -24,11 +25,25 @@ snap install helm --classic HELM_VERSION=$(helm version --short) echo "Helm version $HELM_VERSION installed." -echo "Installing chartmuseum..." -curl https://raw.githubusercontent.com/helm/chartmuseum/main/scripts/get-chartmuseum | bash -CHART_MUSEUM_VERSION=$(helm version --short) -echo "Chartmuseum version $CHART_MUSEUM_VERSION is installed." +ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" +CM_VERSION="v0.16.1" +CM_PORT="8879" +HELM_LOCAL_REPO="$ROOT_DIR/chartstorage" + +echo "Installing ChartMuseum binary..." +pushd /tmp +wget https://get.helm.sh/chartmuseum-$CM_VERSION-linux-amd64.tar.gz +tar xvfz chartmuseum-$CM_VERSION-linux-amd64.tar.gz +sudo mv /tmp/linux-amd64/chartmuseum /usr/local/bin/chartmuseum +popd + +echo "Starting ChartMuseum on port $CM_PORT..." +nohup chartmuseum --port=$CM_PORT --storage="local" --context-path=/charts --storage-local-rootdir=$HELM_LOCAL_REPO >/dev/null 2>&1 & +echo $! > $ROOT_DIR/CM_PID.txt echo "Install yq..." snap install yq +echo "Creating kubernetes namespace..." +kubectl create ns kserve-test +