Skip to content

Commit

Permalink
feat: Integrate the OpenRadiation job (close #196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe Nouguier committed Nov 20, 2020
1 parent 30e0463 commit 5737ccd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.default
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ OPENAQ_DEBUG=
# OpenRadiation
OPENRADIATION_IMAGE=kalisio/k-openradiation
OPENRADIATION_TAG=latest
OPENRADIATION_COMPLETE=true
OPENRADIATION_CRON="0 0 * * * *"
OPENRADIATION_DEBUG=

Expand Down
3 changes: 2 additions & 1 deletion deploy/openradiation.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
version: '3.5'

services:
openraiation:
openradiation:
image: ${OPENRADIATION_IMAGE}:${OPENRADIATION_TAG}
environment:
- KEY=${OPENRADIATION_KEY}
- COMPLETE=${OPENRADIATION_COMPLETE}
- DB_URL=${OPENRADIATION_DB_URL}
- CRON=${OPENRADIATION_CRON}
- DEBUG=${OPENRADIATION_DEBUG}
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,8 @@ The **MapProxy** service is preconfigured to run [Gunicorn](https://gunicorn.org
| --- | --- | --- |
| `OPENRADIATION_IMAGE` | The image to be used. | `kalisio/k-openaq` |
| `OPENRADIATION_TAG` | The version to be used. | `1.0.0` |
| `OPENRADIATION_KEY` | The key to be able to consume the **OpenRadiation** API. | - |
| `OPENRADIATION_KEY` | The key to be able to consume the **OpenRadiation** API. The key must be asked to the **OpenRadiation** team. | - |
| `OPENRADIATION_COMPLETE` | An option to specify whether the job should request the complete list of fields. Check the [documentation](https://github.com/openradiation/openradiation-api#requesting-the-api) for more details. | `true` |
| `OPENRADIATION_DB_URL` | The database URL where to write the data. | - |
| `OPENRADIATION_CRON` | The cron expression used to run the job. | `0 0 * * * *` (every hour) |
| `OPENRADIATION_DEBUG` | The namespaces to enable debug output. Set it to `krawler*` to enable full debug output. | `` |
Expand Down

0 comments on commit 5737ccd

Please sign in to comment.