mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
13 lines
405 B
Bash
Executable File
13 lines
405 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=rs0 &> /dev/null &
|
|
fi
|