summaryrefslogtreecommitdiffstats
path: root/docs/installation.rst
blob: b22d133e977572cc7fc6aff19d460d41f35eaf5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0
.. Copyright 2018 Intel Corporation, Inc

Installation
============

The Secret Managment Project is a subproject of AAF and will deployed via Helm on Kubernetes
under the OOM Project

.. code-block:: console

    # Set Datastore as Consul
    DATASTORE="consul"
    # Set IP address of where Consul is running
    DATASTORE_IP="localhost"
    # Set mountpath inside the container where persistent data is stored.
    MOUNTPATH="/dkv_mount_path/configs/"
    # Place all Config data which needs to be loaded in default directory.
    DEFAULT_CONFIGS=$(pwd)/mountpath/default
    # Create the directories.
    mkdir -p mountpath/default
    # Login to Nexus.
    docker login -u docker -p docker nexus3.onap.org:10001
    # Pull distributed-kv-store image.
    docker pull nexus3.onap.org:10001/onap/music/distributed-kv-store
    # Run the distributed-kv-store image.
    docker run -e DATASTORE=$DATASTORE -e DATASTORE_IP=$DATASTORE_IP -e MOUNTPATH=$MOUNTPATH -d \
           --name dkv \
           -v $DEFAULT_CONFIGS:/dkv_mount_path/configs/default \
           -p 8200:8200 -p 8080:8080 nexus3.onap.org:10001/onap/music/distributed-kv-store

.. end