-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker run.txt
17 lines (9 loc) · 1.09 KB
/
docker run.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
DOCKER BUILD:
In order to run the container first you need to build the image. In the directory which contains Dockerfile in terminal run the next command (LINUX User):
$ sudo docker build -t nombreimagen .
To download MongoDB Image, run the next command, it will take some time:
$ sudo docker pull mongo
At this time we have all the images to build the container, Mongo DB and Cloudera images. In the directory which contains docker-compese.yml in terminal run the next command (LINUX User):
$ sudo docker run -e DONWLOAD_TIME= dwonload time in seconds -e TWEETER_ACCOUNT1= access_token_key -e TWEETER_ACCOUNT2= access_token_secret -e TWEETER_ACCOUNT3= consumer_key -e TWEETER_ACCOUNT4= consumer_secret tweetanalisys
This is the process to run the image in local, however if you have docker.compese.yml you can only run the last command and it works fine. Take into account that download images takes a while.
Last command needs all the variables to run the docker, first is the time in second that you want to download data from Twitter, and the rest are yours Twitter API Key.