Try Orion Context Broker in your own computer easily and hassle free!
Orion Context Broker is part of FIWARE.
See the Dockerfile here.
You need to have a running instance of MongoDB. Versions from 2.4 to 3.0 are known to work.
In its simplest form, just do:
sudo docker run -t -i --name orion -p 1026:1026 leandroguillen/fiware-orion -fg
-fgis a parameter that is passed to Orion. In fact, everything after
leandroguillen/fiware-orionis a parameter for Orion. Take a look at all available parameters.
Now Orion runs on a console. Press
Control+C to turn Orion off. Now if you want to run it again you may do
sudo docker restart orion
This will launch it in daemon mode. To stop it do
sudo docker stop orion
Using a dockerized MongoDB instance
This is a useful way to run it if you want to look at the output of Orion, or specify a mongodb host.
sudo docker run -t -i --name orion -p 1026:1026 leandroguillen/fiware-orion -fg -t 0-255 -dbhost <mongo_host>
<mongo_host> is the IP of the runing mongo. You can ommit it if mongo is running in localhost. Run your mongo also dockerized for extra bonus points :) For example:
sudo docker run --name mongo24 -d mongo:2.4
sudo docker inspect mongo24 | grep IPAddress to get the IP of the mongodb server.
With docker-compose (an even easier way)
For this to work you have to install docker-compose.
Create a file named
docker-compose.yml somewhere with the following content:
orion: image: leandroguillen/fiware-orion links: - mongo ports: - "1026:1026" command: -fg -t 0-255 -dbhost mongo mongo: image: mongo:latest
Then type in your terminal:
Now you have two dockers running, one for Orion and one for MongoDB, that are connected to each other.
To see that everything went ok do