dockerize_rails 1.2.1.beta.2 → 1.2.1.beta.3

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
  SHA1:
3
- metadata.gz: a0f5c116e835900009100990f620400c7d6fd838
4
- data.tar.gz: fbcd44f672657f107db9e479285f554e2986b3bc
3
+ metadata.gz: 0c5a7b96be4709a16b82a52a49f0fe6d037b0aad
4
+ data.tar.gz: e32d4edfd68eb9530a1ada33d340dfb15061083c
5
5
  SHA512:
6
- metadata.gz: d278eec9201dc7778fda1c7c9d9db8269b7d5c576c1b0ba58453b6822d97b08bdee226743c29690c8a01bf38acd97eaa20a211c73d3c75cfdb3e6018994bc4e0
7
- data.tar.gz: 2ce9feb8a6ecea0e1e27e8b3d92eaba7ad28265166003f3ddbb8229bcf6b080dfc7e0c410e02ef030ec147cc6dd396896b0f7fbf42c6d03f71ab8fe494599021
6
+ metadata.gz: 0c474ba50d538ebaf1fcf8a3ac557ef43dc7df83a12553fc74ac150ae56dfd0f84229f5aad76d23527d7642af941988d1981567b581412f7637818832c029811
7
+ data.tar.gz: 5345b6689f762ecd37aed25578c0dcbaafbe9659f092c78a19d0430c8d670c309e91a101d72820baa5bb0b1f620b742d6bd645d309985d715853c58236b1fb95
data/README.md CHANGED
@@ -3,8 +3,6 @@
3
3
  [![GitHub tag](https://img.shields.io/github/tag/eendroroy/dockerize_rails.svg)](https://github.com/eendroroy/dockerize_rails)
4
4
  [![Gem Version](https://badge.fury.io/rb/dockerize_rails.svg)](https://rubygems.org/gems/dockerize_rails)
5
5
  [![Downloads](https://img.shields.io/gem/dt/dockerize_rails.svg)](https://rubygems.org/gems/dockerize_rails)
6
- [![Build Status](https://travis-ci.org/eendroroy/dockerize_rails.svg?branch=master)](https://travis-ci.org/eendroroy/dockerize_rails)
7
- [![Code Climate](https://codeclimate.com/github/eendroroy/dockerize_rails/badges/gpa.svg)](https://codeclimate.com/github/eendroroy/dockerize_rails)
8
6
  [![Contributors](https://img.shields.io/github/contributors/eendroroy/dockerize_rails.svg)](CONTRIBUTORS.md)
9
7
 
10
8
  ## Installation
@@ -44,6 +42,7 @@ $ docker-compose up -d rails # now start the rails container
44
42
  To remove docker configurations: `bundle exec dock undockerize`. Use `--purge` option to remove `.dockerize.yml` file: `bundle exec dock undockerize --purge`
45
43
 
46
44
  All available commands:
45
+
47
46
  ```bash
48
47
  $ bundle exec dock help
49
48
  $ bundle exec dock configure [ --tiny ]
@@ -58,6 +57,7 @@ $ bundle exec dock docker_delete [ --force ]
58
57
  ```
59
58
 
60
59
  Help message:
60
+
61
61
  ```
62
62
  Usage: dock <command>
63
63
  or: bundle exec dock <command>
@@ -169,7 +169,7 @@
169
169
  </div>
170
170
 
171
171
  <div id="footer">
172
- Generated on Sat Aug 12 16:08:38 2017 by
172
+ Generated on Sat Aug 12 16:57:24 2017 by
173
173
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
174
174
  0.9.9 (ruby-2.1.0).
175
175
  </div>
@@ -102,7 +102,7 @@
102
102
  <dt id="VERSION-constant" class="">VERSION =
103
103
 
104
104
  </dt>
105
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.2.1.beta.1</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
105
+ <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>1.2.1.beta.2</span><span class='tstring_end'>&#39;</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
106
106
 
107
107
  </dl>
108
108
 
@@ -117,7 +117,7 @@
117
117
  </div>
118
118
 
119
119
  <div id="footer">
120
- Generated on Sat Aug 12 16:08:38 2017 by
120
+ Generated on Sat Aug 12 16:57:24 2017 by
121
121
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
122
122
  0.9.9 (ruby-2.1.0).
123
123
  </div>
@@ -127,7 +127,7 @@
127
127
  </div>
128
128
 
129
129
  <div id="footer">
130
- Generated on Sat Aug 12 16:08:38 2017 by
130
+ Generated on Sat Aug 12 16:57:24 2017 by
131
131
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
132
132
  0.9.9 (ruby-2.1.0).
133
133
  </div>
data/docs/_index.html CHANGED
@@ -117,7 +117,7 @@
117
117
  </div>
118
118
 
119
119
  <div id="footer">
120
- Generated on Sat Aug 12 16:08:37 2017 by
120
+ Generated on Sat Aug 12 16:57:23 2017 by
121
121
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
122
122
  0.9.9 (ruby-2.1.0).
123
123
  </div>
@@ -66,11 +66,7 @@ src="https://img.shields.io/github/tag/eendroroy/dockerize_rails.svg"></a>
66
66
  src="https://badge.fury.io/rb/dockerize_rails.svg"></a> <a
67
67
  href="https://rubygems.org/gems/dockerize_rails"><img
68
68
  src="https://img.shields.io/gem/dt/dockerize_rails.svg"></a> <a
69
- href="https://travis-ci.org/eendroroy/dockerize_rails"><img
70
- src="https://travis-ci.org/eendroroy/dockerize_rails.svg?branch=master"></a>
71
- <a href="https://codeclimate.com/github/eendroroy/dockerize_rails"><img
72
- src="https://codeclimate.com/github/eendroroy/dockerize_rails/badges/gpa.svg"></a>
73
- <a href="CONTRIBUTORS.md"><img
69
+ href="CONTRIBUTORS.md"><img
74
70
  src="https://img.shields.io/github/contributors/eendroroy/dockerize_rails.svg"></a></p>
75
71
 
76
72
  <h2 id="label-Installation">Installation</h2>
@@ -80,7 +76,9 @@ src="https://img.shields.io/github/contributors/eendroroy/dockerize_rails.svg"><
80
76
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>dockerize_rails</span><span class='tstring_end'>&#39;</span></span>
81
77
  </code></pre>
82
78
 
83
- <p>And then execute: <code>bash $ bundle </code></p>
79
+ <p>And then execute:</p>
80
+
81
+ <pre class="code ruby"><code class="ruby">$ bundle install</code></pre>
84
82
 
85
83
  <h2 id="label-Usage">Usage</h2>
86
84
 
@@ -109,47 +107,52 @@ $ docker-compose up -d rails # now start the rails container</code></pre>
109
107
  Use <code>--purge</code> option to remove <code>.dockerize.yml</code> file:
110
108
  <code>bundle exec dock undockerize --purge</code></p>
111
109
 
112
- <p>All available commands: <code>bash $ bundle exec dock help $ bundle exec
113
- dock configure $ bundle exec dock configure --tiny $ bundle exec dock
114
- dockerize $ bundle exec dock dockerize --test-env $ bundle exec dock
115
- undockerize $ bundle exec dock undockerize --purge $ bundle exec dock
116
- docker_info $ bundle exec dock docker_pull $ bundle exec dock docker_build
117
- $ bundle exec dock docker_build --log $ bundle exec dock docker_build
118
- --rebuild $ bundle exec dock docker_build --rebuild --force $ bundle exec
119
- dock docker_start $ bundle exec dock docker_stop $ bundle exec dock
120
- docker_stop --delete $ bundle exec dock docker_delete </code></p>
110
+ <p>All available commands:</p>
111
+
112
+ <pre class="code ruby"><code class="ruby">$ bundle exec dock help
113
+ $ bundle exec dock configure [ --tiny ]
114
+ $ bundle exec dock dockerize [ --test-env ]
115
+ $ bundle exec dock undockerize [ --purge ]
116
+ $ bundle exec dock docker_info
117
+ $ bundle exec dock docker_pull
118
+ $ bundle exec dock docker_build [ --log | --rebuild | --rebuild --force ]
119
+ $ bundle exec dock docker_start
120
+ $ bundle exec dock docker_stop [ --delete ]
121
+ $ bundle exec dock docker_delete [ --force ]</code></pre>
122
+
123
+ <p>Help message:</p>
121
124
 
122
- <p>Help message: “` Usage: dock &lt;command&gt; or: bundle exec dock
123
- &lt;command&gt;</p>
125
+ <pre class="code ruby"><code class="ruby">Usage: dock &lt;command&gt;
126
+ or: bundle exec dock &lt;command&gt;
124
127
 
125
- <p>commands:</p>
128
+ commands:
126
129
 
127
- <pre class="code ruby"><code class="ruby"> configure, c, rc, cr - Generates &#39;.dockerize.yml&#39;
128
- [--tiny] -- Generates shorter config file, skipping all descriptions
130
+ configure, c, rc, cr - Generates &#39;.dockerize.yml&#39;
131
+ [--tiny] -- Generates shorter config file, skipping all descriptions
129
132
 
130
- dockerize, dc, d - Generates docker config files
131
- [--test-env] -- Generates configurations to run tests.
133
+ dockerize, dc, d - Generates docker config files
134
+ [--test-env] -- Generates configurations to run tests.
132
135
 
133
- undockerize, ud, du, u, dd - Removes docker configurations
134
- [--purge] -- Also removes .dockerize.yml
136
+ undockerize, ud, du, u, dd - Removes docker configurations
137
+ [--purge] -- Also removes .dockerize.yml
135
138
 
136
- docker_info, info - Shows Docker information
137
- docker_pull, pull - Pulls base Docker images (ruby, mysql/postgres)
138
- docker_build, build - Builds Docker images
139
- [--log] -- Displays/Streams build log
140
- [--rebuild] -- Deletes images if exists and rebuilds
141
- [--force] -- Force Image deletion. Works only with --rebuild option
139
+ docker_info, info - Shows Docker information
140
+ docker_pull, pull - Pulls base Docker images (ruby, mysql/postgres)
141
+ docker_build, build - Builds Docker images
142
+ [--log] -- Displays/Streams build log
143
+ [--rebuild] -- Deletes images if exists and rebuilds
144
+ [--force] -- Force Image deletion. Works only with --rebuild option
142
145
 
143
- docker_start, start - Run/Starts Docker containers
144
- docker_stop, stop - Stops Docker containers
145
- [--delete] -- Also deletes the containers
146
+ docker_start, start - Run/Starts Docker containers
147
+ docker_stop, stop - Stops Docker containers
148
+ [--delete] -- Also deletes the containers
146
149
 
147
- docker_delete, delete - Deletes Docker containers
148
- help, h - Prints this message</code></pre>
150
+ docker_delete, delete - Deletes Docker containers
151
+ [--force] -- Force Container deletion.
149
152
 
150
- <p>“`</p>
153
+ help, h - Prints this message</code></pre>
151
154
 
152
- <h2 id="label-Demo">Demo</h2>
155
+ <h2 id="label-Demonstration">Demonstration</h2>
153
156
 
154
157
  <p><a href="https://asciinema.org/a/121552"><img
155
158
  src="https://asciinema.org/a/121552.png"></a></p>
@@ -181,7 +184,7 @@ src="https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Feendroro
181
184
  </div></div>
182
185
 
183
186
  <div id="footer">
184
- Generated on Sat Aug 12 16:08:38 2017 by
187
+ Generated on Sat Aug 12 16:57:24 2017 by
185
188
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
186
189
  0.9.9 (ruby-2.1.0).
187
190
  </div>
data/docs/index.html CHANGED
@@ -66,11 +66,7 @@ src="https://img.shields.io/github/tag/eendroroy/dockerize_rails.svg"></a>
66
66
  src="https://badge.fury.io/rb/dockerize_rails.svg"></a> <a
67
67
  href="https://rubygems.org/gems/dockerize_rails"><img
68
68
  src="https://img.shields.io/gem/dt/dockerize_rails.svg"></a> <a
69
- href="https://travis-ci.org/eendroroy/dockerize_rails"><img
70
- src="https://travis-ci.org/eendroroy/dockerize_rails.svg?branch=master"></a>
71
- <a href="https://codeclimate.com/github/eendroroy/dockerize_rails"><img
72
- src="https://codeclimate.com/github/eendroroy/dockerize_rails/badges/gpa.svg"></a>
73
- <a href="CONTRIBUTORS.md"><img
69
+ href="CONTRIBUTORS.md"><img
74
70
  src="https://img.shields.io/github/contributors/eendroroy/dockerize_rails.svg"></a></p>
75
71
 
76
72
  <h2 id="label-Installation">Installation</h2>
@@ -80,7 +76,9 @@ src="https://img.shields.io/github/contributors/eendroroy/dockerize_rails.svg"><
80
76
  <pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>dockerize_rails</span><span class='tstring_end'>&#39;</span></span>
81
77
  </code></pre>
82
78
 
83
- <p>And then execute: <code>bash $ bundle </code></p>
79
+ <p>And then execute:</p>
80
+
81
+ <pre class="code ruby"><code class="ruby">$ bundle install</code></pre>
84
82
 
85
83
  <h2 id="label-Usage">Usage</h2>
86
84
 
@@ -109,47 +107,52 @@ $ docker-compose up -d rails # now start the rails container</code></pre>
109
107
  Use <code>--purge</code> option to remove <code>.dockerize.yml</code> file:
110
108
  <code>bundle exec dock undockerize --purge</code></p>
111
109
 
112
- <p>All available commands: <code>bash $ bundle exec dock help $ bundle exec
113
- dock configure $ bundle exec dock configure --tiny $ bundle exec dock
114
- dockerize $ bundle exec dock dockerize --test-env $ bundle exec dock
115
- undockerize $ bundle exec dock undockerize --purge $ bundle exec dock
116
- docker_info $ bundle exec dock docker_pull $ bundle exec dock docker_build
117
- $ bundle exec dock docker_build --log $ bundle exec dock docker_build
118
- --rebuild $ bundle exec dock docker_build --rebuild --force $ bundle exec
119
- dock docker_start $ bundle exec dock docker_stop $ bundle exec dock
120
- docker_stop --delete $ bundle exec dock docker_delete </code></p>
110
+ <p>All available commands:</p>
111
+
112
+ <pre class="code ruby"><code class="ruby">$ bundle exec dock help
113
+ $ bundle exec dock configure [ --tiny ]
114
+ $ bundle exec dock dockerize [ --test-env ]
115
+ $ bundle exec dock undockerize [ --purge ]
116
+ $ bundle exec dock docker_info
117
+ $ bundle exec dock docker_pull
118
+ $ bundle exec dock docker_build [ --log | --rebuild | --rebuild --force ]
119
+ $ bundle exec dock docker_start
120
+ $ bundle exec dock docker_stop [ --delete ]
121
+ $ bundle exec dock docker_delete [ --force ]</code></pre>
122
+
123
+ <p>Help message:</p>
121
124
 
122
- <p>Help message: “` Usage: dock &lt;command&gt; or: bundle exec dock
123
- &lt;command&gt;</p>
125
+ <pre class="code ruby"><code class="ruby">Usage: dock &lt;command&gt;
126
+ or: bundle exec dock &lt;command&gt;
124
127
 
125
- <p>commands:</p>
128
+ commands:
126
129
 
127
- <pre class="code ruby"><code class="ruby"> configure, c, rc, cr - Generates &#39;.dockerize.yml&#39;
128
- [--tiny] -- Generates shorter config file, skipping all descriptions
130
+ configure, c, rc, cr - Generates &#39;.dockerize.yml&#39;
131
+ [--tiny] -- Generates shorter config file, skipping all descriptions
129
132
 
130
- dockerize, dc, d - Generates docker config files
131
- [--test-env] -- Generates configurations to run tests.
133
+ dockerize, dc, d - Generates docker config files
134
+ [--test-env] -- Generates configurations to run tests.
132
135
 
133
- undockerize, ud, du, u, dd - Removes docker configurations
134
- [--purge] -- Also removes .dockerize.yml
136
+ undockerize, ud, du, u, dd - Removes docker configurations
137
+ [--purge] -- Also removes .dockerize.yml
135
138
 
136
- docker_info, info - Shows Docker information
137
- docker_pull, pull - Pulls base Docker images (ruby, mysql/postgres)
138
- docker_build, build - Builds Docker images
139
- [--log] -- Displays/Streams build log
140
- [--rebuild] -- Deletes images if exists and rebuilds
141
- [--force] -- Force Image deletion. Works only with --rebuild option
139
+ docker_info, info - Shows Docker information
140
+ docker_pull, pull - Pulls base Docker images (ruby, mysql/postgres)
141
+ docker_build, build - Builds Docker images
142
+ [--log] -- Displays/Streams build log
143
+ [--rebuild] -- Deletes images if exists and rebuilds
144
+ [--force] -- Force Image deletion. Works only with --rebuild option
142
145
 
143
- docker_start, start - Run/Starts Docker containers
144
- docker_stop, stop - Stops Docker containers
145
- [--delete] -- Also deletes the containers
146
+ docker_start, start - Run/Starts Docker containers
147
+ docker_stop, stop - Stops Docker containers
148
+ [--delete] -- Also deletes the containers
146
149
 
147
- docker_delete, delete - Deletes Docker containers
148
- help, h - Prints this message</code></pre>
150
+ docker_delete, delete - Deletes Docker containers
151
+ [--force] -- Force Container deletion.
149
152
 
150
- <p>“`</p>
153
+ help, h - Prints this message</code></pre>
151
154
 
152
- <h2 id="label-Demo">Demo</h2>
155
+ <h2 id="label-Demonstration">Demonstration</h2>
153
156
 
154
157
  <p><a href="https://asciinema.org/a/121552"><img
155
158
  src="https://asciinema.org/a/121552.png"></a></p>
@@ -181,7 +184,7 @@ src="https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Feendroro
181
184
  </div></div>
182
185
 
183
186
  <div id="footer">
184
- Generated on Sat Aug 12 16:08:37 2017 by
187
+ Generated on Sat Aug 12 16:57:23 2017 by
185
188
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
186
189
  0.9.9 (ruby-2.1.0).
187
190
  </div>
@@ -102,7 +102,7 @@
102
102
  </div>
103
103
 
104
104
  <div id="footer">
105
- Generated on Sat Aug 12 16:08:38 2017 by
105
+ Generated on Sat Aug 12 16:57:24 2017 by
106
106
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
107
107
  0.9.9 (ruby-2.1.0).
108
108
  </div>
@@ -80,8 +80,12 @@ module DockerizeRails
80
80
  def self.build_docker_image(dockerfile, repo)
81
81
  image = Docker::Image.build_from_dir('.', dockerfile: dockerfile) do |output|
82
82
  if DRNameSpace.namespace.stream_log
83
- if (log = JSON.parse(output)) && log.key?('stream')
84
- $stdout.puts log['stream']
83
+ begin
84
+ if (log = JSON.parse(output)) && log.key?('stream')
85
+ $stdout.puts log['stream']
86
+ end
87
+ rescue JSON::ParserError => exception
88
+ puts " ==> JSON Parse Error #{exception.to_s}".red
85
89
  end
86
90
  end
87
91
  end
@@ -1,3 +1,3 @@
1
1
  module DockerizeRails
2
- VERSION = '1.2.1.beta.2'.freeze
2
+ VERSION = '1.2.1.beta.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockerize_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1.beta.2
4
+ version: 1.2.1.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - indrajit
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-12 00:00:00.000000000 Z
11
+ date: 2017-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api