/
Elasticsearch6.json
53 lines (53 loc) · 1.98 KB
/
Elasticsearch6.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
{
"version": "6.4.0",
"description": "Distributed, RESTful Search Engine",
"homepage": "https://www.elastic.co/products/elasticsearch",
"license": {
"identifier": "Freeware|Apache-2.0",
"url": "https://github.com/elastic/elasticsearch/blob/master/LICENSE.txt"
},
"architecture": {
"64bit": {
"url": "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.4.0.zip",
"hash": "sha512:04511e661622653c4af5f90ee606a3ea70ebff2ada6ad3397532eef78d126b4e6b0ed8314d5582bd531a406fa54ae0c9eca0d36a2b888a57798c96bb45c5db37"
}
},
"extract_dir": "elasticsearch-6.4.0",
"pre_install": [
" # Overwrite SCRIPT because elasticsearch-env.bat doesn't care if SCRIPT or ES_HOME are already set ...",
"$file = \"$dir\\bin\\elasticsearch-env.bat\"",
"$cont = (Get-Content \"$file\") -replace 'set SCRIPT=%0', \"set SCRIPT=$file\"",
"Set-Content \"$file\" ($cont -join \"`r`n\") -Encoding ASCII",
" # use persistent data/logs directory",
"$file = \"$dir\\config\\elasticsearch.yml\"",
"$cont = (Get-Content \"$file\") -replace '#path.data:.*$', \"path.data: $persist_dir\\data\"",
"$cont = $cont -replace '#path.logs:.*$', \"path.logs: $persist_dir\\logs\"",
"Set-Content \"$file\" ($cont -join \"`r`n\") -Encoding ASCII"
],
"bin": [
"bin\\elasticsearch.bat",
"bin\\elasticsearch-keystore.bat",
"bin\\elasticsearch-plugin.bat",
"bin\\elasticsearch-service.bat"
],
"persist": [
"config",
"plugins"
],
"suggest": {
"JDK": [
"tomato/oraclejdk8"
]
},
"autoupdate": {
"architecture": {
"64bit": {
"url": "https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-$version.zip"
}
},
"hash": {
"url": "$url.sha512"
},
"extract_dir": "elasticsearch-$version"
}
}