NGSI Go tutorial
Getting Started with NGSI Go
Start
git clone https://github.com/lets-fiware/ngsi-go.git
cd ngsi-go
script/tutorial.sh start
If CrateDB exits immediately with a
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
error, this can be fixed by running thesudo sysctl -w vm.max_map_count=262144
command on the host machine. For further information look within the CrateDB documentation and Docker troubleshooting guide
Shell
script/tutorial.sh shell
docker-compose exec ngsi-test ash
~/e2e #
ngsi broker list --pretty
{
"orion": {
"serverType": "broker",
"serverHost": "http://orion:1026",
"ngsiType": "v2"
},
"orion-ld": {
"serverType": "broker",
"serverHost": "http://orion-ld:1026",
"ngsiType": "ld"
}
}
ngsi server list --pretty
{
"comet": {
"serverType": "comet",
"serverHost": "http://comet:8666",
"tenant": "openiot",
"scope": "/"
},
"iota": {
"serverType": "iota",
"serverHost": "http://iot-agent:4041",
"tenant": "openiot",
"scope": "/"
},
"perseo": {
"serverType": "perseo",
"serverHost": "http://perseo:9090"
},
"quantumleap": {
"serverType": "quantumleap",
"serverHost": "http://quantumleap:8668",
"tenant": "openiot",
"scope": "/"
}
}
Stop
script/tutorial.sh stop