mirror of https://github.com/CIRCL/lookyloo
chg: Update install guide
parent
8a674ca448
commit
9ccfcc330f
|
@ -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"]
|
||||
|
|
17
README.md
17
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
|
||||
|
|
Loading…
Reference in New Issue