1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-21 18:06:36 +02:00

add portia

This commit is contained in:
kev 2016-02-03 15:35:22 +08:00
parent eefea6df8a
commit 7b14b4d106
4 changed files with 68 additions and 0 deletions

View File

@ -73,6 +73,7 @@ dockerfiles
- [x] phpbb
- [x] piwik
- [x] polipo
- [x] portia
- [x] pptpd
- [x] privoxy
- [x] proxyhub

29
portia/Dockerfile Normal file
View File

@ -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

30
portia/README.md Normal file
View File

@ -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

View File

@ -0,0 +1,8 @@
portia:
image: vimagick/portia
container_name: portia
ports:
- "9001:9001"
volumes:
- ./data:/app/slyd/data
restart: always