X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FUI.git;a=blobdiff_plain;f=BUILD.sh;h=17e2443c174a6d7bfa7891756d854c5394b07684;hp=f1a776596a8196812b02db7fdeb52b6ce28a2743;hb=refs%2Fheads%2Frift300;hpb=3ae3b0785159fdfd2d674d3faab3a7b1eeaed663 diff --git a/BUILD.sh b/BUILD.sh index f1a776596..17e2443c1 100755 --- a/BUILD.sh +++ b/BUILD.sh @@ -56,7 +56,7 @@ while true; do echo echo "SYNOPSIS:" echo " $0 -h|--help" - echo " $0 [--install] [PLATFORM_REPOSITORY] [PLATFORM_VERSION]" + echo " $0 [--install] [PLATFORM_VERSION]" echo echo "DESCRIPTION:" echo " Prepare current system to run $MODULE. By default, the system" @@ -64,7 +64,6 @@ while true; do echo " $MODULE can be installed from a Debian package repository." echo echo " --install: install $MODULE from package" - echo " PLATFORM_REPOSITORY (optional): name of the RIFT.ware repository." echo " PLATFORM_VERSION (optional): version of the platform packages to be installed." echo exit 0;; @@ -79,8 +78,7 @@ set -x # Print commands before executing them ############################################################################### # Set up repo and version -PLATFORM_REPOSITORY=${1:-OSM3} -PLATFORM_VERSION=${2:-5.2.0.1.71454} +PLATFORM_VERSION=${1:-5.2.0.3.73627} ############################################################################### # Main block @@ -92,27 +90,24 @@ cd $(dirname $0) curl http://repos.riftio.com/public/xenial-riftware-public-key | sudo apt-key add - # 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 +echo "deb https://artifactory.riftio.com/debian-OSM xenial main" >/etc/apt/source.list.d/rift.list sudo apt install -y --allow-downgrades rw.tools-container-tools=${PLATFORM_VERSION} rw.tools-scripts=${PLATFORM_VERSION} if $installFromPackages; then # Install module and platform from packages - sudo -H /usr/rift/container_tools/mkcontainer --modes $MODULE --repo ${PLATFORM_REPOSITORY} --rw-version ${PLATFORM_VERSION} + sudo -H /usr/rift/container_tools/mkcontainer --modes $MODULE --rw-version ${PLATFORM_VERSION} else # Install environment to build module - sudo -H /usr/rift/container_tools/mkcontainer --modes $MODULE-dev --repo ${PLATFORM_REPOSITORY} --rw-version ${PLATFORM_VERSION} - sudo -H apt install -y nodejs - sudo -H npm install -g forever + sudo -H /usr/rift/container_tools/mkcontainer --modes $MODULE-dev --rw-version ${PLATFORM_VERSION} # Build and install module make -j16 sudo make install - sudo -H dhclient & fi