kitchen-dokken 2.6.7 → 2.6.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kitchen/driver/dokken.rb +0 -1
- data/lib/kitchen/driver/dokken_version.rb +1 -2
- data/lib/kitchen/helpers.rb +8 -5
- data/lib/kitchen/provisioner/dokken.rb +0 -1
- data/lib/kitchen/transport/dokken.rb +3 -1
- metadata +20 -16
- data/CHANGELOG.md +0 -176
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e1a5ce770e7c2c74257a1e33147dec2b2a693e0a265f516bafc87b4acf09c460
|
4
|
+
data.tar.gz: 7c1fa1eb07842721dfd72362c5c6dda9b2acb86deae54eea3c46b1dd230917d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e57f9c8c6f0a104ab1ecc50ad4b1660af9104b326db55e3e66af4fda0a879763f1dd3264a0d0860860ed3a6c6180ab7d178f0b9d6163b300a0f1d5673029aefe
|
7
|
+
data.tar.gz: c8f5ca66e58bfeb1a4a388c9d1b765a04b9428830e2e0a76eabd680eb19d383896f7a89f1d2d212470f3463d5f000109691ad44ca01526aea7a25d3089177a38
|
@@ -438,7 +438,6 @@ module Kitchen
|
|
438
438
|
rescue ::Docker::Error::ConflictError
|
439
439
|
debug "driver - rescue ConflictError: #{args['name']}"
|
440
440
|
with_retries { @container = ::Docker::Container.get(args['name'], {}, docker_connection) }
|
441
|
-
|
442
441
|
end
|
443
442
|
end
|
444
443
|
rescue ::Docker::Error => e
|
@@ -1,4 +1,3 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
1
|
#
|
3
2
|
# Author:: Sean OMeara (<sean@sean.io>)
|
4
3
|
#
|
@@ -19,6 +18,6 @@
|
|
19
18
|
module Kitchen
|
20
19
|
module Driver
|
21
20
|
# Version string for Dokken Kitchen driver
|
22
|
-
DOKKEN_VERSION = '2.6.
|
21
|
+
DOKKEN_VERSION = '2.6.8'.freeze
|
23
22
|
end
|
24
23
|
end
|
data/lib/kitchen/helpers.rb
CHANGED
@@ -24,7 +24,7 @@ module Dokken
|
|
24
24
|
def insecure_ssh_public_key
|
25
25
|
<<-EOF
|
26
26
|
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCoJwyW7qNhw+NTuOjC4+RVpESl+JBXebXzB7JqxRgKAbymq6B39azEAiNx5NzHkWcQmOyQNhFpKFSAufegcXRS4ctS1LcElEoXe9brDAqKEBSkmnXYfZXMNIG0Enw4+5W/rZxHFCAlsUSAHYtYZEs+3CgbIWuHhZ95C8UC6nGLWHNZOjcbsYZFrnFfO0qg0ene2w8LKhxqj5X0MRSdCIn1IwyxIbl5NND5Yk1Hx8JKsJtTiNTdxssiMgmM5bvTbYQUSf8pbGrRI30VQKBgQ8/UkidZbaTfvzWXYpwcDUERSbzEYCvkUytTemZIv6uhpPxqkfjl6KEOOml/iGqquPEr test-kitchen-rsa
|
27
|
-
EOF
|
27
|
+
EOF
|
28
28
|
end
|
29
29
|
|
30
30
|
def insecure_ssh_private_key
|
@@ -56,7 +56,7 @@ D58kDk7684mKwKotr34NfqkFl2ZJ8T+f8pVwmUNvtPtX0j8IO7/6bfIjPTFyNeFJ
|
|
56
56
|
XuIb2Qt4MLHABySsk653LDw/jTIGV26c068nZryq5OUPxk67Xgod54jKgOwjgjZS
|
57
57
|
X8N2N9ZNnORJqK374yGj1jWUU66mQhPvn49QpG8P2HEoh2RQjNvyHA==
|
58
58
|
-----END RSA PRIVATE KEY-----
|
59
|
-
EOF
|
59
|
+
EOF
|
60
60
|
end
|
61
61
|
|
62
62
|
def data_dockerfile
|
@@ -83,7 +83,7 @@ CMD [ "/usr/sbin/sshd", "-D", "-p", "22", "-o", "UseDNS=no", "-o", "UsePrivilege
|
|
83
83
|
|
84
84
|
VOLUME /opt/kitchen
|
85
85
|
VOLUME /opt/verifier
|
86
|
-
EOF
|
86
|
+
EOF
|
87
87
|
end
|
88
88
|
|
89
89
|
def create_data_image
|
@@ -117,14 +117,17 @@ EOF
|
|
117
117
|
|
118
118
|
def docker_info
|
119
119
|
@docker_info ||= ::Docker.info
|
120
|
+
rescue Excon::Error::Socket
|
121
|
+
puts "kitchen-dokken could not connect to the docker host at #{default_docker_host}. Is docker running?"
|
122
|
+
exit!
|
120
123
|
end
|
121
124
|
|
122
125
|
def dokken_create_sandbox
|
123
126
|
info("Creating kitchen sandbox at #{dokken_kitchen_sandbox}")
|
124
|
-
FileUtils.mkdir_p(dokken_kitchen_sandbox, :
|
127
|
+
FileUtils.mkdir_p(dokken_kitchen_sandbox, mode: 0o755)
|
125
128
|
|
126
129
|
info("Creating verifier sandbox at #{dokken_verifier_sandbox}")
|
127
|
-
FileUtils.mkdir_p(dokken_verifier_sandbox, :
|
130
|
+
FileUtils.mkdir_p(dokken_verifier_sandbox, mode: 0o755)
|
128
131
|
end
|
129
132
|
|
130
133
|
def dokken_delete_sandbox
|
@@ -167,7 +167,9 @@ module Kitchen
|
|
167
167
|
|
168
168
|
def login_command
|
169
169
|
@runner = options[:instance_name].to_s
|
170
|
-
|
170
|
+
cols = `tput cols`
|
171
|
+
lines = `tput lines`
|
172
|
+
args = ['exec', '-e', "COLUMNS=#{cols}", '-e', "LINES=#{lines}", '-it', @runner, '/bin/bash', '-login', '-i']
|
171
173
|
LoginCommand.new('docker', args)
|
172
174
|
end
|
173
175
|
|
metadata
CHANGED
@@ -1,57 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kitchen-dokken
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.6.
|
4
|
+
version: 2.6.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean OMeara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: docker-api
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.33'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.33'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: lockfile
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1
|
33
|
+
version: '2.1'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1
|
40
|
+
version: '2.1'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: test-kitchen
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '1.15'
|
48
|
+
- - "<"
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '3'
|
48
51
|
type: :runtime
|
49
52
|
prerelease: false
|
50
53
|
version_requirements: !ruby/object:Gem::Requirement
|
51
54
|
requirements:
|
52
|
-
- - "
|
55
|
+
- - ">="
|
53
56
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
57
|
+
version: '1.15'
|
58
|
+
- - "<"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '3'
|
55
61
|
description: A Test Kitchen Driver for Dokken
|
56
62
|
email:
|
57
63
|
- sean@sean.io
|
@@ -59,7 +65,6 @@ executables: []
|
|
59
65
|
extensions: []
|
60
66
|
extra_rdoc_files: []
|
61
67
|
files:
|
62
|
-
- CHANGELOG.md
|
63
68
|
- LICENSE
|
64
69
|
- lib/kitchen/driver/dokken.rb
|
65
70
|
- lib/kitchen/driver/dokken_version.rb
|
@@ -85,8 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
90
|
- !ruby/object:Gem::Version
|
86
91
|
version: '0'
|
87
92
|
requirements: []
|
88
|
-
|
89
|
-
rubygems_version: 2.7.5
|
93
|
+
rubygems_version: 3.0.3
|
90
94
|
signing_key:
|
91
95
|
specification_version: 4
|
92
96
|
summary: A Test Kitchen Driver that talks to the Docker Remote API and uses Volumes
|
data/CHANGELOG.md
DELETED
@@ -1,176 +0,0 @@
|
|
1
|
-
# Dokken Changelog
|
2
|
-
|
3
|
-
# 2.6.7 (2018-03-05)
|
4
|
-
|
5
|
-
- Fix a potential race condition that may have led to the error 'Did not find config file: /opt/kitchen/client.rb'
|
6
|
-
|
7
|
-
# 2.6.6
|
8
|
-
|
9
|
-
- Improving the error message handling with intermediate builder
|
10
|
-
- README updates
|
11
|
-
|
12
|
-
# 2.6.5
|
13
|
-
|
14
|
-
- Fixing cleanup_sandbox bug. Method from test-kitchen was causing the mount to break. Replaced it with one that globs.
|
15
|
-
|
16
|
-
# 2.6.4
|
17
|
-
|
18
|
-
- Fixing pull_image method to check for new id
|
19
|
-
|
20
|
-
# 2.6.3
|
21
|
-
|
22
|
-
- tmpfs support
|
23
|
-
|
24
|
-
# 2.6.2
|
25
|
-
|
26
|
-
- Removing NotFoundError from with_retries method
|
27
|
-
|
28
|
-
# 2.6.1
|
29
|
-
|
30
|
-
- bugfix issue #118 - Ensuring sandbox cleanup on local docker hosts
|
31
|
-
|
32
|
-
# 2.6.0
|
33
|
-
|
34
|
-
- Support for testing without provisioner converging
|
35
|
-
- entrypoint config
|
36
|
-
|
37
|
-
# 2.5.1
|
38
|
-
|
39
|
-
- re-adding boot2docker detection
|
40
|
-
|
41
|
-
# 2.5.0
|
42
|
-
|
43
|
-
- Adding support for exposing ports.
|
44
|
-
- Port systax matches docker-compose
|
45
|
-
|
46
|
-
```
|
47
|
-
driver:
|
48
|
-
hostname: www.computers.biz
|
49
|
-
ports: "1234"
|
50
|
-
```
|
51
|
-
|
52
|
-
...or something like
|
53
|
-
|
54
|
-
```
|
55
|
-
driver:
|
56
|
-
hostname: www.computers.biz
|
57
|
-
ports:
|
58
|
-
- '1234'
|
59
|
-
- '4321:4321/udp'
|
60
|
-
```
|
61
|
-
|
62
|
-
# 2.4.3
|
63
|
-
|
64
|
-
- Using better paths for lockfiles
|
65
|
-
|
66
|
-
# 2.4.2
|
67
|
-
|
68
|
-
- Using lockfile gem around chef-client container and dokken network creation
|
69
|
-
|
70
|
-
# 2.4.1
|
71
|
-
|
72
|
-
- Adding NotFoundError to with_retries and beefing up rescues
|
73
|
-
|
74
|
-
# 2.4.0
|
75
|
-
|
76
|
-
- Features meant for 2.2.0, but tested properly this time.
|
77
|
-
- Initial support for clusters / inter-suite name resolution
|
78
|
-
- Dokken now creates a user-defined network named "dokken" and connects containers to it. This allows us to take advantage of the built in DNS server that in Docker 1.10 and later.
|
79
|
-
|
80
|
-
```
|
81
|
-
driver:
|
82
|
-
hostname: www.computers.biz
|
83
|
-
```
|
84
|
-
|
85
|
-
# 2.3.1
|
86
|
-
|
87
|
-
- Actually doing the things in 2.3.0
|
88
|
-
|
89
|
-
# 2.3.0
|
90
|
-
|
91
|
-
- Reverting 2.2.x bits to 2.1.x. to restore stability to users.
|
92
|
-
- That'll teach me to push gems at odd hours.
|
93
|
-
|
94
|
-
# 2.2.4
|
95
|
-
|
96
|
-
- bugfix: Only placing runner containers in user defined network
|
97
|
-
|
98
|
-
# 2.2.3
|
99
|
-
|
100
|
-
- bugfix: Adding gaurd logic for already existing dokken network
|
101
|
-
|
102
|
-
# 2.2.2
|
103
|
-
|
104
|
-
- bugfix: Creating dokken network before chef container
|
105
|
-
|
106
|
-
# 2.2.1
|
107
|
-
|
108
|
-
- Putting chef-client container in dokken network
|
109
|
-
- casting aliases to Array
|
110
|
-
|
111
|
-
# 2.2.0
|
112
|
-
|
113
|
-
- Initial support for clusters / inter-suite name resolution
|
114
|
-
- Dokken now creates a user-defined network named "dokken" and connects containers to it. This allows us to take advantage of the built in DNS server that in Docker 1.10 and later.
|
115
|
-
|
116
|
-
driver: hostname: www.computers.biz
|
117
|
-
|
118
|
-
# 2.1.10
|
119
|
-
|
120
|
-
- Adding boot2docker detection
|
121
|
-
|
122
|
-
# 2.1.9
|
123
|
-
|
124
|
-
- Various fixes around remote docker host usage
|
125
|
-
|
126
|
-
# 2.1.8
|
127
|
-
|
128
|
-
- Using user specified image_prefix in instance_name
|
129
|
-
|
130
|
-
# 2.1.7
|
131
|
-
|
132
|
-
- bumping version. must have accidentally pushed a 2.1.6
|
133
|
-
|
134
|
-
# 2.1.6
|
135
|
-
|
136
|
-
- PR #107 - pass write_timeout to runner exec
|
137
|
-
- PR #110 - (fix issue #109) - Add retry feature
|
138
|
-
|
139
|
-
# 2.1.5
|
140
|
-
|
141
|
-
- Fixing (again) latest/current logic (thanks @tas50)
|
142
|
-
|
143
|
-
# 2.1.4
|
144
|
-
|
145
|
-
- Fixing up current/stable/latest nomenclature to match Chef release pipeline
|
146
|
-
|
147
|
-
# 2.1.3
|
148
|
-
|
149
|
-
- Merged a bunch of PRs
|
150
|
-
- # 85 - mount default boot2docker shared folder in Windows
|
151
|
-
|
152
|
-
- # 93 - fix bundler path issue, should fix issue #92
|
153
|
-
|
154
|
-
- # 97 - readme: systemd requires specific mount
|
155
|
-
|
156
|
-
## 2.1.2
|
157
|
-
|
158
|
-
- Making a CHANGELOG.md
|
159
|
-
- Updated gem spec to depend on test-kitchen ~> 1.5
|
160
|
-
|
161
|
-
## 2.1.1
|
162
|
-
|
163
|
-
- Fixed busser (serverspec, etc) test data uploading
|
164
|
-
|
165
|
-
## 2.0.0
|
166
|
-
|
167
|
-
- Uses chef/chef (instead of someara/chef)
|
168
|
-
|
169
|
-
- Bind mounts data instead of uploading through kitchen-cache container when talking to a local Docker host. (most use cases)
|
170
|
-
|
171
|
-
- Renders a Dockefile and builds dokken/kitchen-cache when taling to a remote Docker host. (DOCKER_HOST =~ /^tcp:/)
|
172
|
-
|
173
|
-
## 1.0.0
|
174
|
-
|
175
|
-
- First stable release.
|
176
|
-
- Relied on someara/chef and someara/kitchen-cache from the Docker hub.
|