7f39a935e10d0fb2782180b8579fd83639823199
[joid.git] / ci / deploy.sh
1 #!/bin/bash
2
3 set -ex
4 ./00-bootstrap.sh
5
6 #need to put mutiple cases here where decide this bundle to deploy by default use the odl bundle.
7 # Below parameters are the default and we can according the release
8
9 opnfvsdn=odl
10 opnfvtype=nonha
11 openstack=kilo
12 opnfvlab=intelpod5
13
14 usage() { echo "Usage: $0 [-s <odl|opencontrail>]
15                          [-t <nonha|ha|tip>] 
16                          [-o <juno|kilo|liberty>]
17                          [-l <intelpod5>]" 1>&2 exit 1;}
18
19 while getopts ":s:t:o:l:h:" opt; do
20     case "${opt}" in
21         s)
22             opnfvsdn=${OPTARG}
23             ;;
24         t)
25             opnfvtype=${OPTARG}
26             ;;
27         o)
28             openstack=${OPTARG}
29             ;;
30         l)
31             opnfvlab=${OPTARG}
32             ;;
33         h)
34             usage
35             ;;
36         *)
37             ;;
38     esac
39 done
40
41 #copy the script which needs to get deployed as part of ofnfv release
42 cp ./$opnfvsdn/01-deploybundle.sh ./01-deploybundle.sh
43
44 #case default:
45 ./01-deploybundle.sh $opnfvtype $openstack $opnfvlab
46