add vendor

This commit is contained in:
deepzz0
2017-02-18 15:23:57 +08:00
parent 4ebbc38cc0
commit 562f4d86c6
1371 changed files with 369552 additions and 2 deletions
+57
View File
@@ -0,0 +1,57 @@
set -e
MONGOVERSION=$(mongod --version | sed -n 's/.*v\([0-9]\+\.[0-9]\+\)\..*/\1/p')
MONGOMAJOR=$(echo $MONGOVERSION | sed 's/\([0-9]\+\)\..*/\1/')
MONGOMINOR=$(echo $MONGOVERSION | sed 's/[0-9]\+\.\([0-9]\+\)/\1/')
versionAtLeast() {
TESTMAJOR="$1"
TESTMINOR="$2"
if [ "$MONGOMAJOR" -gt "$TESTMAJOR" ]; then
return 0
fi
if [ "$MONGOMAJOR" -lt "$TESTMAJOR" ]; then
return 100
fi
if [ "$MONGOMINOR" -ge "$TESTMINOR" ]; then
return 0
fi
return 100
}
COMMONDOPTSNOIP="
--nohttpinterface
--noprealloc
--nojournal
--smallfiles
--nssize=1
--oplogSize=1
--dbpath ./db
"
COMMONDOPTS="
$COMMONDOPTSNOIP
--bind_ip=127.0.0.1
"
COMMONCOPTS="
$COMMONDOPTS
"
COMMONSOPTS="
--chunkSize 1
--bind_ip=127.0.0.1
"
if versionAtLeast 3 2; then
# 3.2 doesn't like --nojournal on config servers.
#COMMONCOPTS="$(echo "$COMMONCOPTS" | sed '/--nojournal/d')"
# Using a hacked version of MongoDB 3.2 for now.
# Go back to MMAPv1 so it's not super sluggish. :-(
COMMONDOPTSNOIP="--storageEngine=mmapv1 $COMMONDOPTSNOIP"
COMMONDOPTS="--storageEngine=mmapv1 $COMMONDOPTS"
COMMONCOPTS="--storageEngine=mmapv1 $COMMONCOPTS"
fi
if [ "$TRAVIS" = true ]; then
set -x
fi
View File
Binary file not shown.
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONCOPTS \
--port 40101 \
--configsvr
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONCOPTS \
--port 40102 \
--configsvr
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
. ../.env
exec mongod $COMMONCOPTS \
--port 40103 \
--configsvr \
--auth \
--keyFile=../../certs/keyfile
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
. ../.env
if [ x$NOIPV6 = x1 ]; then
BINDIP="127.0.0.1"
else
BINDIP="127.0.0.1,::1"
fi
exec mongod $COMMONDOPTSNOIP \
--shardsvr \
--bind_ip=$BINDIP \
--port 40001 \
--ipv6
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--port 40002 \
--auth
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+12
View File
@@ -0,0 +1,12 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--port 40003 \
--auth \
--sslMode preferSSL \
--sslCAFile ../../certs/server.pem \
--sslPEMKeyFile ../../certs/server.pem
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs1 \
--port 40011
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs1 \
--port 40012
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs1 \
--port 40013
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs2 \
--port 40021
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs2 \
--port 40022
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs2 \
--port 40023
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs3 \
--port 40031 \
--keyFile=../../certs/keyfile
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs3 \
--port 40032 \
--keyFile=../../certs/keyfile
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs3 \
--port 40033 \
--keyFile=../../certs/keyfile
View File
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongod $COMMONDOPTS \
--shardsvr \
--replSet rs4 \
--port 40041
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
. ../.env
exec mongos $COMMONSOPTS \
--port 40201 \
--configdb 127.0.0.1:40101
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
. ../.env
exec mongos $COMMONSOPTS \
--port 40202 \
--configdb 127.0.0.1:40102
+3
View File
@@ -0,0 +1,3 @@
#!/bin/sh
exec cat - > log.txt
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
. ../.env
exec mongos $COMMONSOPTS \
--port 40203 \
--configdb 127.0.0.1:40103 \
--keyFile=../../certs/keyfile