-
Notifications
You must be signed in to change notification settings - Fork 0
/
dev.sh
executable file
·68 lines (61 loc) · 1.99 KB
/
dev.sh
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
#! /bin/bash
set -x
screen -S geocloud -d -m bash
cat > /tmp/geocloud-nmea.conf <<EOF
{
"connections": [
{"handler": "source", "type": "listen", "address": "tcp:1024"},
{"handler": "destination", "type": "listen", "address": "tcp:1025"}
]
}
EOF
screen -t Parser -X -S geocloud screen geocloud-nmea /tmp/geocloud-nmea.conf
# {"handler": "source", "type": "connect", "address": "tcp:153.44.253.27:5631"},
cat > /tmp/gributils-annotator.conf <<EOF
{
"index": "http://localhost:1028",
"connections": [
{"handler": "source", "type": "connect", "address": "tcp:localhost:1025"},
{"handler": "destination", "type": "listen", "address": "tcp:1026"}
]
}
EOF
screen -t Annotator -X -S geocloud screen gributils-annotator --config /tmp/gributils-annotator.conf
cat > /tmp/geocloud-es.conf <<EOF
{
"es_host" : "167.99.194.243:9200",
"connections": [
{"handler": "source", "type": "connect", "address": "tcp:localhost:1026"}
],
"vessels_index": "",
"vessels_mapping": {
"mappings" : {
"_doc": {
"properties" : {
"mmsi": {
"type": "text"
}
}
}
}
},
"positions_index": "",
"positions_mapping": {
"mappings" : {
"_doc": {
"properties" : {
"location": {
"type": "geo_shape"
},
"mmsi": {
"type": "text"
}
}
}
}
}
}
EOF
screen -t ES-ingestor -X -S geocloud screen geocloud-es /tmp/geocloud-es.conf
screen -t GRIB-server -X -S geocloud screen gributils server --database="http://167.99.194.243:9200"
screen -r geocloud