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 +4 -4
- data/README.md +2 -2
- data/docs/DockerizeRails/CommandLine.html +1 -1
- data/docs/DockerizeRails.html +2 -2
- data/docs/DockerizeRailsCLI.html +1 -1
- data/docs/_index.html +1 -1
- data/docs/file.README.html +41 -38
- data/docs/index.html +41 -38
- data/docs/top-level-namespace.html +1 -1
- data/lib/dockerize_rails/docker_commands/docker_build.rb +6 -2
- data/lib/dockerize_rails/version.rb +1 -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: 0c5a7b96be4709a16b82a52a49f0fe6d037b0aad
|
|
4
|
+
data.tar.gz: e32d4edfd68eb9530a1ada33d340dfb15061083c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c474ba50d538ebaf1fcf8a3ac557ef43dc7df83a12553fc74ac150ae56dfd0f84229f5aad76d23527d7642af941988d1981567b581412f7637818832c029811
|
|
7
|
+
data.tar.gz: 5345b6689f762ecd37aed25578c0dcbaafbe9659f092c78a19d0430c8d670c309e91a101d72820baa5bb0b1f620b742d6bd645d309985d715853c58236b1fb95
|
data/README.md
CHANGED
|
@@ -3,8 +3,6 @@
|
|
|
3
3
|
[](https://github.com/eendroroy/dockerize_rails)
|
|
4
4
|
[](https://rubygems.org/gems/dockerize_rails)
|
|
5
5
|
[](https://rubygems.org/gems/dockerize_rails)
|
|
6
|
-
[](https://travis-ci.org/eendroroy/dockerize_rails)
|
|
7
|
-
[](https://codeclimate.com/github/eendroroy/dockerize_rails)
|
|
8
6
|
[](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:
|
|
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>
|
data/docs/DockerizeRails.html
CHANGED
|
@@ -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'>'</span><span class='tstring_content'>1.2.1.beta.
|
|
105
|
+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>1.2.1.beta.2</span><span class='tstring_end'>'</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:
|
|
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>
|
data/docs/DockerizeRailsCLI.html
CHANGED
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
</div>
|
|
128
128
|
|
|
129
129
|
<div id="footer">
|
|
130
|
-
Generated on Sat Aug 12 16:
|
|
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:
|
|
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>
|
data/docs/file.README.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="
|
|
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'>'</span><span class='tstring_content'>dockerize_rails</span><span class='tstring_end'>'</span></span>
|
|
81
77
|
</code></pre>
|
|
82
78
|
|
|
83
|
-
<p>And then execute
|
|
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
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
$ bundle exec dock
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
<
|
|
123
|
-
<command>
|
|
125
|
+
<pre class="code ruby"><code class="ruby">Usage: dock <command>
|
|
126
|
+
or: bundle exec dock <command>
|
|
124
127
|
|
|
125
|
-
|
|
128
|
+
commands:
|
|
126
129
|
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
configure, c, rc, cr - Generates '.dockerize.yml'
|
|
131
|
+
[--tiny] -- Generates shorter config file, skipping all descriptions
|
|
129
132
|
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
dockerize, dc, d - Generates docker config files
|
|
134
|
+
[--test-env] -- Generates configurations to run tests.
|
|
132
135
|
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
undockerize, ud, du, u, dd - Removes docker configurations
|
|
137
|
+
[--purge] -- Also removes .dockerize.yml
|
|
135
138
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
docker_start, start - Run/Starts Docker containers
|
|
147
|
+
docker_stop, stop - Stops Docker containers
|
|
148
|
+
[--delete] -- Also deletes the containers
|
|
146
149
|
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
docker_delete, delete - Deletes Docker containers
|
|
151
|
+
[--force] -- Force Container deletion.
|
|
149
152
|
|
|
150
|
-
|
|
153
|
+
help, h - Prints this message</code></pre>
|
|
151
154
|
|
|
152
|
-
<h2 id="label-
|
|
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:
|
|
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="
|
|
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'>'</span><span class='tstring_content'>dockerize_rails</span><span class='tstring_end'>'</span></span>
|
|
81
77
|
</code></pre>
|
|
82
78
|
|
|
83
|
-
<p>And then execute
|
|
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
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
$ bundle exec dock
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
<
|
|
123
|
-
<command>
|
|
125
|
+
<pre class="code ruby"><code class="ruby">Usage: dock <command>
|
|
126
|
+
or: bundle exec dock <command>
|
|
124
127
|
|
|
125
|
-
|
|
128
|
+
commands:
|
|
126
129
|
|
|
127
|
-
|
|
128
|
-
|
|
130
|
+
configure, c, rc, cr - Generates '.dockerize.yml'
|
|
131
|
+
[--tiny] -- Generates shorter config file, skipping all descriptions
|
|
129
132
|
|
|
130
|
-
|
|
131
|
-
|
|
133
|
+
dockerize, dc, d - Generates docker config files
|
|
134
|
+
[--test-env] -- Generates configurations to run tests.
|
|
132
135
|
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
undockerize, ud, du, u, dd - Removes docker configurations
|
|
137
|
+
[--purge] -- Also removes .dockerize.yml
|
|
135
138
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
+
docker_start, start - Run/Starts Docker containers
|
|
147
|
+
docker_stop, stop - Stops Docker containers
|
|
148
|
+
[--delete] -- Also deletes the containers
|
|
146
149
|
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
docker_delete, delete - Deletes Docker containers
|
|
151
|
+
[--force] -- Force Container deletion.
|
|
149
152
|
|
|
150
|
-
|
|
153
|
+
help, h - Prints this message</code></pre>
|
|
151
154
|
|
|
152
|
-
<h2 id="label-
|
|
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:
|
|
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:
|
|
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
|
-
|
|
84
|
-
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2017-08-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: docker-api
|