This repository has been archived by the owner on Feb 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc15df2
commit 27ffd11
Showing
5 changed files
with
55 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/.vagrant | ||
/scrapy.iml | ||
*.pyc | ||
_trial_temp* | ||
dropin.cache | ||
docs/build | ||
*egg-info | ||
.tox | ||
venv | ||
build | ||
dist | ||
.idea | ||
htmlcov/ | ||
.coverage | ||
.pytest_cache/ | ||
.coverage.* | ||
.cache/ | ||
|
||
# Windows | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM alpine:3.9 | ||
|
||
ENV RUNTIME_PACKAGES python3 libxslt libxml2 git curl | ||
ENV BUILD_PACKAGES build-base libxslt-dev libxml2-dev libffi-dev python3-dev openssl-dev | ||
|
||
RUN apk add --no-cache ${RUNTIME_PACKAGES} ${BUILD_PACKAGES} && \ | ||
pip3 install scrapy && \ | ||
apk del ${BUILD_PACKAGES} && \ | ||
rm -rf /root/.cache | ||
|
||
#ADD ./scrapyd.conf /etc/scrapyd/ | ||
#VOLUME /var/lib/scrapyd/ | ||
|
||
COPY . /work/app | ||
RUN pip3 install -r /work/app/requirements.txt | ||
RUN /usr/bin/crontab /work/app/install/crontab.txt | ||
CMD ["/usr/sbin/crond", "-f", "-l", "8"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# at https://docs.docker.com/compose/compose-file/ | ||
version: '3.3' | ||
services: | ||
scrapy-pool-incomes: | ||
container_name: scrapy-pool-income | ||
image: dubuqingfeng/scrapy-pool-income | ||
restart: always | ||
environment: | ||
MYSQL_HOST: "production" | ||
MYSQL_DBNAME: "" | ||
MYSQL_USER: "" | ||
MYSQL_PASSWORD: "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*/5 * * * * cd /work/app && sh /work/app/run.sh |