deadman_check 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60016a96e65047af901a74875d61fd0052cebf86
4
- data.tar.gz: 08e97ecbae9e2d7cc68dc80b1dbc0153700ff9f8
3
+ metadata.gz: d5b9a2213bd31ca4cbc8c63386e77690b6719050
4
+ data.tar.gz: e28c30d37596322c9407be8db5b115cecae6b8c5
5
5
  SHA512:
6
- metadata.gz: 8e41ca251ccfa94ad4731b19a8b9f4ed61fbbecaae6dd9eb4d94517e15faeb640adbb867a2c7c24ef18357081718e467b2096d6406929513bddce67db1b9e129
7
- data.tar.gz: c9b409c2cf717875c3645567dba926bc0a57ee659d6e3daebf9cfec1b896342267b8e7870ebd27dee38986ef1411f17b550d069c927f8763bad12311c81371d0
6
+ metadata.gz: 6901e0ed28c8ca36dcbdb6e1dd391713fe2cf5f1477379c4562e0bebdf3f0bea1f3d201e93e640f4d1ea9aaa02ea7570c3d5c41297da6a68638335bbda68af72
7
+ data.tar.gz: c0eb413dd8657997489f0730515243fc30981a89359019999df8a738fa06112d976cfd2233447173305b5f8493199eebb92e47ff61e162f2d2d9cd35e066786d
data/Dockerfile CHANGED
@@ -1,20 +1,20 @@
1
- FROM ruby:2.4
1
+ FROM alpine:3.6
2
2
  MAINTAINER Zane Williamson <zane.williamson@gmail.com>
3
3
 
4
- # Install apt packages
5
- ARG DEBIAN_FRONTEND=noninteractive
6
- RUN apt-get update -qq && \
7
- apt-get install -y -qq \
8
- less \
9
- locales && \
10
- apt-get clean && \
11
- rm -rf /var/lib/apt/lists/*
12
-
13
- # Configure locale
14
- ARG LOCALE="C.UTF-8"
15
- RUN locale-gen "$LOCALE" && \
16
- dpkg-reconfigure locales
17
- ENV LANG="$LOCALE" LC_ALL="$LOCALE"
4
+ # Install apk packages
5
+ RUN apk update && \
6
+ apk add build-base \
7
+ git \
8
+ openssl \
9
+ ruby \
10
+ ruby-dev \
11
+ ruby-bundler \
12
+ ruby-rdoc \
13
+ ruby-bigdecimal \
14
+ ruby-irb \
15
+ ruby-json \
16
+ ruby-io-console \
17
+ --no-cache
18
18
 
19
19
  ADD . /app/
20
20
  ADD lib /app/lib
data/README.md CHANGED
@@ -10,10 +10,10 @@ running at the expected interval.
10
10
 
11
11
  The deadman-check has 2 modes:
12
12
 
13
- 1. Run with the Nomad periodic job as an additional [task](https://www.nomadproject.io/docs/job-specification/task.html) to update a key in Consul with current EPOCH time.
13
+ 1. Run with the Nomad periodic job as an additional [task](https://www.nomadproject.io/docs/job-specification/task.html) to update a key in Consul with current EPOCH time and required time frequency.
14
14
 
15
15
  2. Run as a separate process that will monitor the Consul key's EPOCH
16
- time value and alert if that value fails to meet a time 'freshness' threshold that
16
+ time value and alert if that value fails to meet a time frequency threshold that
17
17
  is expected for that job.
18
18
 
19
19
 
@@ -1,3 +1,3 @@
1
1
  module DeadmanCheck
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -35,7 +35,7 @@ module DeadmanCheck
35
35
 
36
36
  def run_check_daemon
37
37
  loop do
38
- run_check_once(target, recurse)
38
+ run_check_once
39
39
  sleep(@daemon_sleep)
40
40
  end
41
41
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deadman_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - zane
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-24 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  requirements: []
193
193
  rubyforge_project:
194
- rubygems_version: 2.6.8
194
+ rubygems_version: 2.6.11
195
195
  signing_key:
196
196
  specification_version: 4
197
197
  summary: Monitor a Consul key that contains an EPOCH time entry. Send email if EPOCH