Skip to content
This repository has been archived by the owner on Jan 29, 2022. It is now read-only.

Commit

Permalink
Some docker fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dhollinger committed Mar 9, 2020
1 parent 2f07117 commit 2ad3853
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
34 changes: 18 additions & 16 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,27 @@ namespace :db do
end
end

require 'rubocop/rake_task'
RuboCop::RakeTask.new
if ENV['SINATRA_ENV'] != 'production'
require 'rubocop/rake_task'
RuboCop::RakeTask.new

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec)

desc 'Run all tests'
task test: %i[rubocop spec]
desc 'Run all tests'
task test: %i[rubocop spec]

require 'coveralls/rake/task'
desc 'Run all tests and report to coverage tools'
task test_and_report_coverage: [:test] do
Coveralls::RakeTask.new
Rake::Task['coveralls:push'].invoke
end
require 'coveralls/rake/task'
desc 'Run all tests and report to coverage tools'
task test_and_report_coverage: [:test] do
Coveralls::RakeTask.new
Rake::Task['coveralls:push'].invoke
end

GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.user = 'voxpupuli'
config.project = 'puppet_webhook'
config.future_release = PuppetWebhook::VERSION
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.user = 'voxpupuli'
config.project = 'puppet_webhook'
config.future_release = PuppetWebhook::VERSION
end
end
# vim: syntax=ruby
4 changes: 3 additions & 1 deletion build/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ FROM 'ruby:2.5' as rubybuilder
ARG version=master

# Replace with a pull from releases page
RUN gem install bundler:2.1.4

RUN apt-get install git && \
git clone -b $version https://github.com/voxpupuli/puppet_webhook.git app/ && \
cd /app && \
bundle install
bundle install --without development

RUN mkdir /root/.ssh && echo "StrictHostKeyChecking no" >> /root/.ssh/config

Expand Down

0 comments on commit 2ad3853

Please sign in to comment.