X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=infra%2F10-Nexus%2Fbin%2Finstall;fp=infra%2F10-Nexus%2Fbin%2Finstall;h=c0c5ed04aea7563cf4f90b561730b2a28c07702a;hb=fc4f466d6a05466097cdcfff1990e732c3b288b0;hp=18102f807492981dd62ad7a90483c93246c01801;hpb=1185de0a37a13edef909d9159b4b45687ae05205;p=it%2Fdep.git diff --git a/infra/10-Nexus/bin/install b/infra/10-Nexus/bin/install index 18102f80..c0c5ed04 100755 --- a/infra/10-Nexus/bin/install +++ b/infra/10-Nexus/bin/install @@ -44,7 +44,7 @@ echo "Deploying nexus repo managers for local docker registry and helm repo." echo "Name Space: $NAMESPACE" echo "Helm Release: $RELEASE_NAME" -HOSTPOSTFIX=$(cat $DIR/../charts/values.yaml | grep hostpostfix | awk '{print $2}') +HOSTPOSTFIX=$(cat $DIR/../helm/values.yaml | grep hostpostfix | awk '{print $2}') echo "****************************************************************************************************************" @@ -57,15 +57,17 @@ echo "You can access this nexus here: http://nexus.$HOSTPOSTFIX:$INGRESS_PORT_NE echo "If nexus.$HOSTPOSTFIX is not resolved by your DNS server, please add an entry in your /etc/hosts file." echo "****************************************************************************************************************" -COMMON_CHART_VERSION=$(cat $DIR/../../50-RIC-Platform/charts/common/Chart.yaml | grep version | awk '{print $2}') -helm package -d /tmp $DIR/../../50-RIC-Platform/charts/common +COMMON_CHART_VERSION=$(cat $DIR/../../../ric-platform/50-RIC-Platform/helm/common/Chart.yaml | grep version | awk '{print $2}') +helm package -d /tmp $DIR/../../../ric-platform/50-RIC-Platform/helm/common -cp /tmp/common-$COMMON_CHART_VERSION.tgz $DIR/../charts/charts/ + +mkdir -p $DIR/../helm/charts/ +cp /tmp/common-$COMMON_CHART_VERSION.tgz $DIR/../helm/charts/ if [ -z $OVERRIDEYAML ]; then -helm install --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-nexus" $DIR/../charts +helm install --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-nexus" $DIR/../helm else -helm install -f $OVERRIDEYAML --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-nexus" $DIR/../charts +helm install -f $OVERRIDEYAML --namespace "${NAMESPACE}" --name "${RELEASE_NAME}-nexus" $DIR/../helm fi NEXUS_POD_NAME=$(kubectl get pod -n $NAMESPACE | grep nexus | grep ContainerCreating | awk '{print $1}') @@ -100,7 +102,7 @@ done echo $IS_NEXUS_READY -DOCKERPORT=$(cat $DIR/../charts/templates/deployment.yaml | awk '/.*- name: docker.*/{getline; print $2}') +DOCKERPORT=$(cat $DIR/../helm/templates/deployment.yaml | awk '/.*- name: docker.*/{getline; print $2}') DOCKERREPOSCRIPT="{\"name\":\"create_docker_repo\",\