kitchen-docker 2.8.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf681b90a724609efd7b56203766d1e09c50fbab909b041e1e9cd6c0e4d6e07d
4
- data.tar.gz: 0b101baa332d10c1fdcb47619cd088cb874819c203713ca661241f955bd7a4b0
3
+ metadata.gz: 0a62c9e97edfb2215e2ad0f991eb88da0d9629e833af0165a78ebf7899894a81
4
+ data.tar.gz: be82c57778795e8d4b0866ff0b7451eaf499ff81f71703cd3d92cdd2ec92f562
5
5
  SHA512:
6
- metadata.gz: 70314bfc54ff2077b098022aa850b93081010e7e11681492dc274506378659c8010986220703d6db38d8b8f6e64fa82833922beca01080918f16ad9f90a4b65b
7
- data.tar.gz: a279ed751961077df27590671e64215ceddf43210fc0ffe6b1283a9308e4f99dd24b8e576fb3d4fc8e8471fc8fa01c569715d2e1df39f2f6379c0bd44942baea
6
+ metadata.gz: 68bba42a990ad9335cc62be341448857a7c53312ff210366876f569a42f90e53f1a05fdb80aa263d26e4e2daaeea29fb2a79348fbdefe130ba4d53949aae2ecc
7
+ data.tar.gz: 886d05137ffe4d7898f1865b7c03d4f504e9c1da7516b920685a32d5592d234cbd0c01d8a222ee266edb6504a85f95b6d2aef590c15131cdd8f89ac452e6f5a1
data/.gitignore CHANGED
@@ -17,3 +17,4 @@ test/version_tmp
17
17
  tmp
18
18
  .kitchen/
19
19
  .kitchen.local.yml
20
+ Dockerfile*
@@ -10,16 +10,20 @@ provisioner:
10
10
  name: dummy
11
11
 
12
12
  platforms:
13
- - name: ubuntu-14.04
13
+ - name: amazonlinux-2
14
14
  - name: ubuntu-16.04
15
+ - name: ubuntu-18.04
16
+ - name: fedora-latest
15
17
  - name: centos-6
16
18
  - name: centos-7
17
19
  - name: oraclelinux-6
18
20
  - name: oraclelinux-7
19
21
  - name: debian-8
20
- - name: opensuse-42.2
22
+ - name: debian-9
23
+ - name: opensuse-42.3
21
24
  driver:
22
- image: opensuse:42.2
25
+ image: opensuse:42.3
26
+ - name: opensuse/leap-42
23
27
  # - name: arch
24
28
  # driver:
25
29
  # image: base/archlinux
@@ -43,7 +47,7 @@ suites:
43
47
  driver:
44
48
  build_context: false
45
49
  - name: capabilities
46
- excludes: [arch,unknown,centos-7,centos-6,oraclelinux-6,oraclelinux-7,dockerfile,opensuse-42.2]
50
+ includes: [debian-8,debian-9,ubuntu-16.04,ubuntu-18.04]
47
51
  driver:
48
52
  provision_command:
49
53
  - curl -L https://www.chef.io/chef/install.sh | bash
@@ -1,11 +1,12 @@
1
- sudo: required
2
- dist: trusty
1
+ dist: xenial
3
2
  language: ruby
3
+ cache: bundler
4
4
 
5
5
  rvm:
6
- - "2.3.1"
7
- - "2.4.3"
8
- - "2.5.1"
6
+ - 2.3.8
7
+ - 2.4.5
8
+ - 2.5.4
9
+ - 2.6.2
9
10
 
10
11
  services:
11
12
  - docker
@@ -1,5 +1,10 @@
1
1
  # Kitchen-Docker Changelog
2
2
 
3
+ ## 2.9.0 - Mar 15, 2019
4
+
5
+ * Add automatic OS detection for amazonlinux, opensuse/leap, and opensuse/tumbleweed
6
+ * On Fedora containers uses dnf to setup the OS not yum
7
+
3
8
  ## 2.8.0 - Jan 18, 2019
4
9
 
5
10
  * Add new config option `use_internal_docker_network`, which allows running Docker within Docker. See readme for usage details.
