From 9ccfcc330fee0726264337ea1dd31d21ae25605f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Tue, 5 Feb 2019 14:41:32 +0100 Subject: [PATCH] chg: Update install guide --- Dockerfile | 8 +++++--- README.md | 17 ++++++++++++----- 2 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index d502340..6c861b6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,13 +7,15 @@ RUN apt-get -y upgrade RUN apt-get -y install git wget python3-pip pwgen RUN pip3 install pipenv +run git clone https://github.com/antirez/redis.git +run cd redis && git checkout 5.0 && make && cd .. + RUN git clone https://github.com/CIRCL/lookyloo.git WORKDIR lookyloo RUN pipenv install run echo LOOKYLOO_HOME="'`pwd`'" > .env -run echo FLASK_APP="'`pwd`/lookyloo'" >> .env RUN sed -i "s/SPLASH = 'http:\/\/127.0.0.1:8050'/SPLASH = 'http:\/\/splash:8050'/g" lookyloo/__init__.py -EXPOSE 5100 -ENTRYPOINT ["pipenv", "run", "start_website.py"] +EXPOSE 5200 +ENTRYPOINT ["pipenv", "run", "start.py"] diff --git a/README.md b/README.md index 80e3012..9ae413f 100644 --- a/README.md +++ b/README.md @@ -48,22 +48,29 @@ sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash --disable-ui --disa # sudo docker run -p 8050:8050 -p 5023:5023 scrapinghub/splash --disable-ui -s 100 --disable-lua -m 50000 ``` +## Install redis + +```bash +git clone https://github.com/antirez/redis.git +cd redis +git checkout 5.0 +make +cd .. +``` + ## Installation of Lookyloo ```bash -got clone https://github.com/CIRCL/lookyloo.git +git clone https://github.com/CIRCL/lookyloo.git cd lookyloo pipenv install echo LOOKYLOO_HOME="'`pwd`'" > .env -echo FLASK_APP="'`pwd`/lookyloo'" >> .env -wget https://d3js.org/d3.v5.min.js -O lookyloo/static/d3.v5.min.js -wget https://cdn.rawgit.com/eligrey/FileSaver.js/5733e40e5af936eb3f48554cf6a8a7075d71d18a/FileSaver.js -O lookyloo/static/FileSaver.js ``` # Run the app ```bash -flask run +pipenv run start.py ``` # Run the app in production