Commit abde0ba6 authored by Terence Lee's avatar Terence Lee

add shell rake task to volume mount fixture in Docker container

parent 7b295ee2
desc "docker shell for fixture"
task :shell, [:fixture] do |t, args|
require_relative "spec/support/buildpack_builder"
require_relative "spec/support/path_helper"
include PathHelper
BuildpackBuilder.new(@debug)
fixture_path = File.expand_path(fixtures_path(args[:fixture]))
system("docker run -i -v #{fixture_path}:/src -t #{BuildpackBuilder::TAG} \"bash\"")
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment