aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2018-02-12 16:51:40 -0800
committerVictor Morales <victor.morales@intel.com>2018-02-12 16:51:40 -0800
commit56cd8df0aca02a10c99744276f78a545eb20288a (patch)
treec11cac91498a8d19614061acda6a94079e80184b /bootstrap
parent20bb506a4707a7a951329afa5cad43c333cf75c4 (diff)
Forward port for SDC simulator
The SDC simulator thru the port 8285, this change allows to accces it using localhost url. Change-Id: I008635047443c11e298e4d15c4d2314b514f8e2f Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-ID: SDC-993
Diffstat (limited to 'bootstrap')
-rw-r--r--bootstrap/vagrant-onap/Vagrantfile5
-rwxr-xr-xbootstrap/vagrant-onap/lib/sdc6
2 files changed, 9 insertions, 2 deletions
diff --git a/bootstrap/vagrant-onap/Vagrantfile b/bootstrap/vagrant-onap/Vagrantfile
index 72d73abc1..b96e535c0 100644
--- a/bootstrap/vagrant-onap/Vagrantfile
+++ b/bootstrap/vagrant-onap/Vagrantfile
@@ -202,7 +202,10 @@ nodes = [
:ram => 8 * 1024,
:groups => ["individual"],
:args => ["sdc"],
- :hd => { :virtualbox => "20480", :libvirt => "20G", }
+ :hd => { :virtualbox => "20480", :libvirt => "20G", },
+ :fwds => [
+ { :guest => 8285, :host => 8285, :guest_ip => '192.168.50.5' },
+ ]
},
{
:name => "sdnc",
diff --git a/bootstrap/vagrant-onap/lib/sdc b/bootstrap/vagrant-onap/lib/sdc
index 91523f85f..d17accf93 100755
--- a/bootstrap/vagrant-onap/lib/sdc
+++ b/bootstrap/vagrant-onap/lib/sdc
@@ -24,9 +24,9 @@ EOL
# get_sdc_images() - Function that retrieves the SDC docker images
function get_sdc_images {
+ build_docker_image ${src_folders[sdc]}/sdc-docker-base
build_docker_image ${src_folders[sdc]}/utils/webseal-simulator docker
if [[ "$build_image" == "True" ]]; then
- build_docker_image ${src_folders[sdc]}/sdc-docker-base
compile_src ${src_folders[sdc]}
for project in catalog-fe test-apis-ci; do
compile_src ${src_folders[sdc]}/$project
@@ -45,6 +45,10 @@ function install_sdc {
local ENV_NAME=$dmaap_topic
local MR_IP_ADDR='10.0.11.1'
+ pushd ${src_folders[sdc]}/utils/webseal-simulator
+ bash scripts/simulator_docker_run.sh
+ popd
+
_init_data_folders
cp ${src_folders[sdc]}/sdc-os-chef/environments/Template.json /data/environments
cp ${src_folders[sdc]}/sdc-os-chef/scripts/docker_run.sh /data/scripts