forked from rivermont/spidy
-
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.
fix Travis errors as on main branch Fix Autosave errors This commit fixes errors while autosaving by single thread. Specifically it resolves the discrepancies in the contents saved. Fixes rivermont#56 docs: update docker instructions to specify how users can pass custom config to spidy in docker
- Loading branch information
Showing
3 changed files
with
26 additions
and
27 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 |
---|---|---|
@@ -1,19 +1,15 @@ | ||
# To run spidy in a container and write all files back to the host filesystem: | ||
# docker run --rm -it -v $PWD:/data spidy | ||
# Usage: | ||
# 1. Build this image: | ||
# docker build -t spidy:latest . | ||
# 2. Run spidy container: | ||
# docker run --rm -it -v $PWD:/data spidy | ||
|
||
FROM python:3.6 | ||
LABEL maintainer "Peter Benjamin <[email protected]>" | ||
WORKDIR /src/app/ | ||
COPY . . | ||
VOLUME [ "/data" ] | ||
RUN pip install -r requirements.txt | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y \ | ||
--no-install-recommends \ | ||
python3 \ | ||
python3-lxml \ | ||
python3-requests \ | ||
&& rm -rf /var/cache/apt/* \ | ||
&& pip install -r requirements.txt | ||
VOLUME [ "/data" ] | ||
WORKDIR /data | ||
|
||
ENTRYPOINT [ "python", "spidy/crawler.py" ] | ||
ENTRYPOINT [ "python", "/src/app/spidy/crawler.py" ] |
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