Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: docker_run.sh is depricated. Changed commands for running SDC to use Maven

...

Info
titleDynamic IP

Remember to update AUTO.json file with your current IP! Most of us have dynamic IP! It could be changed after computer restart. See instruction above.

All this can be done from the cloned repository as we are using the images we have built locally ourselvesFirst cd into the main SDC repository

  $ cd ~/workspace/ONAP/sdc/sdc-os-chef/scripts

Build the Run SDC docker images

  $ sudo ./docker_run.sh -e AUTO -l

Run SDC simulator

  $ sudo ./docker_run.sh -e AUTO -l -d sdc-sim -sim

You can now open the SDC UI locally

  $ firefox http://localhost:8285/login

Run the Sanity tests for backend

  $ sudo ./docker_run.sh -e AUTO -l -d sdc-api-tests -tad

You will see the sanity tests running in a docker container called 'sdc-api-tests'

  $ docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"
NAMES IMAGE STATUS
sdc-api-tests onap/sdc-api-tests:latest Up 20 seconds
sdc-sim onap/sdc-simulator:latest Up 3 minutes
sdc-FE onap/sdc-frontend:latest Up 11 minutes
sdc-BE onap/sdc-backend:latest Up 11 minutes
sdc-onboard-BE onap/sdc-onboard-backend:latest Up 11 minutes
sdc-cs onap/sdc-cassandra:latest Up 13 minutes
sdc-es onap/sdc-elasticsearch:latest Up 14 minutes

Wait until container named 'sdc-api-tests' has exited and you can then view the generated report

$ firefox /data/logs/sdc-api-tests/ExtentReport/SDC_CI_Extent_Report.html

Run the Sanity tests for frontend

  $ sudo ./docker_run.sh -e AUTO -l -d sdc-ui-tests -tud

You will see the sanity tests running in a docker container called 'sdc-ui-tests'

  $ docker ps --format "table {{.Names}}\t{{.Image}}\t{{.Status}}"
NAMES IMAGE STATUS
sdc-ui-tests onap/sdc-ui-tests:latest Up 20 seconds
sdc-sim onap/sdc-simulator:latest Up 3 minutes
sdc-FE onap/sdc-frontend:latest Up 11 minutes
sdc-BE onap/sdc-backend:latest Up 11 minutes
sdc-onboard-BE onap/sdc-onboard-backend:latest Up 11 minutes
sdc-cs onap/sdc-cassandra:latest Up 13 minutes
sdc-es onap/sdc-elasticsearch:latest Up 14 minutes

Wait until container named 'sdc-ui-tests' has exited and you can then view the generated report

mvn clean install -P docker

If you have built the image previously, you can use the fast-build profile
$ mvn clean install -P docker, fast-build


Run SDC container

  $ mvn install -P start-sdc

You can now open the SDC UI locally

  $ firefox http://localhost:8285/login

For more info view sdc/README.md $ firefox /data/logs/sdc-ui-tests/ExtentReport/SDC_UI_Extent_Report.html

Setup if not building SDC locally first

...