tomp7579
Run a daily rails rake script on cron
The service I set up is hooked to the same github repo as my server service and inheriting the same docker files so I'm not sure if I need different docker files for this cron service that run the script after bringing the container up? If so, not sure how to specify which docker files to use on start.
17 replies
Run a daily rails rake script on cron
Thanks yes I've seen that, I think what I'm confused about is how to actually run the rake task in the docker container. I tried setting my start command as the script that should run the rake task (assuming that it would run from within the container) but that isnt working (I see now that it overrides the docker build so thats not right) and I'm not sure how to specify the script to run.
17 replies