Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cboettig/cron-container
Run an R script as a cron job using Docker
https://github.com/cboettig/cron-container
Last synced: 7 days ago
JSON representation
Run an R script as a cron job using Docker
- Host: GitHub
- URL: https://github.com/cboettig/cron-container
- Owner: cboettig
- Created: 2020-08-26T23:54:22.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T23:54:47.000Z (about 4 years ago)
- Last Synced: 2024-10-11T18:46:24.956Z (about 1 month ago)
- Language: Dockerfile
- Size: 1000 Bytes
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Build the container and run in the background:
```
docker build -t cron-test .
docker run -v $(pwd)/data:/data -d cron-test
```Current configuration in `hello-cron` runs `script.R` every minute, which just prints the timestamp to `/data/out.csv`.
Adjust `script.R` accordingly for your R job. adjust `hello-cron` for timing (see ).