if [[ $PLATFORM == ub16 ]]; then
PLATFORM_REPOSITORY=${1:-OSM}
- PLATFORM_VERSION=${2:-4.3.1.0.49556}
+ 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.49553-1}
+ PLATFORM_VERSION=${2:-4.3.1.0.53705}
else
echo "Internal error: unknown platform $PLATFORM"
exit 1
###############################################################################
# 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)
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
# 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
if [[ $PLATFORM == ub16 ]]; then
# install the RIFT platform code:
- sudo apt-get install -y rw.toolchain-rwbase=${PLATFORM_VERSION} \
+ 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-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
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
+