diff --git a/README.md b/README.md index 7237111..a7c4bb4 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ dockerfiles - [x] phpbb - [x] piwik - [x] polipo +- [x] portia - [x] pptpd - [x] privoxy - [x] proxyhub diff --git a/portia/Dockerfile b/portia/Dockerfile new file mode 100644 index 0000000..8db3c26 --- /dev/null +++ b/portia/Dockerfile @@ -0,0 +1,29 @@ +# +# Dockerfile for portia +# + +FROM ubuntu:14.04 + +WORKDIR /app + +RUN set -xe \ + && apt-get update \ + && apt-get install -y git \ + && git clone https://github.com/scrapinghub/portia.git . \ + && apt-get remove -y git \ + && rm -rf /var/lib/apt/list/* + +RUN /app/provision.sh \ + install_deps \ + install_splash \ + install_python_deps \ + configure_nginx \ + cleanup + +ENV PYTHONPATH /app/slybot:/app/slyd + +EXPOSE 9001 + +WORKDIR /app/slyd + +CMD service nginx start; bin/slyd -p 9002 -r /app/slyd/dist diff --git a/portia/README.md b/portia/README.md new file mode 100644 index 0000000..4515c37 --- /dev/null +++ b/portia/README.md @@ -0,0 +1,30 @@ +portia +====== + +![](https://badge.imagelayers.io/vimagick/portia:latest.svg) + +[Portia][1] is a tool that allows you to visually scrape websites without any +programming knowledge required. + +## docker-compose.yml + +```yaml +portia: + image: vimagick/portia + container_name: portia + ports: + - "9001:9001" + volumes: + - ./data:/app/slyd/data + restart: always +``` + +## up and running + +```bash +$ cd ~/fig/portia/ +$ docker-compose up -d +$ firefox http://localhost:9001/static/index.html +``` + +[1]: https://github.com/scrapinghub/portia diff --git a/portia/docker-compose.yml b/portia/docker-compose.yml new file mode 100644 index 0000000..745ef22 --- /dev/null +++ b/portia/docker-compose.yml @@ -0,0 +1,8 @@ +portia: + image: vimagick/portia + container_name: portia + ports: + - "9001:9001" + volumes: + - ./data:/app/slyd/data + restart: always