diff --git a/Dockerfile b/Dockerfile index a322364d..0aa62a39 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/Dockerfile.rpi b/Dockerfile.rpi index 7dd2087c..9c0c0b4a 100644 --- a/Dockerfile.rpi +++ b/Dockerfile.rpi @@ -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"] \ No newline at end of file diff --git a/README.md b/README.md index e700bdca..28012ab5 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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 diff --git a/doc/CHANGELOG.md b/doc/CHANGELOG.md index 77588455..32c117e6 100644 --- a/doc/CHANGELOG.md +++ b/doc/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +## 0.3.7 + +Features: + - Add support to modify timezone for log output + ## 0.3.6 Features: diff --git a/setup.py b/setup.py index 53ecfadc..38b62a03 100644 --- a/setup.py +++ b/setup.py @@ -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',