Tweet Analyzer
940
This component analyzes fetched tweets from Twitter before sending them to a message queue.
In order to build this project as well as deploy a new image to docker hub, perform the following steps:
Invoke mvn package to install and package the project into a JAR located in the target folder.
Login to your account to dockerhub: docker login
From the root of this project, build a new docker image with the respective version: docker build -t tweetsentimentanalysis/analyzer:0.0.1 .
Run docker push tweetsentimentanalysis/analyzer:0.0.1 to deploy to dockerhub
If you do not want to build the container by your own, you may use the following to get the image from DockerHub:
docker pull tweetsentimentanalysis/analyzer:latest
After you have built the container, you may run it using the following command: docker run -e AWS_ACCESS_KEY_ID='...' -e AWS_SECRET_ACCESS_KEY='...' -e NO_THREADS='1' tweetsentimentanalysis/analyzer:0.0.1 which runs the container, i.e. consumes fetched tweets, analyzes them and pushes them back to a message queue.
Use the appropriate credentials for this.
In order to clean up, you may want to remove the previously created image and container:
docker ps -a in order list created containers.docker stop <ID> && docker rm <ID>docker images to list all created imagesdocker rmi <ID> with the id of the image to remove itContent type
Image
Digest
Size
890.4 MB
Last updated
over 9 years ago
docker pull tweetsentimentanalysis/analyzer