Repository with resources to dockerize Linked Connections.
docker build --tag buccaneer/lc-mongodb ./lc-mongodb
docker run -p 28001:27017 --name lc-mongodb-container buccaneer/lc-mongodb
gunzip -c belgianrailconnectionsOct2015.mongojsonstream.gz | mongoimport --db lc --collection connections --port 28001
!! Make sure the host is that of your docker machine.
gunzip -c belgianrailconnectionsOct2015.mongojsonstream.gz | mongoimport --db lc --collection connections --host 192.168.99.100 --port 28001
mongo lc --port 28001
!! Make sure the host is that of your docker machine.
mongo 192.168.99.100:28001/lc
db.connections.ensureIndex({departureTime:1});
quit();
docker build --tag buccaneer/lc-query-server ./lc-query-server
docker run -p 8082:8082 --name lc-query-server-container --link lc-mongodb-container buccaneer/lc-query-server
docker build --tag buccaneer/lc-server ./lc-server
docker run -p 8084:8084 --name lc-server-container --link lc-mongodb-container buccaneer/lc-server
!! Copy lc-cache/conf-linux or lc-cache/conf-windows folder as lc-cache/conf to use the correct configuration.
docker build --tag buccaneer/lc-cache ./lc-cache
docker run -p 8081:8081 --name lc-cache-container --link lc-query-server-container buccaneer/lc-cache
cd lc-query-mix
npm install
node ./bin/querymixgenerator.js > result.jsonstream
node ./bin/querymixexecutor.js < result.jsonstream
For additional instructions check:
https://www.brianchristner.io/how-to-setup-docker-monitoring/
Run InfluxDB container
docker run -d -p 8083:8083 -p 8086:8086 --expose 8090 --expose 8099 --name lc-influx tutum/influxdb
Create an account with username 'root' and password 'root'.
Run cAdvisor container
docker run --volume=/:/rootfs:ro --volume=/var/run:/var/run:rw --volume=/sys:/sys:ro --volume=/var/lib/docker/:/var/lib/docker:ro --publish=8080:8080 --detach=true --link lc-influx:lc-influx --name=cadvisor google/cadvisor:latest -storage_driver=influxdb -storage_driver_db=cadvisor -storage_driver_host=192.168.99.100:8086
Run Grafana container
docker run -d -p 3000:3000 -e INFLUXDB_HOST=192.168.99.100 -e INFLUXDB_PORT=8086 -e INFLUXDB_NAME=cadvisor -e INFLUXDB_USER=root -e INFLUXDB_PASS=root --link lc-influx:lc-influx --name grafana grafana/grafana