dockerun 0.3.3 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b503d6c7f3ab86e367df67420e710ef7fa798ec44417ccaf8ae1107182cff98
4
- data.tar.gz: cfbfc06965d340a63aebeddcf7c061606742b01c2d31370f84d5f2b22a699a4d
3
+ metadata.gz: e780ee279842afa1d97ce5bd7aa09961d35f8fd5510ff86551d8701ee7d33475
4
+ data.tar.gz: 3a3f2e91045841ef670b4a1e01d28ccd75f0f5d7452a7e25807ac2b1a76f2468
5
5
  SHA512:
6
- metadata.gz: a0495cfa662fc8d47b4c7793b08730c3729a2b4b0b620ae854d42a8a9226cb401d5aa114493d0c9d01360bd0f3504ed8d2b9e2b5a581d3108406f3cf04608533
7
- data.tar.gz: 3c2e90089701e9b521a1828d992b047e70c09b25aa618d33c91b2f44c0497d7cbf1728a4cadc52ce3868120517bb7379f3272aa2ff684349799e138322d7be3f
6
+ metadata.gz: da62e413cd4d6dc7c78402cd5a48b31ad7896d98266d64678b3cfea24888140a1fa2e3162f9d7316852d0886288f3a3362f61c11c39293b15c797fea97e2eb3d
7
+ data.tar.gz: 97bfaf132fd15ee8dbee661b9fc5e274019f7c31e6d91480fcb9212e90d84d595d8a359e37f4336c4cc2b15877178e0ad5f6ed4a1409b0140836e4a3f0e7d495
data/.release_history.yml CHANGED
@@ -50,3 +50,7 @@ dockerun:
50
50
  :timestamp: 1680596019.8479326
51
51
  - :version: 0.3.1
52
52
  :timestamp: 1680596515.6388657
53
+ - :version: 0.3.3
54
+ :timestamp: 1680598096.8177018
55
+ - :version: 0.3.4
56
+ :timestamp: 1680600334.3304904
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dockerun (0.3.3)
4
+ dockerun (0.3.5)
5
5
  colorize
6
6
  docker-cli (>= 0.3.1)
7
7
  teLogger
@@ -27,7 +27,7 @@ GEM
27
27
  toolrack
28
28
  tty-command
29
29
  tty-prompt
30
- git_cli (0.11.2)
30
+ git_cli (0.11.4)
31
31
  gvcs
32
32
  ptools (~> 1.4.0)
33
33
  teLogger
@@ -36,11 +36,19 @@ GEM
36
36
  teLogger
37
37
  toolrack
38
38
  tty-prompt
39
- gvcs (0.1.1)
39
+ gvcs (0.1.2)
40
40
  pastel (0.8.0)
41
41
  tty-color (~> 0.5)
42
42
  ptools (1.4.3)
43
43
  rake (13.0.6)
44
+ release-gem (0.1.18)
45
+ colorize
46
+ git_cli
47
+ gvcs
48
+ teLogger
49
+ toolrack
50
+ tty-command
51
+ tty-prompt
44
52
  rspec (3.12.0)
45
53
  rspec-core (~> 3.12.0)
46
54
  rspec-expectations (~> 3.12.0)
@@ -55,7 +63,7 @@ GEM
55
63
  rspec-support (~> 3.12.0)
56
64
  rspec-support (3.12.0)
57
65
  teLogger (0.2.2)
58
- toolrack (0.21.0)
66
+ toolrack (0.22.1)
59
67
  tty-color (0.6.0)
60
68
  tty-command (0.10.1)
61
69
  pastel (~> 0.8)
@@ -79,6 +87,7 @@ DEPENDENCIES
79
87
  devops_assist
80
88
  dockerun!
81
89
  rake (~> 13.0)
90
+ release-gem
82
91
  rspec (~> 3.0)
83
92
 
84
93
  BUNDLED WITH
data/Rakefile CHANGED
@@ -8,3 +8,4 @@ require 'devops_assist'
8
8
  RSpec::Core::RakeTask.new(:spec)
9
9
 
10
10
  task default: :spec
11
+ require 'release/gem'
data/dockerun.gemspec CHANGED
@@ -46,4 +46,5 @@ Gem::Specification.new do |spec|
46
46
 
47
47
  # For more information and examples about making a new gem, checkout our
48
48
  # guide at: https://bundler.io/guides/creating_gem.html
49
+ spec.add_development_dependency 'release-gem'
49
50
  end
@@ -115,9 +115,6 @@ module Dockerun
115
115
  when :add_to_bundle?
116
116
  cli.yes?("\n Add directory '#{val.first}' to bundler config local? ".yellow)
117
117
 
118
- when :add_mount_to_container
119
- config.add_mount_to_container(imageName, *val)
120
-
121
118
  when :add_more_volume_mapping?
122
119
  cli.yes?("\n Add more volume mapping? ".yellow)
123
120
 
@@ -10,12 +10,13 @@ module Dockerun
10
10
  def self.from_storage
11
11
  path = File.join(Dir.getwd, FILENAME)
12
12
  if File.exist?(path)
13
- cont = nil
14
- File.open(path,"r") do |f|
15
- cont = f.read
16
- end
13
+ #cont = nil
14
+ #File.open(path,"r") do |f|
15
+ # cont = f.read
16
+ #end
17
17
 
18
- Config.new(YAML.load(cont), true)
18
+ #Config.new(YAML.load(cont), true)
19
+ Config.new(YAML.unsafe_load_file(path), true)
19
20
  else
20
21
  Config.new({}, false)
21
22
  end
@@ -165,6 +165,9 @@ module Dockerun
165
165
 
166
166
  dockerfile = load_dockerfile(Dir.getwd, dockerinit, &block)
167
167
  build_docker_image(name, dockerfile: dockerfile)
168
+
169
+ FileUtils.rm(dockerinit) if File.exist?(dockerinit)
170
+
168
171
  end
169
172
 
170
173
  else
@@ -175,6 +178,8 @@ module Dockerun
175
178
 
176
179
  dockerfile = load_dockerfile(Dir.getwd, dockerinit, &block)
177
180
  build_docker_image(name, dockerfile: dockerfile)
181
+
182
+ FileUtils.rm(dockerinit) if File.exist?(dockerinit)
178
183
  end
179
184
 
180
185
  end
@@ -234,7 +239,6 @@ module Dockerun
234
239
  @shared_dirs[File.basename(dest)] = dest
235
240
  end
236
241
 
237
- block.call(:add_mount_to_container, container_name, mount.last)
238
242
  repeat = block.call(:add_more_volume_mapping?)
239
243
  break if not repeat
240
244
 
@@ -243,6 +247,9 @@ module Dockerun
243
247
  end
244
248
 
245
249
 
250
+ #
251
+ # Try to run once to install bundle config --local and create alias during image building
252
+ #
246
253
  insideDockerConfig = File.join(File.dirname(__FILE__),"..","..","template","setup_ruby_devenv.rb.erb")
247
254
  if File.exist?(insideDockerConfig)
248
255
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Dockerun
4
- VERSION = "0.3.3"
4
+ VERSION = "0.3.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-04 00:00:00.000000000 Z
11
+ date: 2023-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: toolrack
@@ -108,6 +108,20 @@ dependencies:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: release-gem
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
111
125
  description: ''
112
126
  email:
113
127
  - cameronian0@protonmail.com