Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ScrAPD support #28

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
20 changes: 16 additions & 4 deletions config/docker.yml
Expand Up @@ -2,8 +2,8 @@
#
# Each entry specifies a `docker run` command that will be generated via `build.py`. Note that
# all docker images must run a Python envrionment which meets the package requirements of
# `launch.py`, as defined in `requirements.txt`.
#
# `launch.py`, as defined in `requirements.txt`.
#
# Entries are referenced by Python scripts defined in `config/scripts`. The first entry
# must be named `default`. Contents are defined as follows:
#
Expand All @@ -20,7 +20,7 @@
# - $CMD: This is the means by which a Python script defined in config/scripts.py is run by the
# docker container. $CMD will be replaced with the python script name and command
# arguments defined in config/scripts.py.
# - $WORKDIR: The relative path defined in config/scripts.py "workdir" config.
# - $WORKDIR: The relative path defined in config/scripts.py "workdir" config.
---
default:
args:
Expand All @@ -44,4 +44,16 @@ dockless:
- --rm
- --network=host
- -w /app/$WORKDIR

scrapd:
args:
- retrieve
- --from "1 1 $(date +%Y)"
- --format gsheets
- --gcredentials creds.json
- --gcontributors "remy.greinhofer@gmail.com:user:writer"
image: rgreinho/scrapd:1.3.0
options:
- -d
- -v $BUILD_PATH/gsheet-credentials.json:/usr/src/app/creds.json:ro
- --rm
- --network=host