Skip to content

Commit

Permalink
Merge pull request #188 from code-mancers/add-docker-support-selinux
Browse files Browse the repository at this point in the history
Add support for running builds in selinux environments
  • Loading branch information
iffyuva authored May 30, 2017
2 parents 8790391 + b377b42 commit 27a187e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ current_directory = File.expand_path(File.dirname(__FILE__))
desc "run specs inside docker"
task :docker_spec do
system("docker build -t invoker-ruby . ")
system("docker run --name invoker-rspec --rm -v #{current_directory}:/invoker -t invoker-ruby")
puts "********** Building image is done **********"
system("docker run --name invoker-rspec --rm -v #{current_directory}:/invoker:z -t invoker-ruby")
end

0 comments on commit 27a187e

Please sign in to comment.