Skip to content

Commit

Permalink
Enable Timezone Configuration (#69)
Browse files Browse the repository at this point in the history
* enable timezone configuration

* Update README.md

* fix changelog
  • Loading branch information
circa10a authored Dec 26, 2018
1 parent 987b421 commit 8fdc8c0
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ FROM python:3.6-alpine

COPY . /app
WORKDIR /app
RUN pip install --no-cache-dir .
RUN apk add --no-cache tzdata && \
pip install --no-cache-dir .
ENTRYPOINT ["ouroboros"]
3 changes: 2 additions & 1 deletion Dockerfile.rpi
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ FROM resin/raspberry-pi-alpine-python:3.6-slim-20181218

COPY . /app
WORKDIR /app
RUN pip install --no-cache-dir .
RUN apk add --no-cache tzdata && \
pip install --no-cache-dir .
ENTRYPOINT ["ouroboros"]
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ A python-based alternative to [watchtower](https://github.com/v2tec/watchtower)
- [Config File](#config-file)
- [Private Registries](#private-registries)
- [Scheduling](#scheduling)
- [Timezone Configuration](#timezone-configuration)
- [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 @@ -200,6 +201,16 @@ Example using ouroboros to update containers every Monday at 5AM:

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

### Timezone Configuration

To more closely monitor ouroboros' actions and for accurate log ingestion, you can change the timezone of the container from UTC by setting the [`TZ`](http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html) environment variable like so:

```
docker run -d --name ouroboros \
-e TZ=America/Chicago \
-v /var/run/docker.sock:/var/run/docker.sock \
circa10a/ouroboros
```
## Examples

### Monitor for updates for original tag
Expand Down
5 changes: 5 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.3.7

Features:
- Add support to modify timezone for log output

## 0.3.6

Features:
Expand Down
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.6',
version='0.3.7',
description='Automatically update running docker containers',
long_description=readme(),
long_description_content_type='text/markdown',
Expand Down

0 comments on commit 8fdc8c0

Please sign in to comment.