Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.2
3.2.0
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM ruby:3.1.2
FROM ruby:3.2.0

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

RUN curl -sOL https://cronitor.io/dl/linux_amd64.tar.gz && \
tar xvf linux_amd64.tar.gz -C /usr/bin/

WORKDIR /app
COPY Gemfile Gemfile.lock ./
COPY config/cron /etc/cron.d/cron
RUN chown root:root /etc/cron.d/cron
RUN bundle install
COPY . .
COPY . .
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
source 'https://rubygems.org'

gem 'kramdown', '~> 2.4.0'
gem 'nokogiri', '~> 1.18.8'
gem 'nokogiri', '~> 1.19.0'
gem 'sentry-raven', '~> 3.1.2'
gem 'ssrf_filter', '~> 1.3.0'
gem 'twingly-url', '~> 6.0.4'
Expand Down
50 changes: 29 additions & 21 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
addressable (2.8.9)
public_suffix (>= 2.0.2, < 8.0)
ast (2.4.3)
bigdecimal (3.3.1)
bundler-audit (0.9.2)
bundler (>= 1.2.0, < 3)
bigdecimal (4.0.1)
bundler-audit (0.9.3)
bundler (>= 1.2.0)
thor (~> 1.0)
byebug (11.1.3)
coderay (1.1.3)
Expand All @@ -21,30 +21,33 @@ GEM
rexml
diff-lcs (1.6.2)
docile (1.4.1)
faraday (2.14.0)
faraday (2.14.1)
faraday-net_http (>= 2.0, < 3.5)
json
logger
faraday-net_http (3.4.1)
net-http (>= 0.5.0)
faraday-net_http (3.4.2)
net-http (~> 0.5)
hashdiff (1.2.1)
json (2.15.2)
io-console (0.8.2)
json (2.18.1)
kramdown (2.4.0)
rexml
logger (1.7.0)
method_source (1.1.0)
mini_portile2 (2.8.9)
mize (0.6.1)
net-http (0.7.0)
uri
nokogiri (1.18.10)
mini_portile2 (~> 2.8.2)
net-http (0.9.1)
uri (>= 0.11.1)
nokogiri (1.19.1-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.19.1-arm64-darwin)
racc (~> 1.4)
nokogiri (1.19.1-x86_64-linux-gnu)
racc (~> 1.4)
parallel (1.27.0)
parser (3.3.10.0)
parser (3.3.10.2)
ast (~> 2.4.1)
racc
prism (1.6.0)
prism (1.9.0)
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
Expand All @@ -54,7 +57,11 @@ GEM
public_suffix (4.0.7)
racc (1.8.1)
rainbow (3.1.1)
readline (0.0.4)
reline
regexp_parser (2.11.3)
reline (0.6.3)
io-console (~> 0.5)
rexml (3.4.4)
rspec (3.11.0)
rspec-core (~> 3.11.0)
Expand All @@ -79,9 +86,9 @@ GEM
rubocop-ast (>= 1.20.1, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 1.4.0, < 3.0)
rubocop-ast (1.47.1)
rubocop-ast (1.49.0)
parser (>= 3.3.7.2)
prism (~> 1.4)
prism (~> 1.7)
rubocop-rspec (2.12.1)
rubocop (~> 1.31)
ruby-progressbar (1.13.0)
Expand All @@ -96,10 +103,11 @@ GEM
sync (0.5.0)
term-ansicolor (1.11.3)
tins (~> 1)
thor (1.4.0)
tins (1.45.0)
thor (1.5.0)
tins (1.52.0)
bigdecimal
mize (~> 0.6)
readline
sync
twingly-url (6.0.4)
addressable (~> 2.6)
Expand All @@ -120,7 +128,7 @@ DEPENDENCIES
bundler-audit (~> 0.9.1)
coveralls (~> 0.8.23)
kramdown (~> 2.4.0)
nokogiri (~> 1.18.8)
nokogiri (~> 1.19.0)
pry-byebug (~> 3.10.1)
rspec (~> 3.11.0)
rubocop (~> 1.35.1)
Expand Down
2 changes: 1 addition & 1 deletion config/cron
Original file line number Diff line number Diff line change
@@ -1 +1 @@
*/30 * * * * root /bin/bash -c '/app/bin/bounty-targets'
*/30 * * * * root /bin/bash -c 'cronitor exec HejGb1 "/app/bin/bounty-targets"'
2 changes: 1 addition & 1 deletion fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ kill_timeout = "5s"
GIT_HOST = "git@github.com:arkadiyt/bounty-targets-data.git"

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