1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-08 04:04:42 +02:00

update scrapyd

This commit is contained in:
kev 2020-05-29 12:11:32 +08:00
parent 01dc8560e1
commit fcf05f47d6
4 changed files with 19 additions and 12 deletions

View File

@ -47,6 +47,7 @@ RUN set -xe \
&& echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \ && echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \
&& apt-get purge -y --auto-remove autoconf \ && apt-get purge -y --auto-remove autoconf \
build-essential \ build-essential \
curl \
libffi-dev \ libffi-dev \
libssl-dev \ libssl-dev \
libtool \ libtool \

View File

@ -1,10 +1,14 @@
# #
# Dockerfile for scrapyd-arm # Dockerfile for scrapyd-arm (python3)
# #
FROM resin/rpi-raspbian:stretch FROM arm32v7/debian:buster
MAINTAINER EasyPi Software Foundation MAINTAINER EasyPi Software Foundation
ENV SCRAPY_VERSION=2.1.0
ENV SCRAPYD_VERSION=1.2.1
ENV PILLOW_VERSION=7.1.2
RUN set -xe \ RUN set -xe \
&& apt-get update \ && apt-get update \
&& apt-get install -y autoconf \ && apt-get install -y autoconf \
@ -18,8 +22,8 @@ RUN set -xe \
libxml2-dev \ libxml2-dev \
libxslt1.1 \ libxslt1.1 \
libxslt1-dev \ libxslt1-dev \
python \ python3 \
python-dev \ python3-dev \
vim-tiny \ vim-tiny \
&& apt-get install -y libtiff5 \ && apt-get install -y libtiff5 \
libtiff5-dev \ libtiff5-dev \
@ -32,23 +36,24 @@ RUN set -xe \
libwebp-dev \ libwebp-dev \
zlib1g \ zlib1g \
zlib1g-dev \ zlib1g-dev \
&& curl -sSL https://bootstrap.pypa.io/get-pip.py | python \ && curl -sSL https://bootstrap.pypa.io/get-pip.py | python3 \
&& pip install git+https://github.com/scrapy/scrapy.git \ && pip install git+https://github.com/scrapy/scrapy.git@$SCRAPY_VERSION \
git+https://github.com/scrapy/scrapyd.git \ git+https://github.com/scrapy/scrapyd.git@$SCRAPYD_VERSION \
git+https://github.com/scrapy/scrapyd-client.git \ git+https://github.com/scrapy/scrapyd-client.git \
git+https://github.com/scrapinghub/scrapy-splash.git \ git+https://github.com/scrapinghub/scrapy-splash.git \
git+https://github.com/scrapinghub/scrapyrt.git \ git+https://github.com/scrapinghub/scrapyrt.git \
git+https://github.com/python-pillow/Pillow.git \ git+https://github.com/python-pillow/Pillow.git@$PILLOW_VERSION \
&& curl -sSL https://github.com/scrapy/scrapy/raw/master/extras/scrapy_bash_completion -o /etc/bash_completion.d/scrapy_bash_completion \ && curl -sSL https://github.com/scrapy/scrapy/raw/master/extras/scrapy_bash_completion -o /etc/bash_completion.d/scrapy_bash_completion \
&& echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \ && echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \
&& apt-get purge -y --auto-remove autoconf \ && apt-get purge -y --auto-remove autoconf \
build-essential \ build-essential \
curl \
libffi-dev \ libffi-dev \
libssl-dev \ libssl-dev \
libtool \ libtool \
libxml2-dev \ libxml2-dev \
libxslt1-dev \ libxslt1-dev \
python-dev \ python3-dev \
&& apt-get purge -y --auto-remove libtiff5-dev \ && apt-get purge -y --auto-remove libtiff5-dev \
libfreetype6-dev \ libfreetype6-dev \
libjpeg62-turbo-dev \ libjpeg62-turbo-dev \

View File

@ -1,9 +1,9 @@
# #
# Dockerfile for scrapyd-onbuild # Dockerfile for scrapyd-onbuild (python3)
# #
FROM vimagick/scrapyd FROM vimagick/scrapyd:py3
MAINTAINER kev <noreply@easypi.pro> MAINTAINER EasyPi Software Foundation
ONBUILD ADD ./*.txt /etc/scrapyd/ ONBUILD ADD ./*.txt /etc/scrapyd/
ONBUILD RUN cd /etc/scrapyd; \ ONBUILD RUN cd /etc/scrapyd; \

View File

@ -47,6 +47,7 @@ RUN set -xe \
&& echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \ && echo 'source /etc/bash_completion.d/scrapy_bash_completion' >> /root/.bashrc \
&& apt-get purge -y --auto-remove autoconf \ && apt-get purge -y --auto-remove autoconf \
build-essential \ build-essential \
curl \
libffi-dev \ libffi-dev \
libssl-dev \ libssl-dev \
libtool \ libtool \