conjure 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### Version 0.0.2
2
+ 2013-10-14
3
+
4
+ * Avoid leaking memory when building docker images
5
+
1
6
  ### Version 0.0.1
2
7
  2013-10-11
3
8
 
@@ -1,6 +1,6 @@
1
1
  module Conjure
2
2
 
3
- VERSION = "0.0.1" unless defined?(VERSION)
3
+ VERSION = "0.0.2" unless defined?(VERSION)
4
4
  autoload :Command, "conjure/command"
5
5
  autoload :Service, "conjure/service"
6
6
 
@@ -52,6 +52,10 @@ module Conjure
52
52
  result.stdout
53
53
  end
54
54
 
55
+ def clean_stopped_processes
56
+ command "rm `#{docker_path} ps -a -q`"
57
+ end
58
+
55
59
  def shell_escape(text)
56
60
  text.gsub "'", "'\"'\"'"
57
61
  end
@@ -133,6 +137,7 @@ module Conjure
133
137
  def build
134
138
  puts "[docker] Building #{@label} image"
135
139
  raise_build_errors(@host.command "build -t #{@label} -", stdin: dockerfile)
140
+ @host.clean_stopped_processes
136
141
  end
137
142
 
138
143
  def command(command, options = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conjure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-11 00:00:00.000000000 Z
12
+ date: 2013-10-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fog