mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00

* Added replicaset name to bigchaindb config * changed travis replSet to match bigchaindb default * Updated initialize_replica_set It now initializes the replica set with the name provided by the bigchaindb config file. * initialize_replica_set is now called when creating a mongodb connection. This way we are sure that a replica set exists when we return a connection. * Moved the initialize replica set logic to the connection. * update the config documentation
13 lines
413 B
Bash
Executable File
13 lines
413 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e -x
|
|
|
|
if [[ "${TOXENV}" == *-rdb ]]; then
|
|
rethinkdb --daemon
|
|
elif [[ "${BIGCHAINDB_DATABASE_BACKEND}" == mongodb ]]; then
|
|
wget http://downloads.mongodb.org/linux/mongodb-linux-x86_64-3.4.1.tgz -O /tmp/mongodb.tgz
|
|
tar -xvf /tmp/mongodb.tgz
|
|
mkdir /tmp/mongodb-data
|
|
${PWD}/mongodb-linux-x86_64-3.4.1/bin/mongod --dbpath=/tmp/mongodb-data --replSet=bigchain-rs &> /dev/null &
|
|
fi
|