data/README.md CHANGED
@@ -44,8 +44,8 @@ Examples:
44
44
  ```yaml
45
45
  ---
46
46
  platforms:
47
- - name: ubuntu-12.04
48
- - name: centos-6.4
47
+ - name: ubuntu-18.04
48
+ - name: centos-7
49
49
  ```
50
50
 
51
51
  This will effectively generate a configuration similar to:
@@ -53,13 +53,13 @@ This will effectively generate a configuration similar to:
53
53
  ```yaml
54
54
  ---
55
55
  platforms:
56
- - name: ubuntu-12.04
56
+ - name: ubuntu-18.04
57
57
  driver_config:
58
- image: ubuntu:12.04
58
+ image: ubuntu:18.04
59
59
  platform: ubuntu
60
- - name: centos-6.4
60
+ - name: centos-7
61
61
  driver_config:
62
- image: centos:6.4
62
+ image: centos:7
63
63
  platform: centos
64
64
  ```
65
65
 
@@ -129,10 +129,11 @@ Configuration section for more details).
129
129
  The platform of the chosen image. This is used to properly bootstrap the
130
130
  suite container for Test Kitchen. Kitchen Docker currently supports:
131
131
 
132
+ * `arch`
132
133
  * `debian` or `ubuntu`
133
- * `rhel` or `centos`
134
+ * `amazonlinux`, `rhel`, `centos`, `fedora` or `oraclelinux`
134
135
  * `gentoo` or `gentoo-paludis`
135
- * `opensuse` or `sles`
136
+ * `opensuse/tumbleweed`, `opensuse/leap`, `opensuse` or `sles`
136
137
 
137
138
  The default will be computed, using the platform name (see the Default
138
139
  Configuration section for more details).
@@ -91,7 +91,7 @@ module Kitchen
91
91
  run_command("#{config[:binary]} >> #{dev_null} 2>&1", quiet: true, use_sudo: config[:use_sudo])
92
92
  rescue
93
93
  raise UserError,
94
- 'You must first install the Docker CLI tool http://www.docker.io/gettingstarted/'
94
+ 'You must first install the Docker CLI tool https://www.docker.com/get-started'
95
95
  end
96
96
 
97
97
  def dev_null
@@ -216,7 +216,7 @@ module Kitchen
216
216
  RUN apt-get install -y sudo openssh-server curl lsb-release
217
217
  eos
218
218
  config[:disable_upstart] ? disable_upstart + packages : packages
219
- when 'rhel', 'centos', 'fedora', 'oraclelinux'
219
+ when 'rhel', 'centos', 'oraclelinux', 'amazonlinux'
220
220
  <<-eos
221
221
  ENV container docker
222
222
  RUN yum clean all
@@ -224,7 +224,15 @@ module Kitchen
224
224
  RUN [ -f "/etc/ssh/ssh_host_rsa_key" ] || ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
225
225
  RUN [ -f "/etc/ssh/ssh_host_dsa_key" ] || ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
226
226
  eos
227
- when 'opensuse', 'sles'
227
+ when 'fedora'
228
+ <<-eos
229
+ ENV container docker
230
+ RUN dnf clean all
231
+ RUN dnf install -y sudo openssh-server openssh-clients which curl
232
+ RUN [ -f "/etc/ssh/ssh_host_rsa_key" ] || ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ''
233
+ RUN [ -f "/etc/ssh/ssh_host_dsa_key" ] || ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ''
234
+ eos
235
+ when 'opensuse/tumbleweed', 'opensuse/leap', 'opensuse', 'sles'
228
236
  <<-eos
229
237
  ENV container docker
230
238
  RUN zypper install -y sudo openssh which curl
@@ -19,6 +19,6 @@ module Kitchen
19
19
  module Driver
20
20
 
21
21
  # Version string for Docker Kitchen driver
22
- DOCKER_VERSION = "2.8.0"
22
+ DOCKER_VERSION = "2.9.0"
23
23
  end
24
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0
4
+ version: 2.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sean Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-18 00:00:00.000000000 Z
11
+ date: 2019-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubygems_version: 3.0.1
233
+ rubygems_version: 3.0.3
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: A Docker Driver for Test Kitchen