cd jobs
sbt package
cd ..
docker run --name crimethory-mosquitto -d ansi/mosquitto
Create twitter credential file configs/twitter4j.properties
http://twitter4j.org/en/configuration.html
docker run -d --link crimethory-mosquitto:mosquitto -p 2003:2003 --name crimethory-mist -v $PWD/jobs/target/scala-2.11/:/jobs -v $PWD/configs/:/usr/share/mist/configs -v $PWD/configs/twitter4j.properties:/usr/share/spark/conf/twitter4j.properties -t hydrosphere/mist:master-2.0.0 mist
docker exec -it crimethory-mist bash -c "/usr/share/mist/bin/mist start job --config /usr/share/mist/configs/docker.conf --route twitter"
docker build -t crimethory:latest .
docker run -p 3000:3000 -d --name crimethory --link crimethory-mosquitto:mosquitto crimethory:latest npm