blob: 040baf28411f840e4ee7efd2a4874d00391dfca0 [file] [log] [blame]
Ofir Sonsino49351d72017-10-24 10:18:23 +03001.. This work is licensed under a Creative Commons Attribution 4.0 International License.
2.. http://creativecommons.org/licenses/by/4.0
3
4Installation
5============
6
Ofir Sonsino60ceaa42017-10-29 17:11:07 +02007VID is delivered in a Docker image format.
8
Ofir Sonsino0e1e6a92017-11-08 11:31:34 +02009Installing VID Using a Docker Image
10-----------------------------------
Ofir Sonsino60ceaa42017-10-29 17:11:07 +020011
Ofir Sonsino0e1e6a92017-11-08 11:31:34 +020012Please follow the instructions given below, for installing VID using a Docker image.
Ofir Sonsino60ceaa42017-10-29 17:11:07 +020013
Ofir Sonsino0e1e6a92017-11-08 11:31:34 +0200141. Download the vid & mariadb Docker image
Ofir Sonsino60ceaa42017-10-29 17:11:07 +020015
16.. code-block:: bash
17
18 docker pull mariadb:10
19 docker login -u docker -p docker nexus3.onap.org:10001
Sonsino, Ofir (os0695)c7e98d82018-11-06 11:42:20 +020020 docker pull nexus3.onap.org:10001/onap/vid:3.1.0
Ofir Sonsino60ceaa42017-10-29 17:11:07 +020021
Ofir Sonsino0e1e6a92017-11-08 11:31:34 +0200222. Install by running following command (Use the path for the lf_config folder under the VID git repository as CONFIG_PATH)
Ofir Sonsino60ceaa42017-10-29 17:11:07 +020023
24.. code-block:: bash
25
26 #start Maria-DB
kurczews66a29e42018-09-11 09:29:05 +020027 docker run --name vid-mariadb -e MYSQL_DATABASE=vid_openecomp_epsdk -e MYSQL_USER=vidadmin -e MYSQL_PASSWORD=YOUR_PASSWORD -e MYSQL_ROOT_PASSWORD=ROOT_PASSWORD -v CONFIG_PATH/vid-my.cnf:/etc/mysql/my.cnf -v /var/lib/mysql -d mariadb:10
Ofir Sonsino49351d72017-10-24 10:18:23 +030028
Ofir Sonsino60ceaa42017-10-29 17:11:07 +020029 #start VID server
Sonsino, Ofir (os0695)c7e98d82018-11-06 11:42:20 +020030 docker run -e VID_MYSQL_DBNAME=vid_openecomp_epsdk -e VID_MYSQL_PASS=YOUR_PASSWORD --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d nexus3.onap.org:10001/onap/vid:3.1.0
Ofir Sonsino49351d72017-10-24 10:18:23 +030031
kurczewsf7495cc2018-08-03 09:33:10 +020032Or use docker-compose:
33
34.. code-block:: bash
35
36 docker-compose up