X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=BUILD.sh;h=ab1e685c76ddc3c4eb725ae9b210cafe140ea2d4;hb=c581c67eb7adccd40b66c8153b77fbebfe3e79e3;hp=54e8d96fdad3da371773e915b4ca14a185f2f8e2;hpb=9ad90b9e7f70d1bbf2a5ff8f4e49e57d8a60ba57;p=osm%2FSO.git diff --git a/BUILD.sh b/BUILD.sh index 54e8d96f..ab1e685c 100755 --- a/BUILD.sh +++ b/BUILD.sh @@ -114,10 +114,10 @@ fi if [[ $PLATFORM == ub16 ]]; then PLATFORM_REPOSITORY=${1:-OSM} - PLATFORM_VERSION=${2:-4.3.1.0.53704} + PLATFORM_VERSION=${2:-4.4.2.0.60195} elif [[ $PLATFORM == fc20 ]]; then PLATFORM_REPOSITORY=${1:-OSM} # change to OSM when published - PLATFORM_VERSION=${2:-4.3.1.0.53705} + PLATFORM_VERSION=${2:-4.4.2.0.60195} else echo "Internal error: unknown platform $PLATFORM" exit 1 @@ -149,8 +149,9 @@ if [[ $PLATFORM == ub16 ]]; then curl http://repos.riftio.com/public/xenial-riftware-public-key | sudo apt-key add - # the old mkcontainer always enabled release which can be bad # so remove it - sudo rm -f /etc/apt/sources.list.d/release - sudo curl -o /etc/apt/sources.list.d/${PLATFORM_REPOSITORY}.list http://buildtracker.riftio.com/repo_file/ub16/${PLATFORM_REPOSITORY}/ + sudo rm -f /etc/apt/sources.list.d/release.list /etc/apt/sources.list.d/rbac.list /etc/apt/sources.list.d/OSM.list + # always use the same file name so that updates will overwrite rather than enable a second repo + sudo curl -o /etc/apt/sources.list.d/RIFT.list http://buildtracker.riftio.com/repo_file/ub16/${PLATFORM_REPOSITORY}/ sudo apt-get update # and install the tools @@ -180,14 +181,22 @@ fi if [[ $PLATFORM == ub16 ]]; then # install the RIFT platform code: - sudo apt-get install -y --allow-downgrades rw.toolchain-rwbase=${PLATFORM_VERSION} \ - rw.toolchain-rwtoolchain=${PLATFORM_VERSION} \ - rw.core.mgmt-mgmt=${PLATFORM_VERSION} \ - rw.core.util-util=${PLATFORM_VERSION} \ - rw.core.rwvx-rwvx=${PLATFORM_VERSION} \ - rw.core.rwvx-rwdts=${PLATFORM_VERSION} \ - rw.automation.core-RWAUTO=${PLATFORM_VERSION} \ - rw.core.rwvx-rwha-1.0=${PLATFORM_VERSION} + # remove these packages since some files moved from one to the other, and one was obsoleted + # ignore failures + + PACKAGES="rw.toolchain-rwbase rw.toolchain-rwtoolchain rw.core.mgmt-mgmt rw.core.util-util \ + rw.core.rwvx-rwvx rw.core.rwvx-rwdts rw.automation.core-RWAUTO" + # this package is obsolete. + OLD_PACKAGES="rw.core.rwvx-rwha-1.0" + for package in $PACKAGES $OLD_PACKAGES; do + sudo apt remove -y $package || true + done + + packages="" + for package in $PACKAGES; do + packages="$packages $package=${PLATFORM_VERSION}" + done + sudo apt-get install -y --allow-downgrades $packages sudo apt-get install python-cinderclient @@ -201,6 +210,8 @@ if [[ $PLATFORM == ub16 ]]; then rw.core.mano-mano_yang_ylib-1.0 \ rw.core.mano-common-1.0 \ rw.core.mano-rwsdn_yang_ylib-1.0 \ + rw.core.mano-rwsdnal_yang_ylib-1.0 \ + rw.core.mano-rwsdn-1.0 \ rw.core.mano-mano-types_yang_ylib-1.0 \ rw.core.mano-rwcal-cloudsim-1.0 \ rw.core.mano-rwcal-1.0 \ @@ -294,12 +305,6 @@ else exit 1 fi -# install some base files used to create VNFs -test -d /usr/rift/images || mkdir /usr/rift/images -for file in Fedora-x86_64-20-20131211.1-sda-ping.qcow2 Fedora-x86_64-20-20131211.1-sda-pong.qcow2 Fedora-x86_64-20-20131211.1-sda.qcow2; do - test -f /usr/rift/images/$file || curl -o /usr/rift/images/$file http://repo.riftio.com/releases/open.riftio.com/4.3.1/$file -done - # If you are re-building SO, you just need to run # these two steps if ! $installSO; then