Versions Compared

Key

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

...

For the local test activities of the web portal(s), you could use the following guides: TBD

  1. Update the "/etc/hosts" file introducing also the new page / portal addresses

    localhost ovp.localhost onap.localhost lfn.localhost

  2. Build new images using as input the code in the local directory instead of the code that have been upstream. That's why a new version of Dockerfile.api and Dockerfile.web should be created.

    Prepare a new 'Dockerfile_api' from the Dockerfile.avi file removing the instructions which clone again the latest merged code locally.

    Wiki Markup
    e.g.
    RUN git clone https://gerrit.opnfv.org/gerrit/dovetail-webportal $HOME/testapi && \ 

    Give the following command in order to build the new enhanced api image


    Wiki Markup
    sudo docker build -f dovetail-webportal/docker/Dockerfile_api -t api_temp .

    Prepare a new 'Dockerfile_web' from the Dockerfile.web with removing the instructions which clone again the latest latest merged code locally.

    Wiki Markup
    e.g.
    RUN git clone https://gerrit.opnfv.org/gerrit/dovetail-webportal $HOME/testapi && \

    Give the following command in order to build the new enhanced web image

    Wiki Markup
    sudo docker build -f dovetail-webportal/docker/Dockerfile_web -t opnfv_temp .

    Repeat the above instructions related to the Dockerfile_web replacing the 'opnfv' path with 'onap' and 'lfn' in order to build the images 'onap_temp' and 'lfn_temp' respectively.

  3. Update the docker-compose file, defining as images the ones that have been prepared in step 2

    Wiki Markup
    —
    version: '3'
    services:
    ....
    web-opnfv:
    image: opnfv_temp
    container_name: cvp-web-opnfv
    ....
    web-onap:
    image: onap_temp
    container_name: cvp-web-onap
    ....
    web-lfn:
    image: lfn_temp
    container_name: cvp-web-lfn
    ....
    cvpapi:
    image: api_temp
    container_name: cvp-cvpapi
    ....


  4. Give the following command in order create the containers

    Wiki Markup
    cd {dovetail_path}/dovetail-webportal/docker
    sudo docker-compose up


  5. Once the docker are created, all three pages are ready for use.  Open a browser and use the following addresses:

    Wiki Markup
    opnfv.localhost
    onap.localhost
    lfn.localhost