mongo-python-driver/binder/init
2021-12-10 15:41:49 -06:00

13 lines
375 B
Plaintext
Executable File

VERSION=`cat VERSION`
PORT=`cat PORT`
MONGODB_BIN=`m bin $VERSION`
mlaunch init --replicaset --name repl0 --nodes 3 --binarypath \
$MONGODB_BIN --port $PORT --hostname localhost --setParameter \
enableTestCommands=1
mongo
VERSION=`cat VERSION`
PORT=`cat PORT`
MONGODB_BIN=`m bin $VERSION`
CMD="$MONGODB_BIN/mongo mongodb://localhost:$PORT/?replicaSet=repl0"
echo "$CMD"
$CMD