beaker-docker 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/beaker-docker/version.rb +1 -1
- data/lib/beaker/hypervisor/docker.rb +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67087e4a344e2b99b38c11d92dc6e1ec6d0da906
|
4
|
+
data.tar.gz: 590abd5e22e21b77974f7ec68c53580d12a95e92
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d7a7cb7428dd46aaf452fd91a84ed1195852ad49976f701d04b36ad740b1e1c0f38fdd3f4d1cc473ef80af3bff8a14cf0f49ac53562d8bbcb0de4527a2c482e
|
7
|
+
data.tar.gz: fd4b769202763ccd5da58cd0620284d481a894fed70e2ac3663b4e6a007885d3c6b7bfa0e388dbb4ab393091d0e25019a4d4058e8c116efe7f46b472d0106b49
|
@@ -88,7 +88,12 @@ module Beaker
|
|
88
88
|
unless host['mount_folders'].nil?
|
89
89
|
container_opts['HostConfig'] ||= {}
|
90
90
|
container_opts['HostConfig']['Binds'] = host['mount_folders'].values.map do |mount|
|
91
|
-
|
91
|
+
host_path = File.expand_path(mount['host_path'])
|
92
|
+
# When using docker_toolbox and getting a "(Driveletter):/" path, convert windows path to VM mount
|
93
|
+
if ENV['DOCKER_TOOLBOX_INSTALL_PATH'] && host_path =~ /^.\:\//
|
94
|
+
host_path = "/" + host_path.gsub(/^.\:/, host_path[/^(.)/].downcase)
|
95
|
+
end
|
96
|
+
a = [ host_path, mount['container_path'] ]
|
92
97
|
a << mount['opts'] if mount.has_key?('opts')
|
93
98
|
a.join(':')
|
94
99
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: beaker-docker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rishi Javia, Kevin Imber, Tony Vu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|