mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 17:56:53 +02:00
add portia
This commit is contained in:
parent
eefea6df8a
commit
7b14b4d106
@ -73,6 +73,7 @@ dockerfiles
|
||||
- [x] phpbb
|
||||
- [x] piwik
|
||||
- [x] polipo
|
||||
- [x] portia
|
||||
- [x] pptpd
|
||||
- [x] privoxy
|
||||
- [x] proxyhub
|
||||
|
29
portia/Dockerfile
Normal file
29
portia/Dockerfile
Normal 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
30
portia/README.md
Normal 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
|
8
portia/docker-compose.yml
Normal file
8
portia/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
portia:
|
||||
image: vimagick/portia
|
||||
container_name: portia
|
||||
ports:
|
||||
- "9001:9001"
|
||||
volumes:
|
||||
- ./data:/app/slyd/data
|
||||
restart: always
|
Loading…
Reference in New Issue
Block a user