Skip to content

mkf-simpson/crimethory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Mist jobs

cd jobs
sbt package
cd ..

Run MQTT server

docker run --name crimethory-mosquitto -d ansi/mosquitto

Run Mist

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

Run streaming jobs

docker exec -it crimethory-mist bash -c "/usr/share/mist/bin/mist start job --config /usr/share/mist/configs/docker.conf --route twitter"

Build application

docker build -t crimethory:latest .

Run application

docker run -p 3000:3000 -d --name crimethory --link crimethory-mosquitto:mosquitto crimethory:latest npm

Tweet something with #trump hashtag