https://github.com/cboettig/cron-container
Run an R script as a cron job using Docker
https://github.com/cboettig/cron-container
Last synced: 3 months 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 (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-26T23:54:47.000Z (almost 5 years ago)
- Last Synced: 2025-02-14T13:22:53.047Z (5 months 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 ).