docker – How to automate execution of an R script in Google Cloud using Cloud Scheduler?
Summary
I want to automate running an R script every Monday using Google Cloud Scheduler. Running the task locally with taskscheduler in R is not an option due to the two-factor authentication enforced by my IT department. As a result, I need to set this up in our cloud environment.
My high-level approach is as follows:
Develop the R script
Create a Docker image for the Cloud Scheduler
Configure the scheduler to use the Docker image
Where I’m stuck is:
- How do I convert an R script into a Docker image?
- Once I have the
Docker image, how do I import it into Google Cloud Scheduler and set
it to run on a specific schedule?
Any guidance would be appreciated
Read more here: Source link
