Skip to content

Commit 0a39a8a

Browse files
author
arkadiyt
committed
Add cronitor
1 parent 38c3038 commit 0a39a8a

File tree

7 files changed

+38
-35
lines changed

7 files changed

+38
-35
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.1.2
1+
3.2.0

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
FROM ruby:3.1.2
1+
FROM ruby:3.2.0
22

33
RUN apt update && apt-get install -y vim cron
44

5+
RUN curl -sOL https://cronitor.io/dl/linux_amd64.tar.gz && \
6+
tar xvf linux_amd64.tar.gz -C /usr/bin/
7+
58
WORKDIR /app
69
COPY Gemfile Gemfile.lock ./
710
COPY config/cron /etc/cron.d/cron
811
RUN chown root:root /etc/cron.d/cron
912
RUN bundle install
10-
COPY . .
13+
COPY . .

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
source 'https://rubygems.org'
44

55
gem 'kramdown', '~> 2.4.0'
6-
gem 'nokogiri', '~> 1.18.8'
6+
gem 'nokogiri', '~> 1.19.0'
77
gem 'sentry-raven', '~> 3.1.2'
88
gem 'ssrf_filter', '~> 1.3.0'
99
gem 'twingly-url', '~> 6.0.4'

Gemfile.lock

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.8.7)
5-
public_suffix (>= 2.0.2, < 7.0)
4+
addressable (2.8.9)
5+
public_suffix (>= 2.0.2, < 8.0)
66
ast (2.4.3)
7-
bigdecimal (3.3.1)
8-
bundler-audit (0.9.2)
9-
bundler (>= 1.2.0, < 3)
7+
bigdecimal (4.0.1)
8+
bundler-audit (0.9.3)
9+
bundler (>= 1.2.0)
1010
thor (~> 1.0)
1111
byebug (11.1.3)
1212
coderay (1.1.3)
@@ -21,30 +21,33 @@ GEM
2121
rexml
2222
diff-lcs (1.6.2)
2323
docile (1.4.1)
24-
faraday (2.14.0)
24+
faraday (2.14.1)
2525
faraday-net_http (>= 2.0, < 3.5)
2626
json
2727
logger
28-
faraday-net_http (3.4.1)
29-
net-http (>= 0.5.0)
28+
faraday-net_http (3.4.2)
29+
net-http (~> 0.5)
3030
hashdiff (1.2.1)
31-
json (2.15.2)
31+
io-console (0.8.2)
32+
json (2.18.1)
3233
kramdown (2.4.0)
3334
rexml
3435
logger (1.7.0)
3536
method_source (1.1.0)
36-
mini_portile2 (2.8.9)
3737
mize (0.6.1)
38-
net-http (0.7.0)
39-
uri
40-
nokogiri (1.18.10)
41-
mini_portile2 (~> 2.8.2)
38+
net-http (0.9.1)
39+
uri (>= 0.11.1)
40+
nokogiri (1.19.1-aarch64-linux-gnu)
41+
racc (~> 1.4)
42+
nokogiri (1.19.1-arm64-darwin)
43+
racc (~> 1.4)
44+
nokogiri (1.19.1-x86_64-linux-gnu)
4245
racc (~> 1.4)
4346
parallel (1.27.0)
44-
parser (3.3.10.0)
47+
parser (3.3.10.2)
4548
ast (~> 2.4.1)
4649
racc
47-
prism (1.6.0)
50+
prism (1.9.0)
4851
pry (0.14.2)
4952
coderay (~> 1.1)
5053
method_source (~> 1.0)
@@ -54,7 +57,11 @@ GEM
5457
public_suffix (4.0.7)
5558
racc (1.8.1)
5659
rainbow (3.1.1)
60+
readline (0.0.4)
61+
reline
5762
regexp_parser (2.11.3)
63+
reline (0.6.3)
64+
io-console (~> 0.5)
5865
rexml (3.4.4)
5966
rspec (3.11.0)
6067
rspec-core (~> 3.11.0)
@@ -79,9 +86,9 @@ GEM
7986
rubocop-ast (>= 1.20.1, < 2.0)
8087
ruby-progressbar (~> 1.7)
8188
unicode-display_width (>= 1.4.0, < 3.0)
82-
rubocop-ast (1.47.1)
89+
rubocop-ast (1.49.0)
8390
parser (>= 3.3.7.2)
84-
prism (~> 1.4)
91+
prism (~> 1.7)
8592
rubocop-rspec (2.12.1)
8693
rubocop (~> 1.31)
8794
ruby-progressbar (1.13.0)
@@ -96,10 +103,11 @@ GEM
96103
sync (0.5.0)
97104
term-ansicolor (1.11.3)
98105
tins (~> 1)
99-
thor (1.4.0)
100-
tins (1.45.0)
106+
thor (1.5.0)
107+
tins (1.52.0)
101108
bigdecimal
102109
mize (~> 0.6)
110+
readline
103111
sync
104112
twingly-url (6.0.4)
105113
addressable (~> 2.6)
@@ -120,7 +128,7 @@ DEPENDENCIES
120128
bundler-audit (~> 0.9.1)
121129
coveralls (~> 0.8.23)
122130
kramdown (~> 2.4.0)
123-
nokogiri (~> 1.18.8)
131+
nokogiri (~> 1.19.0)
124132
pry-byebug (~> 3.10.1)
125133
rspec (~> 3.11.0)
126134
rubocop (~> 1.35.1)

config/cron

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
*/30 * * * * root /bin/bash -c '/app/bin/bounty-targets'
1+
*/30 * * * * root /bin/bash -c 'cronitor exec HejGb1 "/app/bin/bounty-targets"'

fly.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ kill_timeout = "5s"
1313
GIT_HOST = "git@github.com:arkadiyt/bounty-targets-data.git"
1414

1515
[processes]
16-
cron = "bash -c 'env > /etc/environment && cron -f'"
16+
cron = "bash -c \"env > /etc/environment && cronitor configure --api-key $CRONITOR && cron -f\""

0 commit comments

Comments
 (0)