You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to use job-run to run my cronjobs - spinning up a new container to service each cronjob. However, my cronjobs (primarily django management jobs) require an awful lot of environment variables to be set in order to do their job.
Therefore, the easiest solution is to simply run them on an already running webserver container. The only problem with this is that they're killed if the webserver container is cycled.
So - wouldn't it be great if we could provide a simple "copy the environment of container X" directive for job-run jobs? Is this possible? If so, I'll have a look at its implementation. If not, thank you for letting me know and saving me the time and effort.
The text was updated successfully, but these errors were encountered:
I wonder if job-run can be used with Docker labels (see my question #270)
This could be a solution to your problement as you could simply copy paste in docker-compose.yml environment variables from one service to an another one.
I'd love to use
job-run
to run my cronjobs - spinning up a new container to service each cronjob. However, my cronjobs (primarily django management jobs) require an awful lot of environment variables to be set in order to do their job.Therefore, the easiest solution is to simply run them on an already running webserver container. The only problem with this is that they're killed if the webserver container is cycled.
So - wouldn't it be great if we could provide a simple "copy the environment of container
X
" directive forjob-run
jobs? Is this possible? If so, I'll have a look at its implementation. If not, thank you for letting me know and saving me the time and effort.The text was updated successfully, but these errors were encountered: