Skip to content

Commit

Permalink
bin/dry-run.rb exits outside a developer shell
Browse files Browse the repository at this point in the history
  • Loading branch information
brrygrdn committed Sep 10, 2021
1 parent 481a2cd commit 6e18a6f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile.development
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ FROM dependabot/dependabot-core

# Temporarily switch to root user in order to install packages
USER root
RUN touch /etc/dependabot-core-dev
RUN apt-get update \
&& apt-get install -y vim strace ltrace gdb shellcheck \
&& rm -rf /var/lib/apt/lists/*
Expand Down
9 changes: 9 additions & 0 deletions bin/dry-run.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@

# rubocop:disable Style/GlobalVars

unless File.exist?("/etc/dependabot-core-dev")
puts <<~INFO
bin/dry-run.rb is only supported in a developerment container.
Please use bin/docker-dev-shell first.
INFO
exit 1
end

$LOAD_PATH << "./bundler/lib"
$LOAD_PATH << "./cargo/lib"
$LOAD_PATH << "./common/lib"
Expand Down

0 comments on commit 6e18a6f

Please sign in to comment.