Anuket Project

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Develop and update official OVP web portal

For OVP Web development, the  source code can be found in github https://github.com/opnfv/dovetail-webportal.

The web portal is composed by 5 different Docker containers and the corresponding Docker images are,

  • opnfv/testapi:cvp.0.5.0
  • mongo:3.2.1
  • jwilder/nginx-proxy
  • opnfv/dovetail-webportal-web:latest
  • opnfv/dovetail-webportal-api:latest

The first 3 Docker images are basic images and has no relationship with dovetail-webportal repo. So in order to update the web, it only needs to update the last 2 Docker images.

These 2 images will be rebuilt automatically when there are new patched merged to repo dovetail-webportal.

Tag the repo (e.g. 2.0.0), then it will build 2 docker images with that tag, and they can be used for updating official OVP web portal.

After the Docker images have been successfully pushed to Dovetail Docker hub, contact Trevor Bramwell to use the new Docker images to update the Web.

Test web portal locally

Before updating the official web, it needs to test locally.

Pull the dovetail-webportal source code and download the 5 docker images mentioned before.

Go to dovetail-webportal/docker, refer to file README.rst to edit config.env and vhost.env.

Run all containers with docker-compose.yml. (exec cmd: docker-compose up -d)

Use the local IP and port (default is 8000) to access the local web.

ONAP web portal

The ONAP web portal prototype has been demonstrated by Dan XuUnknown User (pkaralis) and Unknown User (skatsaounis) in ONAP DDF + OPNFV Plugfest.

You can find both parts (Part 1 and Part 2) in ONAP DDF + OPNFV Plugfest wiki.

The Part 2 is considered as the presentation of the demo of the ONAP web portal along with screen shots for each page of the portal.

Apart of the ONAP portal itself, in this presentation, a common LFN page has been presented as a central started point and as a introduction page.


The ONAP web portal uses the same Docker containers and the corresponding Docker images with OVP web portal.

The ONAP portal is still under development phase, but you can deploy it locally using the following patches:

  1. https://gerrit.opnfv.org/gerrit/#/c/65583/
  2. https://gerrit.opnfv.org/gerrit/#/c/65607/

The web portal as well as the LFN introduction page have not been officially released, so the contents have been used only for the demo purposes.


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

  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.

    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


    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.

    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

    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


    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

    cd

    Unknown macro: {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:

    opnfv.localhost
    onap.localhost
    lfn.localhost



  • No labels