diff --git a/Dockerfile b/Dockerfile index f23921d..2ac3abd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,6 @@ ENV LANG C.UTF-8 RUN apt update RUN apt install squid -yq RUN sed -i 's/http_access deny all/http_access allow all/g' /etc/squid/squid.conf -RUN service squid start RUN cp /etc/squid/squid.conf /etc/squid/squid.conf.backup RUN apt install python3 python3-pip -yq RUN which python3|xargs -i ln -s {} /usr/bin/python diff --git a/run.sh b/run.sh index fc77959..a81d7f7 100644 --- a/run.sh +++ b/run.sh @@ -1,7 +1,8 @@ -#!/usr/bin/env bash +#!/bin/bash nohup python crawler_booter.py --usage crawler common > crawler.log 2>&1 & nohup python scheduler_booter.py --usage crawler common > crawler_scheduler.log 2>&1 & nohup python crawler_booter.py --usage validator init > init_validator.log 2>&1 & nohup python crawler_booter.py --usage validator https > https_validator.log 2>&1& nohup python scheduler_booter.py --usage validator https > validator_scheduler.log 2>&1 & -python squid_update.py --usage https --internal 3 \ No newline at end of file +nohup python squid_update.py --usage https --internal 3 > squid.log 2>&1 & +squid -N -d1 \ No newline at end of file