Versions Compared

Key

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

...

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 web portal has not been officially released, so the contents have been used only for the demo purposes.

...

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

    Code Block
    languagebash
    firstline1
    linenumberstrue
    127.0.0.1 localhost ovp.localhost onap.localhost lfn.localhost


  2. Build new images for REST api and the Front End Portals by running the following commands:

    Code Block
    languagebash
    firstline1
    linenumberstrue
    git clone https://gerrit.opnfv.org/gerrit/dovetail-webportal [dovetail_path]/dovetail-webportal
    cd [dovetail_path]/dovetail-webportal/docker
    sudo docker build --build-arg BRANCH=refs/changes/07/65607/57 -f Dockerfile.web -t opnfv-web .
    sudo docker build --build-arg BRANCH=refs/changes/07/65607/57 --build-arg CONTAINER=onap --build-arg GUI=onap-ui -f Dockerfile.web -t onap-web .
    sudo docker build --build-arg BRANCH=refs/changes/07/65607/57 --build-arg CONTAINER=lfn --build-arg GUI=lfn-ui -f Dockerfile.web -t lfn-web .
    sudo docker build --build-arg BRANCH=refs/changes/07/65607/57 -f Dockerfile.api -t rest-api .


  3. Create the appropriate config files:

    Code Block
    languagebash
    firstline1
    linenumberstrue
    cd [dovetail_path]/dovetail-webportal/docker
    cat <<EOF > vhost-lfn.env
    VIRTUAL_HOST=lfn.localhost
    EOF
    cat <<EOF > vhost-onap.env
    VIRTUAL_HOST=onap.localhost
    EOF
    cat <<EOF > vhost-opnfv.env
    VIRTUAL_HOST=ovp.localhost
    EOF
    cat <<EOF > config.env
    mongodb_url=mongodb://mongodb:27017/
    base_url=http://ovp.localhost
    local_deployment=True
    PYTHONUNBUFFERED=True
    EOF


  4. Update the docker-compose file to use the images created in step 2

    Code Block
    languagebash
    firstline1
    linenumberstrue
    cd [dovetail_path]/dovetail-webportal/docker
    vim docker-compose.yml
    ...
    —
    version: '3'
    services:
    ....
    webopnfv:
    image: opnfv-web
    container_name: web-opnfv
    ....
    webonap:
    image: onap-web
    container_name: web-onap
    ....
    weblfn:
    image: lfn-web
    container_name: web-lfn
    ....
    lfnapi:
    image: rest-api
    container_name: lfn-api
    ....


  5. Start the deployment with the following command:

    Code Block
    languagebash
    firstline1
    linenumberstrue
    cd [dovetail_path]/dovetail-webportal/docker
    sudo docker-compose up


  6. Once the deployment is up, all three pages can be accessed by the following addresses:

    Code Block
    languagebash
    firstline1
    linenumberstrue
    http://opnfv.localhost
    http://onap.localhost
    http://lfn.localhost