minke 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/minke/go_docker.rb +10 -0
- data/lib/minke/rake/app.rake +3 -3
- data/lib/minke/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTAwNjcwYzI2NzYxNTNiOTMxMzY1Y2I3YjNjZTAxMjUzZTc0ODc1OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjIwMjk4MjVjNGNlZjVhMjYxMzQxMDFiMzJkMDZhNzYzNDEwYzY1YQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGU3Mzc0ZDg5YTk2ODllMjg2MDUwNWY4NGVmYzY2YjYxNGYzZGMxNWFjOWE2
|
10
|
+
ZDkzMDI5NzZiODBiNGViNTZiNzdjNjYxOGRmZWQ5MmFhMDk3MDU4NjgxNTIw
|
11
|
+
MGFlN2E2MGIxZDQxMDk2Mzk0ZjYyMzI1OTk5Mjk1ZmM1ZTE1Y2E=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDQ3M2RhNmVkODhhOGY1MzFjNGFlY2JlZDVhZmIxZGQ3Y2U4NjkwYzAzN2E3
|
14
|
+
OTA0MmEyMWJlZWM0OWYxZjhlNzI1OGFlM2VmNzcwMjA2ZmExZDAwMDM2MDAw
|
15
|
+
NTNmZWJhMzdkMDU3YmEwYmFkNmYzNGJhMDk1MDE3Y2E3MjlhNDY=
|
data/lib/minke/go_docker.rb
CHANGED
@@ -96,6 +96,16 @@ module Minke
|
|
96
96
|
return container, return_code
|
97
97
|
end
|
98
98
|
|
99
|
+
def self.delete_container container
|
100
|
+
if container != nil
|
101
|
+
begin
|
102
|
+
container.delete()
|
103
|
+
rescue => e
|
104
|
+
puts "Unable to delete container"
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
99
109
|
def self.tag_and_push args
|
100
110
|
image = self.find_image "#{args['go']['application_name']}:latest"
|
101
111
|
image.tag('repo' => "#{args['docker_registry']['namespace']}/#{args['go']['application_name']}", 'force' => true) unless image.info["RepoTags"].include? "#{args['docker_registry']['namespace']}/#{args['go']['application_name']}:latest"
|
data/lib/minke/rake/app.rake
CHANGED
@@ -10,7 +10,7 @@ namespace :app do
|
|
10
10
|
puts "Go get"
|
11
11
|
container, ret = Minke::GoDocker.create_and_run_container config['docker'], ['go','get','-t','-v','./...']
|
12
12
|
ensure
|
13
|
-
container
|
13
|
+
Minke::GoDocker.delete_container container
|
14
14
|
end
|
15
15
|
|
16
16
|
begin
|
@@ -20,7 +20,7 @@ namespace :app do
|
|
20
20
|
|
21
21
|
raise Exception, 'Error running command' unless ret == 0
|
22
22
|
ensure
|
23
|
-
container
|
23
|
+
Minke::GoDocker.delete_container container
|
24
24
|
end
|
25
25
|
end
|
26
26
|
|
@@ -36,7 +36,7 @@ namespace :app do
|
|
36
36
|
|
37
37
|
raise Exception, 'Error running command' unless ret == 0
|
38
38
|
ensure
|
39
|
-
container
|
39
|
+
Minke::GoDocker.delete_container container
|
40
40
|
end
|
41
41
|
end
|
42
42
|
|
data/lib/minke/version.rb
CHANGED