Skip to content

Commit

Permalink
Merge pull request hyperledger#642 from sergey-shilov/feature/rocksdb…
Browse files Browse the repository at this point in the history
…-dev-doc

INDY-1205: add dev doc part related to RocksDB installation.
  • Loading branch information
andkononykhin authored Apr 12, 2018
2 parents 5da23a5 + 6b383cc commit 0400e35
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dev-setup/ubuntu/setup-dev-depend-ubuntu16.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@ sudo apt-get install -y libsodium18
echo 'Installed libsodium'


echo 'Installing RocksDB...'
sudo apt-get install -y libbz2-dev \
zlib1g-dev \
liblz4-dev \
libsnappy-dev \
rocksdb=5.8.8
echo 'Installed RocksDB'


echo 'Installing Charm Crypto...'
sudo apt-get install -y python3-charm-crypto
echo 'Installed Charm Crypto'
Expand Down
25 changes: 25 additions & 0 deletions docs/setup-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,31 @@ sudo apt-get install libindy-crypto

See [Indy-Crypto](https://github.com/hyperledger/indy-crypto) on how it can be installed on other platforms.


### Setup RocksDB

Indy depends on RocksDB, an embeddable persistent key-value store for fast storage.

Currently Indy requires RocksDB version 5.8.8 or higher. There is a deb package of RocksDB-5.8.8 and related stuff that
can be used on Ubuntu 16.04 (repository configuration steps may be skipped if Indy-Crypto installation steps have been done):
```
# Start of repository configuration steps
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88
sudo add-apt-repository "deb https://repo.sovrin.org/deb xenial master"
# End of repository configuration steps
sudo apt-get update
sudo apt-get install libbz2-dev \
zlib1g-dev \
liblz4-dev \
libsnappy-dev \
rocksdb=5.8.8
```

See [RocksDB](https://github.com/facebook/rocksdb) on how it can be installed on other platforms.


### Setup Libindy

Indy needs [Libindy](https://github.com/hyperledger/indy-sdk) as a test dependency.
Expand Down

0 comments on commit 0400e35

Please sign in to comment.