...
For the local test activities of the web portal(s), you could use the following guidesinstructions:
Update the "/etc/hosts" file introducing also the new page / portal addresses
Code Block language bash firstline 1 linenumbers true 127.0.0.1 localhost ovp.localhost onap.localhost lfn.localhost
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. RUNWiki Markup for REST api and the Front End Portals by running the following commands:
Code Block language bash firstline 1 linenumbers true git clone https://gerrit.opnfv.org/gerrit/dovetail-webportal [dovetail_path]/dovetail-webportal $HOME/testapi && \
Give the following command in order to build the new enhanced api image
Wiki Markup cd [dovetail_path]/dovetail-webportal/docker sudo docker build --build-arg BRANCH=refs/changes/07/65607/45 -f Dockerfile.web -t opnfv-web . 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
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.Wiki Markup build-arg BRANCH=refs/changes/07/65607/45 --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/45 --build-arg CONTAINER=lfn --build-arg GUI=lfn-ui -f Dockerfile.web -t lfn-web . sudo docker build -f dovetail-webportal/docker/Dockerfile_web-build-arg BRANCH=refs/changes/07/65607/45 -f Dockerfile.api -t opnfv_temp .
rest-api .
Update the docker-compose file , defining as images the ones that have been prepared to use the images created in step 2
Wiki Markup Code Block language bash firstline 1 linenumbers true cd [dovetail_path]/dovetail-webportal/docker vim docker-compose.yml ... — version: '3' services: .... web-opnfvwebopnfv: image: opnfv_temp-web container_name: cvp-web-opnfv .... web-onapwebonap: image: onap_temp-web container_name: cvp-web-onap .... web-lfnweblfn: image: lfn_temp-web container_name: cvp-web-lfn .... cvpapilfnapi: image: rest-api_temp container_name: cvplfn-cvpapiapi ....
Give Start the deployment with the following command in order create the containers
unmigrated-wiki-markup:
Code Block language bash firstline 1 linenumbers true cd [dovetail_path]/dovetail-webportal/docker sudo docker-compose up
Once the docker are createddeployment is up, all three pages are ready for use. Open a browser and use can be accessed by the following addresses:
Wiki Markup Code Block language bash firstline 1 linenumbers true http://opnfv.localhost http://onap.localhost http://lfn.localhost