Skip to content

Commit

Permalink
v1.1.2 Merge
Browse files Browse the repository at this point in the history
v1.1.2 Merge
  • Loading branch information
dirtycajunrice authored Feb 2, 2019
2 parents 59dde93 + 49a369f commit 27b7ba2
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 9 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Change Log

## [1.1.2](https://github.com/pyouroboros/ouroboros/tree/1.1.2) (2019-02-02)
[Full Changelog](https://github.com/pyouroboros/ouroboros/compare/1.1.1...1.1.2)

**Fixed bugs:**

- No default timezone [\#176](https://github.com/pyouroboros/ouroboros/issues/176)

**Closed issues:**

- cron documentation example update [\#182](https://github.com/pyouroboros/ouroboros/issues/182) [[documentation](https://github.com/pyouroboros/ouroboros/labels/documentation)]

***Other Pull Requests**
- v1.1.2 Merge [\#185](https://github.com/pyouroboros/ouroboros/pull/185) ([DirtyCajunRice](https://github.com/DirtyCajunRice))

## [1.1.1](https://github.com/pyouroboros/ouroboros/tree/1.1.1) (2019-02-01)
[Full Changelog](https://github.com/pyouroboros/ouroboros/compare/1.1.0...1.1.1)

Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM amd64/python:3.7.2-alpine

LABEL maintainers="dirtycajunrice,circa10a,tkdeviant"

ENV TZ UTC

WORKDIR /app

COPY /requirements.txt /setup.py /ouroboros /README.md /app/
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.arm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM arm32v6/python:3.7.2-alpine

LABEL maintainers="dirtycajunrice,circa10a,tkdeviant"

ENV TZ UTC

WORKDIR /app

COPY /qemu-arm-static /usr/bin/qemu-arm-static
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile.arm64
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM arm64v8/python:3.7.2-alpine

LABEL maintainers="dirtycajunrice,circa10a,tkdeviant"

ENV TZ UTC

WORKDIR /app

COPY /qemu-aarch64-static /usr/bin/qemu-aarch64-static
Expand Down
7 changes: 3 additions & 4 deletions pyouroboros/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@
class Config(object):
options = ['INTERVAL', 'PROMETHEUS', 'DOCKER_SOCKETS', 'MONITOR', 'IGNORE', 'LOG_LEVEL', 'PROMETHEUS_ADDR',
'PROMETHEUS_PORT', 'NOTIFIERS', 'REPO_USER', 'REPO_PASS', 'CLEANUP', 'RUN_ONCE', 'LATEST', 'CRON',
'TIMEZONE', 'INFLUX_URL', 'INFLUX_PORT', 'INFLUX_USERNAME', 'INFLUX_PASSWORD', 'INFLUX_DATABASE',
'INFLUX_SSL', 'INFLUX_VERIFY_SSL', 'DATA_EXPORT', 'SELF_UPDATE', 'LABEL_ENABLE', 'DOCKER_TLS',
'LABELS_ONLY', 'DRY_RUN', 'HOSTNAME', 'DOCKER_TLS_VERIFY']
'INFLUX_URL', 'INFLUX_PORT', 'INFLUX_USERNAME', 'INFLUX_PASSWORD', 'INFLUX_DATABASE', 'INFLUX_SSL',
'INFLUX_VERIFY_SSL', 'DATA_EXPORT', 'SELF_UPDATE', 'LABEL_ENABLE', 'DOCKER_TLS', 'LABELS_ONLY',
'DRY_RUN', 'HOSTNAME', 'DOCKER_TLS_VERIFY']

hostname = environ.get('HOSTNAME')
interval = 300
cron = None
timezone = environ.get('TZ') or 'UTC'
docker_sockets = 'unix://var/run/docker.sock'
docker_tls = False
docker_tls_verify = True
Expand Down
6 changes: 1 addition & 5 deletions pyouroboros/ouroboros.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ def main():
help='Cron formatted string for scheduling\n'
'EXAMPLE: "*/5 * * * *"')

core_group.add_argument('-z', '--timezone', default=Config.timezone, dest='TIMEZONE',
help='Timezone for scheduling\n'
'EXAMPLE: "America/Chicago"')

core_group.add_argument('-l', '--log-level', choices=['debug', 'info', 'warn', 'error', 'critical'],
dest='LOG_LEVEL', default=Config.log_level, help='Set logging level\n'
'DEFAULT: info')
Expand Down Expand Up @@ -149,7 +145,7 @@ def main():

data_manager = DataManager(config)
notification_manager = NotificationManager(config, data_manager)
scheduler = BackgroundScheduler(timezone=config.timezone)
scheduler = BackgroundScheduler()
scheduler.start()

for socket in config.docker_sockets:
Expand Down

0 comments on commit 27b7ba2

Please sign in to comment.