batuhaniskr / twitter-intelligence

Twitter Intelligence OSINT project performs tracking and analysis of the Twitter
MIT License
229 stars 67 forks source link

Add docker support #13

Closed MonaxGT closed 5 years ago

MonaxGT commented 6 years ago

Hi! I add docker support for your application and rewrote requirements.txt. All works if you run:

docker build . -t twitter-intelligence
docker run -it -p 5000:5000 --rm -v "images:/usr/src/app/images" twitter-intelligence

You can drop option -p if it isn't required

MonaxGT commented 5 years ago

I had some troubles when built docker with PyQt from requirements.txt. I added with package on Dockerfile

RUN apk --no-cache --update-cache add gcc gfortran build-base freetype-dev libpng-dev py3-qt5 libxml2-dev libxslt-dev python-dev \
    && pip install --no-cache-dir setuptools \
    && pip install --no-cache-dir -r requirements.txt
MonaxGT commented 5 years ago

I am sorry, i close request by chance

batuhaniskr commented 5 years ago

Okey. You can add new docker-requirements.txt named requirements without PyQt. The existing file may remain attached to PyQt module.

batuhaniskr commented 5 years ago

I converted PyQt module to comment line in requirements.txt for that problem. Thank you for contribution.