aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/sdc
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/vagrant-onap/lib/sdc')
-rwxr-xr-xbootstrap/vagrant-onap/lib/sdc45
1 files changed, 3 insertions, 42 deletions
diff --git a/bootstrap/vagrant-onap/lib/sdc b/bootstrap/vagrant-onap/lib/sdc
index a21e2a418..fee583d79 100755
--- a/bootstrap/vagrant-onap/lib/sdc
+++ b/bootstrap/vagrant-onap/lib/sdc
@@ -1,32 +1,7 @@
#!/bin/bash
-set -o xtrace
-
source /var/onap/functions
-sdc_src_folder=$git_src_folder/sdc
-sdc_repos=("sdc" "sdc/jtosca" "sdc/sdc-distribution-client"
-"sdc/sdc-docker-base" "sdc/sdc-titan-cassandra" "sdc/sdc-tosca"
-"sdc/sdc-vnfdesign" "sdc/sdc-workflow-designer" "sdc/sdc_common")
-
-# _mount_external_partition() - Create partition and mount the external volume
-function _mount_external_partition {
- cat <<EOL > /tmp/sdc_ext_volume_partitions.txt
-# partition table of /dev/sdb
-unit: sectors
-
-/dev/sdb1 : start= 2048, size=209713152, Id=83
-/dev/sdb2 : start= 0, size= 0, Id= 0
-/dev/sdb3 : start= 0, size= 0, Id= 0
-/dev/sdb4 : start= 0, size= 0, Id= 0
-EOL
- sfdisk --force /dev/sdb < /tmp/sdc_ext_volume_partitions.txt
- mkfs -t ext4 /dev/sdb1
- mkdir -p /data
- mount /dev/sdb1 /data
- echo "/dev/sdb1 /data ext4 errors=remount-ro,noatime,barrier=0 0 1" >> /etc/fstab
-}
-
# _init_data_folders() - Function that initialize the data folders
function _init_data_folders {
mkdir -p /data/environments
@@ -47,20 +22,6 @@ alias health='/data/scripts/docker_health.sh'
EOL
}
-# clone_all_sdc_repos() - Function that clones SDC source repo.
-function clone_all_sdc_repos {
- for repo in ${sdc_repos[@]}; do
- clone_repo $repo $sdc_src_folder${repo#*sdc}
- done
-}
-
-# compile_all_sdc_repos() - Function that compiles SDC source repo.
-function compile_all_sdc_repos {
- for repo in ${sdc_repos[@]}; do
- compile_src $sdc_src_folder${repo#*sdc}
- done
-}
-
# get_sdc_images() - Function that retrieves the SDC docker images
function get_sdc_images {
if [[ "$build_image" == "True" ]]; then
@@ -103,11 +64,11 @@ function install_sdc {
# init_sdc() - Function that initialize SDC services
function init_sdc {
- _mount_external_partition
+ mount_external_partition sdb /data/
if [[ "$clone_repo" == "True" ]]; then
- clone_all_sdc_repos
+ clone_repos "sdc"
if [[ "$compile_repo" == "True" ]]; then
- compile_all_sdc_repos
+ compile_repos "sdc"
fi
fi