Versions Compared

Key

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

...

  1. in order for the dockers to start correctly on the VM the following folders need to be created on the VM.
  2. you need the /opt folder:
    1. in it create /opt/config/
    2. place the following files in this /opt/config/ folder:

    3. View file
      namenexus_username.txt
      height250
      View file
      nameenv_name.txt
      height250
      View file
      namenexus_docker_repo.txt
      height250
      View file
      namenexus_password.txt
      height250
  3. you need a /data folder
    1. in it create /data/environments/  (Note: Do not forget to configure your (BE/FE/Kibana/Elastic search)  machine IP address in the below file.If they are all planned to run in the same 
      machine, configure the same IP address) copy the file from here: https://git.onap.org/sdc/tree/sdc-os-chef/environments/Template.json
    2. rename it to AUTO.json
    3. change all the yyy to ip of the vm you are running on.
    4. this is an example of an env file
      View file
      nameAUTO.json
      height250


    5. this file may change from time to time so keep it updated with the changes done.
    6. For plugins configuration copy the file from https://git.onap.org/sdc/tree/sdc-os-chef/environments/plugins-configuration.yaml and populate update the plugins urls
    7. Below is the example of plugins-configuration.yaml
      View file
      nameplugins-configuration.yaml
      height250
  4. now create a /data/scripts/ folder
  5. in folder /data/scripts/ place the following scripts from the sdc repo sdc repo
    • docker_run.sh
    • docker_login.sh
    • docker_health.sh
  6. provide execution permissions to the scripts

    Code Block
    chmod 777 /data/scripts/*


  7. as root user, launch the following script to test the setup is working (it will pull dockers from the LF repo and start them)

    Code Block
    /data/scripts/docker_run.sh -r 1.1-STAGING-latest 

    on script completion, you will see a successful health check. Depending on you VM performance, some containers may take times to be ready and up : sdc-cs takes about 2/3 mn, sdc-BE takes about 7/8 mn.

  8. SDC API are available : http://yourIP:8080  for "internal API"

  9. in order to access SDC you will need to enable SDC Simulator

...