Skip to content

Commit

Permalink
Scheduling docs (#65)
Browse files Browse the repository at this point in the history
* add scheduling docs

* add scheduling docs

* add scheduling docs

* Update CHANGELOG.md
  • Loading branch information
circa10a authored Dec 20, 2018
1 parent 3d9d541 commit 6a509b0
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 2 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ A python-based alternative to [watchtower](https://github.com/v2tec/watchtower)
- [Options](#options)
- [Config File](#config-file)
- [Private Registries](#private-registries)
- [Scheduling](#scheduling)
- [Examples](#examples)
- [Monitor for updates for original tag](#monitor-for-updates-for-original-tag)
- [Update containers on a remote host](#update-containers-on-a-remote-host)
Expand Down Expand Up @@ -173,6 +174,31 @@ docker run -d --name ouroboros \
-v /var/run/docker.sock:/var/run/docker.sock \
circa10a/ouroboros
```
### Scheduling

Ouroboros does not have a native scheduling implementation other than using `--interval`. This is due to there being more robust/customizable job schedulers being available such as:

- Cron
- [Cron Tutorial](https://www.ostechnix.com/a-beginners-guide-to-cron-jobs/)
- [Cron Expression Creator](https://crontab.guru/)
- Systemd Timers
- [Documentation](https://wiki.archlinux.org/index.php/Systemd/Timers)

Example using ouroboros to update containers every Monday at 5AM:

**Docker**

```bash
* 5 * * 1 docker run --rm -d --name ouroboros -v /var/run/docker.sock:/var/run/docker.sock circa10a/ouroboros --interval 1 --runonce
```

**Pip installed CLI**

```bash
* 5 * * 1 ouroboros --interval 1 --runonce
```

Using the [`--runonce`](#update-all-containers-and-quit-ouroboros) arg tells ouroboros to make one pass updating all/specified containers and then exit.

## Examples

Expand Down
7 changes: 6 additions & 1 deletion doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog

## 0.3.5

Features:
- Scheduling documentation

## 0.3.4

Features:
- ARM/Rpi Docker image
- ARM/Rpi Docker image
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read_reqs(requirements):

setup(
name='ouroboros-cli',
version='0.3.4',
version='0.3.5',
description='Automatically update running docker containers',
long_description=readme(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 6a509b0

Please sign in to comment.