From 3e75ab6f1480659d6e12ddbfe3ae86fe2622d6d8 Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Thu, 18 Jan 2018 20:43:47 +0800 Subject: Add scripts to setup ONAP on OpenStack JIRA: Auto-5 Setup ONAP environment on OpenStack. Develop Using Python considering its proved performence within OPNFV testing project, and with its rich library we can operate REST calls and json parsing in a more elegant way, also others can reuse the existing module to develop use cases and test cases. Main workflow: 1. prepare OpenStack to launch ONAP (images, security rules, keypair, etc) 2. launch ONAP stack Change-Id: Id99affccbcaa86be134a535f89b26c54ad137e21 Signed-off-by: Harry Huang --- prepare.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 prepare.sh (limited to 'prepare.sh') diff --git a/prepare.sh b/prepare.sh new file mode 100755 index 0000000..75e1108 --- /dev/null +++ b/prepare.sh @@ -0,0 +1,24 @@ +#!/bin/bash +######################################################################## +# Copyright (c) 2018 Huawei Technologies Co.,Ltd and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Apache License, Version 2.0 +# which accompanies this distribution, and is available at +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Run this script to setup Auto virtualenv and install Auto modules into +# it. +# Usage: +# bash prepare.sh +######################################################################## + +pip install virtualenv +virtualenv venv +source ./venv/bin/activate +pip install setuptools +AUTO_DIR=$(pwd) +cat << EOF >> venv/bin/activate +export AUTO_DIR=$AUTO_DIR +EOF +python setup.py install -- cgit 1.2.3-korg