Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction

This options option is for developers to run working locally on SDC.

SDC Simulator is a project that enables emulation of web WEB server that provides security policy and sign-on to the SDC component in dev environments.

  •  Provides a sign on to the basic user roles/functionalities
  •  Creation of basic user accounts

...

Set up the DOCKER_HOST environmental variable

To set environmental variable in Windows (the docker engine environment):

  1. Run `cmd`
  2. Issue command  `set NAME=VALUE`
Code Block
set DOCKER_HOST=tcp://127192.0168.050.15:2375
  • To check if the variable set succeeded issue:
Code Block
echo %DOCKER_HOST%

To compile sdc-simulator docker:

1.  Run 

Code Block
mvn clean install -Ddocker.buildArg.http_proxy=<http_proxy> -Ddocker.buildArg.https_proxy=<https_proxy>pl utils/webseal-simulator -P docker
  • The proxy arguments are passed and used as environmental variables in Dockerfiles

2.  Copy the script /websealsdc-chef-simulatoros/scripts/simulator_docker_run.sh to the docker engine environment and run:

Code Block
titlestart only simulator built local
/data/scripts/docker_run.sh -l -d sdc-sim -sim 
Code Block
titlestart only simulator pull docker from LF
/data/scripts/docker_run.sh -r 1.1-STAGING-latest <docker tag> -d sdc-sim -sim 

3. To verify that sdc-simulator docker is up and running run:

Code Block
docker ps

Make sure that a docker with id: sdc-simulator exists

4. Enter to UI: `http://<ip address>:8285/login`

Code Block
http://localhost192.168.50.5:8285/login

Docker compilation - Docker Engine

1. Build web simulator WAR file run in project “webseal simulator”:

...

2. Ftp war file: webseal-simulator/sdc-simulator folder to your localhost vagrant machine which runs docker engine daemon.
3. Run `docker build -t openecomponap/sdc-simulator:1.1-STAGING-latest <PATH/sdc-simulator>`

Code Block
docker build -t onap/sdc-simulator:1.1-STAGING-latest /tmp/docker/sdc-simulator/
  • If running behind a proxy:

    Code Block
    docker build --build-arg http_proxy=http://URL:PORT --build-arg https_proxy=http://URL:PORT -t openecomp/sdc-simulator:1.1-STAGING-latest /tmp/docker/sdc-simulator/

4. Validate that images pushed to the local repo by executing:

Code Block
docker images

5. Copy the script /websealsdc-chef-simulator/scripts/simulator_dockeros/scriptsdocker_run.sh to the docker engine environment, make it executable (chmod ugo+x) and run: 

Code Block
simulator_/data/scripts/docker_run.sh -r 1.1-STAGING-latestl -d sdc-sim -sim 


6.To verify that sdc-simulator docker is up and running execute:

Code Block
docker ps
  • If no docker sdc-sim simulator running execute `docker ps -a`

...

Code Block
http://localhost:8285/login

WAR compilation

...

:8285/login