X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=BUILD.sh;h=54e8d96fdad3da371773e915b4ca14a185f2f8e2;hb=3f1ff0e426e6838e5b089805582dfd4a396e4b7e;hp=cb6fb37b93a249d8270b259797a06463ac8e2b29;hpb=ba6932918a2dbd2c5fdc2eaeab7fb8be85faa8b7;p=osm%2FSO.git diff --git a/BUILD.sh b/BUILD.sh index cb6fb37b..54e8d96f 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.50309} + PLATFORM_VERSION=${2:-4.3.1.0.53704} elif [[ $PLATFORM == fc20 ]]; then PLATFORM_REPOSITORY=${1:-OSM} # change to OSM when published - PLATFORM_VERSION=${2:-4.3.1.0.50310} + PLATFORM_VERSION=${2:-4.3.1.0.53705} else echo "Internal error: unknown platform $PLATFORM" exit 1 @@ -126,6 +126,17 @@ fi ############################################################################### # Main block +# Disable apt-daily.service and apt-daily.timer + +DAILY_TIMER='apt-daily.timer' +DAILY_SERVICE='apt-daily.service' +if [ $(systemctl is-active $DAILY_TIMER) = "active" ] +then + systemctl stop $DAILY_TIMER + systemctl disable $DAILY_TIMER + systemctl disable $DAILY_SERVICE +fi + # must be run from the top of a workspace cd $(dirname $0) @@ -136,12 +147,15 @@ test -h /usr/rift && sudo rm -f /usr/rift if [[ $PLATFORM == ub16 ]]; then # enable the right repos 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 apt-get update # and install the tools sudo apt remove -y rw.toolchain-rwbase tcpdump - sudo apt-get install -y rw.tools-container-tools rw.tools-scripts python + sudo apt-get install -y --allow-downgrades rw.tools-container-tools=${PLATFORM_VERSION} rw.tools-scripts=${PLATFORM_VERSION} python elif [[ $PLATFORM == fc20 ]]; then # get the container tools from the correct repository sudo rm -f /etc/yum.repos.d/private.repo @@ -158,7 +172,9 @@ fi # and install of the packages required to build and run # this module if $runMkcontainer; then + sudo apt-get install -y libxml2-dev libxslt-dev sudo /usr/rift/container_tools/mkcontainer --modes build --modes ext --repo ${PLATFORM_REPOSITORY} + sudo pip3 install lxml==3.4.0 fi @@ -172,25 +188,52 @@ if [[ $PLATFORM == ub16 ]]; then rw.core.rwvx-rwdts=${PLATFORM_VERSION} \ rw.automation.core-RWAUTO=${PLATFORM_VERSION} \ rw.core.rwvx-rwha-1.0=${PLATFORM_VERSION} + + sudo apt-get install python-cinderclient sudo chmod 777 /usr/rift /usr/rift/usr/share if $installSO; then sudo apt-get install -y \ - rw.core.mc-\*=${PLATFORM_VERSION} + rw.core.mano-rwcal_yang_ylib-1.0 \ + rw.core.mano-rwconfig_agent_yang_ylib-1.0 \ + rw.core.mano-rwlaunchpad_yang_ylib-1.0 \ + 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-mano-types_yang_ylib-1.0 \ + rw.core.mano-rwcal-cloudsim-1.0 \ + rw.core.mano-rwcal-1.0 \ + rw.core.mano-rw_conman_yang_ylib-1.0 \ + rw.core.mano-rwcalproxytasklet-1.0 \ + rw.core.mano-rwlaunchpad-1.0 \ + rw.core.mano-rwcal-openmano-vimconnector-1.0 \ + rw.core.mano-rwcal-propcloud1-1.0 \ + rw.core.mano-lpmocklet_yang_ylib-1.0 \ + rw.core.mano-rwmon-1.0 \ + rw.core.mano-rwcloud_yang_ylib-1.0 \ + rw.core.mano-rwcal-openstack-1.0 \ + rw.core.mano-rw.core.mano_foss \ + rw.core.mano-rwmon_yang_ylib-1.0 \ + rw.core.mano-rwcm-1.0 \ + rw.core.mano-rwcal-mock-1.0 \ + rw.core.mano-rwmano_examples-1.0 \ + rw.core.mano-rwcal-cloudsimproxy-1.0 \ + rw.core.mano-models-1.0 \ + rw.core.mano-rwcal-aws-1.0 fi if $installUI; then sudo apt-get install -y \ - rw.ui-about=${PLATFORM_VERSION} \ - rw.ui-logging=${PLATFORM_VERSION} \ - rw.ui-skyquake=${PLATFORM_VERSION} \ - rw.ui-accounts=${PLATFORM_VERSION} \ - rw.ui-composer=${PLATFORM_VERSION} \ - rw.ui-launchpad=${PLATFORM_VERSION} \ - rw.ui-debug=${PLATFORM_VERSION} \ - rw.ui-config=${PLATFORM_VERSION} \ - rw.ui-dummy_component=${PLATFORM_VERSION} + rw.ui-about \ + rw.ui-logging \ + rw.ui-skyquake \ + rw.ui-accounts \ + rw.ui-composer \ + rw.ui-launchpad \ + rw.ui-debug \ + rw.ui-config \ + rw.ui-dummy_component fi elif [[ $PLATFORM == fc20 ]]; then @@ -269,8 +312,6 @@ if [[ $UIPathToBuild ]]; then sudo make -C $UIPathToBuild install fi -echo "To run SO with UI please run:" -echo 'sudo -H /usr/rift/rift-shell -r -i /usr/rift -a /usr/rift/.artifacts -- ./demos/launchpad.py --use-xml-mode' -echo -echo "To run SO without UI please run:" -echo 'sudo -H /usr/rift/rift-shell -r -i /usr/rift -a /usr/rift/.artifacts -- ./demos/launchpad.py --use-xml-mode --no-ui' +echo "Creating Service ...." +sudo $(dirname $0)/create_launchpad_service +