docker-rails 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/docker/rails/app.rb +12 -0
- data/lib/docker/rails/cli/gems_volume.rb +1 -10
- data/lib/docker/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: 52b6b65dc737230fe132456a384179de3a42a2c1
|
4
|
+
data.tar.gz: a8cae9865e9b9bc5dbceb954746e32a5b02708ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e6c98d4b1bf72679aeb9a1002bb85b4e46434923202dd79ca9366695a4543f67a18e07f05629bdaeb5f3a29f6b261b43c56a0d32e718548252214bf398bfe06
|
7
|
+
data.tar.gz: aec9dd8c82ab3e4922c49b3ce862575463d412f15cf6800b191b9dfdb830bf44a450557fe3e9df5c05895abcd4356e28a5808a80cd3c7165519035f2d0524c62
|
data/README.md
CHANGED
data/lib/docker/rails/app.rb
CHANGED
@@ -123,6 +123,18 @@ module Docker
|
|
123
123
|
exec "docker exec -it #{container_name} bash"
|
124
124
|
end
|
125
125
|
|
126
|
+
# Create global gems data volume to cache gems for this version of ruby
|
127
|
+
def create_gems_volume
|
128
|
+
begin
|
129
|
+
Docker::Container.get(@gems_volume_name)
|
130
|
+
puts "Gem data volume container #{@gems_volume_name} already exists."
|
131
|
+
rescue Docker::Error::NotFoundError => e
|
132
|
+
|
133
|
+
exec "docker create -v #{@gems_volume_path} --name #{@gems_volume_name} busybox"
|
134
|
+
puts "Gem data volume container #{@gems_volume_name} created."
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
126
138
|
protected
|
127
139
|
|
128
140
|
def exec(cmd, capture = false)
|
@@ -7,16 +7,7 @@ module Docker
|
|
7
7
|
|
8
8
|
desc 'create', 'Create a gem volume'
|
9
9
|
def create(target = nil)
|
10
|
-
|
11
|
-
app = App.configured(target, options)
|
12
|
-
begin
|
13
|
-
Docker::Container.get(app.gems_volume_name)
|
14
|
-
puts "Gem data volume container #{app.gems_volume_name} already exists."
|
15
|
-
rescue Docker::Error::NotFoundError => e
|
16
|
-
|
17
|
-
exec "docker create -v #{app.gems_volume_path} --name #{app.gems_volume_path} busybox"
|
18
|
-
puts "Gem data volume container #{app.gems_volume_name} created."
|
19
|
-
end
|
10
|
+
App.configured(target, options).create_gems_volume
|
20
11
|
end
|
21
12
|
|
22
13
|
|
data/lib/docker/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: docker-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Ross
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|