Skip to content

Commit 8fdc8c0

Browse files
authored
Enable Timezone Configuration (#69)
* enable timezone configuration * Update README.md * fix changelog
1 parent 987b421 commit 8fdc8c0

File tree

5 files changed

+21
-3
lines changed

5 files changed

+21
-3
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ FROM python:3.6-alpine
22

33
COPY . /app
44
WORKDIR /app
5-
RUN pip install --no-cache-dir .
5+
RUN apk add --no-cache tzdata && \
6+
pip install --no-cache-dir .
67
ENTRYPOINT ["ouroboros"]

Dockerfile.rpi

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@ FROM resin/raspberry-pi-alpine-python:3.6-slim-20181218
22

33
COPY . /app
44
WORKDIR /app
5-
RUN pip install --no-cache-dir .
5+
RUN apk add --no-cache tzdata && \
6+
pip install --no-cache-dir .
67
ENTRYPOINT ["ouroboros"]

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ A python-based alternative to [watchtower](https://github.com/v2tec/watchtower)
2424
- [Config File](#config-file)
2525
- [Private Registries](#private-registries)
2626
- [Scheduling](#scheduling)
27+
- [Timezone Configuration](#timezone-configuration)
2728
- [Examples](#examples)
2829
- [Monitor for updates for original tag](#monitor-for-updates-for-original-tag)
2930
- [Update containers on a remote host](#update-containers-on-a-remote-host)
@@ -200,6 +201,16 @@ Example using ouroboros to update containers every Monday at 5AM:
200201

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

204+
### Timezone Configuration
205+
206+
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:
207+
208+
```
209+
docker run -d --name ouroboros \
210+
-e TZ=America/Chicago \
211+
-v /var/run/docker.sock:/var/run/docker.sock \
212+
circa10a/ouroboros
213+
```
203214
## Examples
204215

205216
### Monitor for updates for original tag

doc/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.3.7
4+
5+
Features:
6+
- Add support to modify timezone for log output
7+
38
## 0.3.6
49

510
Features:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read_reqs(requirements):
1313

1414
setup(
1515
name='ouroboros-cli',
16-
version='0.3.6',
16+
version='0.3.7',
1717
description='Automatically update running docker containers',
1818
long_description=readme(),
1919
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)