From 3de5844ae06c88ad25740176450a20e16b03f556 Mon Sep 17 00:00:00 2001 From: danieleperera Date: Sun, 8 Nov 2020 19:10:26 +0000 Subject: [PATCH] initial development docker --- setup.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 setup.md diff --git a/setup.md b/setup.md new file mode 100644 index 0000000..496c0e4 --- /dev/null +++ b/setup.md @@ -0,0 +1,39 @@ +sudo docker pull scrapinghub/splash + +sudo docker run -d -p 8050:8050 --net="host" scrapinghub/splash + +sudo docker run -it -p 8050:8050 --net="host" \ + -v /home//splash/proxy-profiles:/etc/splash/proxy-profiles \ + -v /home//splash/js-profiles:/etc/splash/js-profiles \ + scrapinghub/splash \ + -v2 + +sudo docker pull zeta0/alpine-tor:latest + +sudo docker run -d -p 5566:5566 -p 2090:2090 -e tors=5 zeta0/alpine-tor + +create file in /home//splash/proxy-profiles/default.ini +>>> +[proxy] +host=localhost +port=9050 +type=SOCKS5 +<<< + +wget 'http://localhost:8050/render.png?url=http://ifconfig.me' -O test_ifconfig.png + +wget 'http://localhost:8050/render.png?url=http://archivecaslytosk.onion/' -O test_onion.png + +curl -x socks5h://localhost:5566 http://archivecaslytosk.onion/ + +** Fix for issue proxy not working ** +https://github.com/scrapinghub/splash/issues/268 + +### Docker useful commands +docker ps -aq +docker stop $(docker ps -aq) +docker rm $(docker ps -aq) +docker rmi $(docker images -q) + + +