# How to add a job to cron/anacron when creating Docker container

**URL:** https://meta.discourse.org/t/how-to-add-a-job-to-cron-anacron-when-creating-docker-container/123194
**Category:** Self-hosting
**Created:** [July 17, 2019, 1:20pm UTC](https://meta.discourse.org/t/how-to-add-a-job-to-cron-anacron-when-creating-docker-container/123194 "2019-07-17T13:20:29Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [July 17, 2019, 4:12pm UTC](https://meta.discourse.org/t/how-to-add-a-job-to-cron-anacron-when-creating-docker-container/123194/7 "2019-07-17T16:12:04Z")

</div>

I would begin with the plugin tutorial series for the basic structure of a plugin:

> [@Developing Discourse Plugins - Part 1 - Create a basic plugin](https://meta.discourse.org/t/beginners-guide-to-creating-discourse-plugins-part-1/30515):
>
> Building a plugin in Discourse can be really simple, once you learn a couple of quirks. The goal of this post is to create a skeleton plugin and introduce you to the basics. Your development environment Make sure you have a development environment of Discourse running on your computer. I recommend you use [the appropriate setup guide](https://meta.discourse.org/tag/dev-install) and come back when you’re done. plugin.rbtada Use [GitHub - discourse/discourse-plugin-skeleton: Template for Discourse plugins · GitHub](https://github.com/discourse/discourse-plugin-skeleton) to create a complete di…

If you want an example of how to add a job to a plugin the discourse-assign plugin has one that sends periodic reminders:

[https://github.com/discourse/discourse-assign/blob/master/jobs/scheduled/enqueue\_reminders.rb](https://github.com/discourse/discourse-assign/blob/master/jobs/scheduled/enqueue_reminders.rb)

---

_[View the full topic](https://meta.discourse.org/t/how-to-add-a-job-to-cron-anacron-when-creating-docker-container/123194)._
