/
mongodb.json
72 lines (72 loc) · 2.46 KB
/
mongodb.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"homepage": "https://www.mongodb.org",
"description": "A document database with the scalability and flexibility.",
"version": "4.0.6",
"license": {
"identifier": "SSPL-1.0",
"url": "https://www.mongodb.com/licensing/server-side-public-license"
},
"architecture": {
"64bit": {
"url": "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.6-signed.msi",
"hash": "aeb91f88930c77828c45f6aa41ad8219a8bb7c90c1a3c308b92329afc907cb1c",
"extract_dir": "MongoDB\\Server\\4.0"
}
},
"bin": [
"bin\\bsondump.exe",
"bin\\mongo.exe",
[
"bin\\mongod.exe",
"mongod",
"--config \"$dir\\bin\\mongod.cfg\""
],
"bin\\mongodump.exe",
"bin\\mongoexport.exe",
"bin\\mongofiles.exe",
"bin\\mongoimport.exe",
"bin\\mongorestore.exe",
"bin\\mongos.exe",
"bin\\mongostat.exe",
"bin\\mongotop.exe"
],
"post_install": [
"$file = \"$dir\\bin\\mongod.cfg\"",
"$cfg = (Get-Content $file)",
"$cfg = $cfg -replace '%MONGO_DATA_PATH%', \"$dir\\data\"",
"$cfg = $cfg -replace '%MONGO_LOG_PATH%', \"$dir\\log\"",
"Set-Content $file ($cfg -join \"`n\") -Encoding Ascii -Force"
],
"persist": [
"bin\\mongod.cfg",
"data",
"log"
],
"checkver": {
"url": "https://www.mongodb.com/download-center/community",
"re": "([\\d.]+) \\(current release\\)"
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-$version-signed.msi",
"hash": {
"url": "$url.sha256"
},
"extract_dir": "MongoDB\\Server\\$majorVersion.$minorVersion"
}
}
},
"suggest": {
"vcredist": "extras/vcredist2017"
},
"notes": [
"Windows server 2012/2008 and Windows 7/8/8.1 need KB2999226 to provide Universal C Runtime support for Windows.",
"For more infomations, please refer to:",
"https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows",
"",
"mongod shim use \"$dir\\bin\\mongod.cfg\" as the default config file.",
"To use a different config file, please run",
"\"$dir\\bin\\mongod.exe --config NEW_CONFIG_FILE\""
]
}