-# inside RIFT.io this is an NFS mount
-# so just to be safe
-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 -
- 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
-elif [[ $PLATFORM == fc20 ]]; then
- # get the container tools from the correct repository
- sudo rm -f /etc/yum.repos.d/private.repo
- sudo curl -o /etc/yum.repos.d/${PLATFORM_REPOSITORY}.repo \
- http://buildtracker.riftio.com/repo_file/fc20/${PLATFORM_REPOSITORY}/
- sudo yum install --assumeyes rw.tools-container-tools rw.tools-scripts
-else
- echo "Internal error: unknown platform $PLATFORM"
- exit 1
-fi
-
-# enable the OSM repository hosted by RIFT.io
-# this contains the RIFT platform code and tools
-# 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}
-fi