aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/portal
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-03-13 12:36:55 -0700
committerGary Wu <gary.i.wu@huawei.com>2018-03-15 16:58:22 +0000
commitdf17a7ff9ba569227e8a2b5b1863800bbb8e1806 (patch)
tree749011aaf1b514e17c31edd9c12252a95f0aec18 /bootstrap/vagrant-onap/lib/portal
parent1393fc2533cae1271126498f1661dec893922dae (diff)
Deprecate vagrant-onap tool
The vagrant-onap tool needs to be moved to its own repo to have better control of versions and autonomy. This change removes the project from integration repository. Change-Id: I90bd4505a9fc7376c31a780aa1b833ee2663af3e Signed-off-by: Victor Morales <victor.morales@intel.com> Depends-On: I79df8c35fccaa266a789217d441a6cf1183bd42a Issue-ID: INT-441
Diffstat (limited to 'bootstrap/vagrant-onap/lib/portal')
-rwxr-xr-xbootstrap/vagrant-onap/lib/portal98
1 files changed, 0 insertions, 98 deletions
diff --git a/bootstrap/vagrant-onap/lib/portal b/bootstrap/vagrant-onap/lib/portal
deleted file mode 100755
index fe5469822..000000000
--- a/bootstrap/vagrant-onap/lib/portal
+++ /dev/null
@@ -1,98 +0,0 @@
-#!/bin/bash
-
-source /var/onap/functions
-
-# clone_all_portal_repos() - Function that clones Portal source repo.
-function clone_all_portal_repos {
- for repo in ${repos[portal]}; do
- if [[ "$repo" == "ui/dmaapbc" ]];then
- prefix="ui"
- else
- prefix="portal"
- fi
- clone_repo $repo ${src_folders[portal]}/${repo#*$prefix}
- done
-}
-
-# compile_all_portal_repos() - Function that compiles Portal source repo.
-function compile_all_portal_repos {
- for repo in ${repos[portal]}; do
- if [[ "$repo" == "ui/dmaapbc" ]];then
- prefix="ui"
- else
- prefix="portal"
- fi
- compile_src ${src_folders[portal]}/${repo#*$prefix}
- done
-}
-
-# _build_portal_images() - Function that builds Portal Docker images from source code
-function _build_portal_images {
- install_maven
-
- pushd ${src_folders[portal]}/deliveries
- chmod +x *.sh
- export MVN=$(which mvn)
- export GLOBAL_SETTINGS_FILE=/usr/share/maven3/conf/settings.xml
- export SETTINGS_FILE=$HOME/.m2/settings.xml
- bash build_portalapps_dockers.sh
- popd
-}
-
-# get_portal_images() - Function to get Portal images.
-function get_portal_images {
- if [[ "$build_image" == "True" ]]; then
- _build_portal_images
- else
- pull_openecomp_image portaldb ecompdb:portal
- pull_openecomp_image portalapps ep:1610-1
- fi
- pull_docker_image mariadb
-}
-
-# _install_mariadb() - Pull and create a MariaDB container
-function _install_mariadb {
- docker create --name data_vol_portal -v /var/lib/mysql mariadb
-}
-
-# install_portal() - Function that installs the source code of Portal
-function install_portal {
- install_docker
- docker rm -f ecompdb_portal
- docker rm -f 1610-1
-
- pushd ${src_folders[portal]}/deliveries
- mkdir -p /PROJECT/OpenSource/UbuntuEP/logs
- install_package unzip
- unzip -o etc.zip -d /PROJECT/OpenSource/UbuntuEP/
-
- _install_mariadb
- install_docker_compose
- bash portal_vm_init.sh
-
- sleep 180
-
- if [ ! -e /opt/config/boot.txt ]; then
- install_package mysql-client
- mysql -u root -p'Aa123456' -h $IP_ADDRESS < Apps_Users_OnBoarding_Script.sql
- echo "yes" > /opt/config/boot.txt
- fi
- popd
-}
-
-# init_portal() - Function that initialize Portal services
-function init_portal {
- if [[ "$clone_repo" == "True" ]]; then
- clone_all_portal_repos
- if [[ "$compile_repo" == "True" ]]; then
- compile_all_portal_repos
- fi
- fi
-
- if [[ "$skip_get_images" == "False" ]]; then
- get_portal_images
- if [[ "$skip_install" == "False" ]]; then
- install_portal
- fi
- fi
-}