Ofir Sonsino | 49351d7 | 2017-10-24 10:18:23 +0300 | [diff] [blame] | 1 | .. This work is licensed under a Creative Commons Attribution 4.0 International License. |
| 2 | .. http://creativecommons.org/licenses/by/4.0 |
| 3 | |
| 4 | Installation |
| 5 | ============ |
| 6 | |
Ofir Sonsino | 60ceaa4 | 2017-10-29 17:11:07 +0200 | [diff] [blame] | 7 | VID is delivered in a Docker image format. |
| 8 | |
Ofir Sonsino | 0e1e6a9 | 2017-11-08 11:31:34 +0200 | [diff] [blame] | 9 | Installing VID Using a Docker Image |
| 10 | ----------------------------------- |
Ofir Sonsino | 60ceaa4 | 2017-10-29 17:11:07 +0200 | [diff] [blame] | 11 | |
Ofir Sonsino | 0e1e6a9 | 2017-11-08 11:31:34 +0200 | [diff] [blame] | 12 | Please follow the instructions given below, for installing VID using a Docker image. |
Ofir Sonsino | 60ceaa4 | 2017-10-29 17:11:07 +0200 | [diff] [blame] | 13 | |
Ofir Sonsino | 0e1e6a9 | 2017-11-08 11:31:34 +0200 | [diff] [blame] | 14 | 1. Download the vid & mariadb Docker image |
Ofir Sonsino | 60ceaa4 | 2017-10-29 17:11:07 +0200 | [diff] [blame] | 15 | |
| 16 | .. code-block:: bash |
| 17 | |
| 18 | docker pull mariadb:10 |
| 19 | docker login -u docker -p docker nexus3.onap.org:10001 |
Ittay Stern | 02a9aa8 | 2019-09-15 11:12:03 +0300 | [diff] [blame] | 20 | docker pull nexus3.onap.org:10001/onap/vid:5.0.3 |
Ofir Sonsino | 60ceaa4 | 2017-10-29 17:11:07 +0200 | [diff] [blame] | 21 | |
Bartosz Gardziejewski | b634818 | 2019-08-19 13:47:19 +0200 | [diff] [blame] | 22 | 2. 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 Sonsino | 60ceaa4 | 2017-10-29 17:11:07 +0200 | [diff] [blame] | 23 | |
| 24 | .. code-block:: bash |
| 25 | |
| 26 | #start Maria-DB |
kurczews | 66a29e4 | 2018-09-11 09:29:05 +0200 | [diff] [blame] | 27 | 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 Sonsino | 49351d7 | 2017-10-24 10:18:23 +0300 | [diff] [blame] | 28 | |
Ofir Sonsino | 60ceaa4 | 2017-10-29 17:11:07 +0200 | [diff] [blame] | 29 | #start VID server |
Ittay Stern | 02a9aa8 | 2019-09-15 11:12:03 +0300 | [diff] [blame] | 30 | 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:5.0.3 |
Ofir Sonsino | 49351d7 | 2017-10-24 10:18:23 +0300 | [diff] [blame] | 31 | |
kurczews | f7495cc | 2018-08-03 09:33:10 +0200 | [diff] [blame] | 32 | Or use docker-compose: |
| 33 | |
| 34 | .. code-block:: bash |
| 35 | |
Bartosz Gardziejewski | b634818 | 2019-08-19 13:47:19 +0200 | [diff] [blame] | 36 | docker-compose up |