blob: c8f4eb1fba434f7c489b97d97d4b9e85dd60632d [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
Ittay Stern8fde9d52020-05-07 06:58:20 +030020 docker pull nexus3.onap.org:10001/onap/vid:7.0.0
Ofir Sonsino60ceaa42017-10-29 17:11:07 +020021
Bartosz Gardziejewskib6348182019-08-19 13:47:19 +0200222. Install by running following command (Use the path for the lf_config folder under the VID git repository as CONFIG_PATH and path for .jks files for CERTS_PATH, usually epsdk-app-onap/src/main/webapp/WEB-INF/cert )
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
Ittay Stern8fde9d52020-05-07 06:58:20 +030030 docker run -e VID_MYSQL_DBNAME=vid_openecomp_epsdk -e VID_MYSQL_PASS=YOUR_PASSWORD -v CERTS_PATH:/opt/app/vid/etc --name vid-server -p 8080:8080 --link vid-mariadb:vid-mariadb-docker-instance -d nexus3.onap.org:10001/onap/vid:7.0.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
Bartosz Gardziejewskib6348182019-08-19 13:47:19 +020036 docker-compose up