Kiran Kamineni | ac134cb | 2018-05-04 16:50:39 -0700 | [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 | .. Copyright 2018 Intel Corporation, Inc |
| 4 | |
| 5 | Installation |
| 6 | ============ |
| 7 | |
| 8 | The Secret Managment Project is a subproject of AAF and will deployed via Helm on Kubernetes |
| 9 | under the OOM Project |
| 10 | |
| 11 | .. code-block:: console |
| 12 | |
| 13 | # Set Datastore as Consul |
| 14 | DATASTORE="consul" |
| 15 | # Set IP address of where Consul is running |
| 16 | DATASTORE_IP="localhost" |
| 17 | # Set mountpath inside the container where persistent data is stored. |
| 18 | MOUNTPATH="/dkv_mount_path/configs/" |
| 19 | # Place all Config data which needs to be loaded in default directory. |
| 20 | DEFAULT_CONFIGS=$(pwd)/mountpath/default |
| 21 | # Create the directories. |
| 22 | mkdir -p mountpath/default |
| 23 | # Login to Nexus. |
| 24 | docker login -u docker -p docker nexus3.onap.org:10001 |
| 25 | # Pull distributed-kv-store image. |
| 26 | docker pull nexus3.onap.org:10001/onap/music/distributed-kv-store |
| 27 | # Run the distributed-kv-store image. |
| 28 | docker run -e DATASTORE=$DATASTORE -e DATASTORE_IP=$DATASTORE_IP -e MOUNTPATH=$MOUNTPATH -d \ |
| 29 | --name dkv \ |
| 30 | -v $DEFAULT_CONFIGS:/dkv_mount_path/configs/default \ |
| 31 | -p 8200:8200 -p 8080:8080 nexus3.onap.org:10001/onap/music/distributed-kv-store |
| 32 | |
| 33 | .. end |