Package not found. Please check the package name and try again.

dockdev 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59b687af53fcbe3924457ab142e49de01af262be7f25d797935ee049075dcb51
4
- data.tar.gz: 1fb3d76c0e2c66098c8d43099ed66d3afdfbf02d5916f603ccd5afca385b6cf3
3
+ metadata.gz: b6fb675e528e81ea170a3d49c89a3e191f6702b8f988ec979d90dfc8fd0734e8
4
+ data.tar.gz: 6c687ac4fa54bc379c36e2311b5d7a73e28f69b4c325d725ea7e2d2e3868d28a
5
5
  SHA512:
6
- metadata.gz: 026c92a29234726a235cc23d0f38586c9dc16a74368fdb90899e6c2ee7406ef7540e1dedce2783d2bcad1c5f120e5808cbabddef220fa13baac6131b7b01d644
7
- data.tar.gz: a1c8e52a6a0c9b4bf94619897a1b346b047b3798341e8214eba8c39e94ad8bf886106616ce5bc2de026fba32c0a0d36a4e85620fea832860c0e35993835cbaca
6
+ metadata.gz: 0360cefb9a2f4e040b20c0835205af2c6fd8225f6fee1d7b73d5fe05c3e55af248a54a756374558e2ff9d9cf913fe2fde58bac5d503379f4894fb18400a60f4b
7
+ data.tar.gz: 7806457e9d7409f25f145b9b955e7712d293444e6ee432853b34345f4166c4b4e43592da90b67b850d71170a240be7630ba2decaa716b3d42d8b1c86a187c221
@@ -21,7 +21,7 @@ module Dockdev
21
21
  Dir.glob(File.join(@path,"Gemfile"))
22
22
  end
23
23
 
24
- def process_mount(mount_hash)
24
+ def process_mount(mount_hash, dir_inside_docker = "/opt")
25
25
 
26
26
  if not mount_hash.nil? and mount_hash.is_a?(Hash)
27
27
 
@@ -35,7 +35,7 @@ module Dockdev
35
35
  if not d.source.nil?
36
36
  src = d.source
37
37
  if src.path.to_s != "."
38
- mount_hash[d.name] = src.path.expand_path.to_s
38
+ mount_hash[src.path.expand_path.to_s] = File.join(dir_inside_docker, d.name)
39
39
  #res[d.name] = src.path.expand_path.to_s
40
40
  end
41
41
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dockdev
4
- VERSION = "0.3.0"
4
+ VERSION = "0.3.2"
5
5
  end
data/lib/dockdev.rb CHANGED
@@ -53,7 +53,7 @@ module Dockdev
53
53
  logger.debug "Mount points by context : #{mount}"
54
54
  end
55
55
 
56
- img.new_container(cont.name, command: cmd) #, mounts: mount)
56
+ img.new_container(cont.name, command: cmd, mounts: mount)
57
57
  else
58
58
  raise Error, "\n No image and no Dockerfile found to build the image found. Operation aborted. \n\n".red
59
59
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockdev
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris