mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-01-10 04:19:24 +02:00
update scrapyd
This commit is contained in:
parent
45064c7773
commit
3bac9cc61b
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Dockerfile for scrapyd (python2)
|
||||
# Dockerfile for scrapyd (python2) [deprecated]
|
||||
#
|
||||
|
||||
FROM debian:buster
|
||||
|
@ -34,32 +34,36 @@ Please use this as base image for your own project.
|
||||
## docker-compose.yml
|
||||
|
||||
```yaml
|
||||
scrapyd:
|
||||
image: vimagick/scrapyd:py3
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python3.7/dist-packages
|
||||
restart: unless-stopped
|
||||
version: "3.8"
|
||||
|
||||
scrapy:
|
||||
image: vimagick/scrapyd:py3
|
||||
command: bash
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: unless-stopped
|
||||
services:
|
||||
|
||||
scrapyrt:
|
||||
image: vimagick/scrapyd:py3
|
||||
command: scrapyrt -i 0.0.0.0 -p 9080
|
||||
ports:
|
||||
- "9080:9080"
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: unless-stopped
|
||||
scrapyd:
|
||||
image: vimagick/scrapyd:py3
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python3.9/dist-packages
|
||||
restart: unless-stopped
|
||||
|
||||
scrapy:
|
||||
image: vimagick/scrapyd:py3
|
||||
command: bash
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: unless-stopped
|
||||
|
||||
scrapyrt:
|
||||
image: vimagick/scrapyd:py3
|
||||
command: scrapyrt -i 0.0.0.0 -p 9080
|
||||
ports:
|
||||
- "9080:9080"
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: unless-stopped
|
||||
```
|
||||
|
||||
## Run it as background-daemon for scrapyd
|
||||
|
@ -15,6 +15,7 @@ RUN set -xe \
|
||||
&& apt-get update \
|
||||
&& apt-get install -y autoconf \
|
||||
build-essential \
|
||||
cargo \
|
||||
curl \
|
||||
git \
|
||||
libffi-dev \
|
||||
@ -51,6 +52,7 @@ RUN set -xe \
|
||||
&& echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \
|
||||
&& apt-get purge -y --auto-remove autoconf \
|
||||
build-essential \
|
||||
cargo \
|
||||
curl \
|
||||
libffi-dev \
|
||||
libssl-dev \
|
||||
|
@ -1,8 +1,10 @@
|
||||
scrapyd:
|
||||
image: easypi/scrapyd-arm
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python3.7/dist-packages
|
||||
restart: unless-stopped
|
||||
version: "3.8"
|
||||
services:
|
||||
scrapyd:
|
||||
image: easypi/scrapyd-arm
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python3.9/dist-packages
|
||||
restart: unless-stopped
|
||||
|
@ -1,26 +1,30 @@
|
||||
scrapyd:
|
||||
image: vimagick/scrapyd
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python2.7/dist-packages
|
||||
restart: unless-stopped
|
||||
version: "3.8"
|
||||
|
||||
scrapy:
|
||||
image: vimagick/scrapyd
|
||||
command: bash
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: unless-stopped
|
||||
services:
|
||||
|
||||
scrapyrt:
|
||||
image: vimagick/scrapyd
|
||||
command: scrapyrt -i 0.0.0.0 -p 9080
|
||||
ports:
|
||||
- "9080:9080"
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: unless-stopped
|
||||
scrapyd:
|
||||
image: vimagick/scrapyd:py3
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python3.9/dist-packages
|
||||
restart: unless-stopped
|
||||
|
||||
scrapy:
|
||||
image: vimagick/scrapyd:py3
|
||||
command: bash
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: unless-stopped
|
||||
|
||||
scrapyrt:
|
||||
image: vimagick/scrapyd:py3
|
||||
command: scrapyrt -i 0.0.0.0 -p 9080
|
||||
ports:
|
||||
- "9080:9080"
|
||||
volumes:
|
||||
- .:/code
|
||||
working_dir: /code
|
||||
restart: unless-stopped
|
||||
|
@ -1,8 +1,10 @@
|
||||
scrapyd:
|
||||
image: vimagick/scrapyd:py3
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python3.7/dist-packages
|
||||
restart: unless-stopped
|
||||
version: "3.8"
|
||||
services:
|
||||
scrapyd:
|
||||
image: vimagick/scrapyd:py3
|
||||
ports:
|
||||
- "6800:6800"
|
||||
volumes:
|
||||
- ./data:/var/lib/scrapyd
|
||||
- /usr/local/lib/python3.9/dist-packages
|
||||
restart: unless-stopped
|
||||
|
Loading…
Reference in New Issue
Block a user