X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=build-rtmgr-ubuntu.sh;h=6b886d5289d31f48f258546efb241e4357a65ae1;hb=a33250260638635c502499d5bc16e99da1749b85;hp=34ca51583d905916afa8aa91f3138d63d091d82a;hpb=fc1f59a2ca281b71c9e448c331dfd402034cc02e;p=ric-plt%2Frtmgr.git diff --git a/build-rtmgr-ubuntu.sh b/build-rtmgr-ubuntu.sh index 34ca515..6b886d5 100755 --- a/build-rtmgr-ubuntu.sh +++ b/build-rtmgr-ubuntu.sh @@ -20,9 +20,9 @@ set -eux echo "--> rtmgr-build-ubuntu.sh" curdir=`pwd` -RMRVERSION=3.6.2 -wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr_${RMRVERSION}_amd64.deb && rm -rf rmr_${RMRVERSION}_amd64.deb -wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb && dpkg -i rmr-dev_${RMRVERSION}_amd64.deb && rm -rf rmr-dev_${RMRVERSION}_amd64.deb +RMRVERSION=3.8.0 +wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr_${RMRVERSION}_amd64.deb/download.deb && sudo dpkg -i rmr_${RMRVERSION}_amd64.deb && rm -rf rmr_${RMRVERSION}_amd64.deb +wget --content-disposition https://packagecloud.io/o-ran-sc/staging/packages/debian/stretch/rmr-dev_${RMRVERSION}_amd64.deb/download.deb && sudo dpkg -i rmr-dev_${RMRVERSION}_amd64.deb && rm -rf rmr-dev_${RMRVERSION}_amd64.deb # required to find nng and rmr libs export LD_LIBRARY_PATH=/usr/local/lib @@ -48,7 +48,7 @@ git clone "https://gerrit.o-ran-sc.org/r/ric-plt/appmgr" \ && cp appmgr/api/appmgr_rest_api.yaml api/ \ && rm -rf appmgr -cp -r ../rtmgr/* /tmp/go/src/routing-manager/. +cp -r $curdir/* /tmp/go/src/routing-manager/. cd /tmp/go/src/routing-manager @@ -57,7 +57,7 @@ currnewdir=`pwd` /tmp/go/bin/swagger generate client -f api/appmgr_rest_api.yaml -t pkg/ -m appmgr_model -c appmgr_client -r LICENSE export GO111MODULE=on -ldconfig +sudo ldconfig go build ./cmd/rtmgr.go export RMR_SEED_RT=/tmp/go/src/routing-manager/uta_rtg_ric.rt @@ -82,6 +82,6 @@ cat $currnewdir/pkg/nbi/coverage.txt | grep -v atomic >> coverage_tmp.txt cp $currnewdir/pkg/sbi/coverage.txt coverage_tmp2.txt cat coverage_tmp2.txt coverage_tmp.txt > $curdir/coverage.txt -sed -i -e 's/^routing-manager/rtmgr/' $curdir/coverage.txt +sed -i -e 's/^routing-manager/./' $curdir/coverage.txt echo "--> rtmgr-build-ubuntu.sh ends"