percheron 0.7.13 → 0.7.14
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/CHANGELOG.md +93 -0
- data/lib/percheron/actions/create.rb +2 -2
- data/lib/percheron/actions/exec.rb +3 -3
- data/lib/percheron/actions/exec_local.rb +1 -1
- data/lib/percheron/actions/logs.rb +1 -1
- data/lib/percheron/actions/purge.rb +1 -1
- data/lib/percheron/actions/recreate.rb +2 -2
- data/lib/percheron/actions/shell.rb +1 -1
- data/lib/percheron/actions/start.rb +1 -1
- data/lib/percheron/actions/stop.rb +1 -1
- data/lib/percheron/stack.rb +1 -1
- data/lib/percheron/unit.rb +5 -1
- data/lib/percheron/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4445d20c93033c570134361013fe728e544003fd
|
|
4
|
+
data.tar.gz: 10758084ea92c594af6fdb6f3e97ccb97bb5ff2d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17d9f87847470b2b2fd05d5715bcbc2c191fabafd86b4171bdf5b47eca8e8568faa379bd0041e7d123e7ac035db69b48f05b6dbf09c497b6377184bd914dcbba
|
|
7
|
+
data.tar.gz: be4a053a63c1c07206c5660ea8106cdb8549582ecd6e8fff713ed95149dee195a7adfb4345b51ff120f47e31960a3980565a0bf1616bc6bb3e0161d93edd384b
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
## v0.7.14 / 2015-08-06
|
|
2
|
+
|
|
3
|
+
* When executing scripts, pass -x for more insight
|
|
4
|
+
* When referring to Unit, use #display_name - <stack_name>:<unit_name>
|
|
5
|
+
|
|
6
|
+
## v0.7.13 / 2015-08-05
|
|
7
|
+
|
|
8
|
+
* Support for userdata in the .percheron.yml
|
|
9
|
+
* build command now has a --forcerm flag
|
|
10
|
+
|
|
11
|
+
## v0.7.12 / 2015-08-05
|
|
12
|
+
|
|
13
|
+
* Support for secrets in the .percheron.yml
|
|
14
|
+
* Config became a Singleton
|
|
15
|
+
* BUGfix where build output was not being displayed
|
|
16
|
+
|
|
17
|
+
## v0.7.11 / 2015-08-04
|
|
18
|
+
|
|
19
|
+
* Sweet logo! Thanks @clouseauu :)
|
|
20
|
+
* DOCKER_HOST, DOCKER_CERT_PATH and DOCKER_TLS_VERIFY are now inspected
|
|
21
|
+
* Gem updates
|
|
22
|
+
* Volumes in table view are printed on a new line
|
|
23
|
+
* Doc typo fixes
|
|
24
|
+
|
|
25
|
+
## v0.7.10 / 2015-05-19
|
|
26
|
+
|
|
27
|
+
* BUGfix when generating a graph with clusters
|
|
28
|
+
|
|
29
|
+
## v0.7.9 / 2015-05-19
|
|
30
|
+
|
|
31
|
+
* Exit with a 1 from main percheron CLT if there is a problem
|
|
32
|
+
* Dependency support for graph generation
|
|
33
|
+
* Documentation updates
|
|
34
|
+
|
|
35
|
+
## v0.7.8 / 2015-05-14
|
|
36
|
+
|
|
37
|
+
* Container -> Unit rename tidy up
|
|
38
|
+
* Documentation updates
|
|
39
|
+
|
|
40
|
+
## v0.7.7 / 2015-05-14
|
|
41
|
+
|
|
42
|
+
* Container -> Unit rename
|
|
43
|
+
* Documentation updates
|
|
44
|
+
|
|
45
|
+
## v0.7.6 / 2015-04-30
|
|
46
|
+
|
|
47
|
+
* BUGfix for inconsistent ordering in table view
|
|
48
|
+
|
|
49
|
+
## v0.7.5 / 2015-04-29
|
|
50
|
+
|
|
51
|
+
## v0.7.4 / 2015-03-26
|
|
52
|
+
|
|
53
|
+
## v0.7.3 / 2015-03-26
|
|
54
|
+
|
|
55
|
+
## v0.7.2 / 2015-03-24
|
|
56
|
+
|
|
57
|
+
## v0.7.1 / 2015-03-24
|
|
58
|
+
|
|
59
|
+
## v0.7.0 / 2015-03-23
|
|
60
|
+
|
|
61
|
+
## v0.6.4 / 2015-03-14
|
|
62
|
+
|
|
63
|
+
## v0.6.3 / 2015-03-14
|
|
64
|
+
|
|
65
|
+
## v0.6.2 / 2015-03-14
|
|
66
|
+
|
|
67
|
+
## v0.6.1 / 2015-03-13
|
|
68
|
+
|
|
69
|
+
## v0.6.0 / 2015-03-13
|
|
70
|
+
|
|
71
|
+
## v0.5.0 / 2015-03-09
|
|
72
|
+
|
|
73
|
+
## v0.4.0 / 2015-03-07
|
|
74
|
+
|
|
75
|
+
## v0.3.2 / 2015-03-06
|
|
76
|
+
|
|
77
|
+
## v0.3.1 / 2015-03-04
|
|
78
|
+
|
|
79
|
+
## v0.3.0 / 2015-03-04
|
|
80
|
+
|
|
81
|
+
## v0.2.4 / 2015-03-03
|
|
82
|
+
|
|
83
|
+
## v0.2.3 / 2015-03-02
|
|
84
|
+
|
|
85
|
+
## v0.2.2 / 2015-03-01
|
|
86
|
+
|
|
87
|
+
## v0.2.1 / 2015-03-01
|
|
88
|
+
|
|
89
|
+
## v0.2.0 / 2015-02-28
|
|
90
|
+
|
|
91
|
+
## v0.1.0 / 2015-02-22
|
|
92
|
+
|
|
93
|
+
* Initial commit!
|
|
@@ -15,7 +15,7 @@ module Percheron
|
|
|
15
15
|
def execute!
|
|
16
16
|
results = []
|
|
17
17
|
if unit.exists?
|
|
18
|
-
$logger.debug "Unit '#{unit.
|
|
18
|
+
$logger.debug "Unit '#{unit.display_name}' already exists"
|
|
19
19
|
else
|
|
20
20
|
results << create!
|
|
21
21
|
end
|
|
@@ -90,7 +90,7 @@ module Percheron
|
|
|
90
90
|
end
|
|
91
91
|
|
|
92
92
|
def create_unit!
|
|
93
|
-
$logger.info "Creating '#{unit.
|
|
93
|
+
$logger.info "Creating '#{unit.display_name}' unit"
|
|
94
94
|
Connection.perform(Docker::Container, :create, options)
|
|
95
95
|
end
|
|
96
96
|
|
|
@@ -12,7 +12,7 @@ module Percheron
|
|
|
12
12
|
end
|
|
13
13
|
|
|
14
14
|
def execute!
|
|
15
|
-
$logger.debug "Executing #{description} #{scripts.inspect} on '#{unit.
|
|
15
|
+
$logger.debug "Executing #{description} #{scripts.inspect} on '#{unit.display_name}' unit"
|
|
16
16
|
results = exec!
|
|
17
17
|
results.compact.empty? ? nil : unit
|
|
18
18
|
end
|
|
@@ -46,13 +46,13 @@ module Percheron
|
|
|
46
46
|
scripts.each do |script|
|
|
47
47
|
in_working_directory(base_dir) do
|
|
48
48
|
file = Pathname.new(File.expand_path(script, base_dir))
|
|
49
|
-
execute_command!('/bin/sh /tmp/%s 2>&1' % file.basename)
|
|
49
|
+
execute_command!('/bin/sh -x /tmp/%s 2>&1' % file.basename)
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
def execute_command!(command)
|
|
55
|
-
$logger.info "Executing #{description} '#{command}' for '#{unit.
|
|
55
|
+
$logger.info "Executing #{description} '#{command}' for '#{unit.display_name}' unit"
|
|
56
56
|
unit.container.exec(command.split(' ')) do |stream, out|
|
|
57
57
|
$logger.debug '%s: %s' % [ stream, out.strip ]
|
|
58
58
|
end
|
|
@@ -26,7 +26,7 @@ module Percheron
|
|
|
26
26
|
$logger.debug "Executing #{description} scripts '#{scripts.inspect}' locally"
|
|
27
27
|
scripts.each do |script|
|
|
28
28
|
in_working_directory(base_dir) do
|
|
29
|
-
execute_command!('/bin/sh %s 2>&1' % Pathname.new(File.expand_path(script)))
|
|
29
|
+
execute_command!('/bin/sh -x %s 2>&1' % Pathname.new(File.expand_path(script)))
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
|
@@ -31,7 +31,7 @@ module Percheron
|
|
|
31
31
|
|
|
32
32
|
def delete_unit!
|
|
33
33
|
return nil unless unit.exists?
|
|
34
|
-
$logger.info "Deleting '#{unit.
|
|
34
|
+
$logger.info "Deleting '#{unit.display_name}' unit"
|
|
35
35
|
unit.container.remove(force: force)
|
|
36
36
|
rescue Docker::Error::ConflictError => e
|
|
37
37
|
$logger.error "Unable to delete '%s' unit - %s" % [ unit.name, e.inspect ]
|
|
@@ -31,11 +31,11 @@ module Percheron
|
|
|
31
31
|
|
|
32
32
|
def inform!
|
|
33
33
|
return nil unless unit.dockerfile_md5s_match?
|
|
34
|
-
$logger.info "Unit '#{unit.
|
|
34
|
+
$logger.info "Unit '#{unit.display_name}' - No Dockerfile changes or version bump"
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def recreate!
|
|
38
|
-
$logger.debug "Unit '#{unit.
|
|
38
|
+
$logger.debug "Unit '#{unit.display_name}' exists but will be recreated"
|
|
39
39
|
Purge.new(unit).execute!
|
|
40
40
|
Create.new(unit).execute!
|
|
41
41
|
end
|
|
@@ -29,7 +29,7 @@ module Percheron
|
|
|
29
29
|
|
|
30
30
|
def exec!
|
|
31
31
|
cmd = '%s exec -ti %s %s' % [ DOCKER_CLIENT, unit.full_name, command ]
|
|
32
|
-
$logger.debug %(Executing "#{cmd}" on '#{unit.
|
|
32
|
+
$logger.debug %(Executing "#{cmd}" on '#{unit.display_name}' unit)
|
|
33
33
|
system(cmd)
|
|
34
34
|
end
|
|
35
35
|
end
|
data/lib/percheron/stack.rb
CHANGED
|
@@ -125,7 +125,7 @@ module Percheron
|
|
|
125
125
|
|
|
126
126
|
def exec_on_dependant_units_for(unit_names)
|
|
127
127
|
exec_on_units(unit_names) do |unit|
|
|
128
|
-
$logger.debug "Processing '#{unit.
|
|
128
|
+
$logger.debug "Processing '#{unit.display_name}' unit"
|
|
129
129
|
yield(unit)
|
|
130
130
|
unit_names.delete(unit.full_name)
|
|
131
131
|
end
|
data/lib/percheron/unit.rb
CHANGED
|
@@ -69,6 +69,10 @@ module Percheron
|
|
|
69
69
|
'%s_%s' % [ stack.name, name ]
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
+
def display_name
|
|
73
|
+
'%s:%s' % [ stack.name, name ]
|
|
74
|
+
end
|
|
75
|
+
|
|
72
76
|
def pseudo_full_name
|
|
73
77
|
'%s_%s' % [ stack.name, pseudo_name ]
|
|
74
78
|
end
|
|
@@ -93,7 +97,7 @@ module Percheron
|
|
|
93
97
|
|
|
94
98
|
def links
|
|
95
99
|
startable_dependant_units.map do |_, unit|
|
|
96
|
-
'%s:%s' % [ unit.full_name, unit.
|
|
100
|
+
'%s:%s' % [ unit.full_name, unit.full_name ]
|
|
97
101
|
end
|
|
98
102
|
end
|
|
99
103
|
|
data/lib/percheron/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: percheron
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ash McKenzie
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-08-
|
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clamp
|
|
@@ -303,6 +303,7 @@ files:
|
|
|
303
303
|
- ".rspec"
|
|
304
304
|
- ".rubocop.yml"
|
|
305
305
|
- ".travis.yml"
|
|
306
|
+
- CHANGELOG.md
|
|
306
307
|
- CODE_OF_CONDUCT.md
|
|
307
308
|
- Gemfile
|
|
308
309
|
- Gemfile.travis
|