kitchen-docker 2.13.0 → 3.0.0
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/.github/dependabot.yml +5 -5
- data/.github/workflows/ci.yml +124 -0
- data/.rubocop.yml +10 -0
- data/.yamllint +15 -0
- data/CHANGELOG.md +9 -0
- data/README.md +10 -0
- data/kitchen-docker.gemspec +1 -0
- data/kitchen.windows.yml +33 -0
- data/kitchen.yml +62 -0
- data/lib/kitchen/docker/docker_version.rb +1 -1
- data/lib/kitchen/docker/helpers/cli_helper.rb +184 -172
- data/lib/kitchen/docker/helpers/container_helper.rb +176 -172
- data/lib/kitchen/docker/helpers/dockerfile_helper.rb +28 -2
- data/lib/kitchen/docker/helpers/image_helper.rb +3 -2
- data/lib/kitchen/driver/docker.rb +1 -0
- data/test/integration/capabilities/{serverspec → disabled}/capabilities_drop_spec.rb +7 -6
- data/test/integration/default/{serverspec → disabled}/default_spec.rb +7 -6
- data/test/integration/default/{serverspec → disabled}/spec_helper.rb +7 -7
- data/test/spec/spec_helper.rb +1 -1
- metadata +28 -12
- data/.kitchen.windows.yml +0 -33
- data/.kitchen.yml +0 -65
- data/.travis.yml +0 -57
data/.kitchen.yml
DELETED
@@ -1,65 +0,0 @@
|
|
1
|
-
<% # Make sure the local copy of the driver is loaded %>
|
2
|
-
<% lib = File.expand_path('../lib', __FILE__) %>
|
3
|
-
<% $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) %>
|
4
|
-
---
|
5
|
-
driver:
|
6
|
-
name: docker
|
7
|
-
provision_command: curl -L https://www.chef.io/chef/install.sh | bash
|
8
|
-
|
9
|
-
transport:
|
10
|
-
name: docker
|
11
|
-
|
12
|
-
provisioner:
|
13
|
-
name: dummy
|
14
|
-
|
15
|
-
platforms:
|
16
|
-
- name: amazonlinux-2
|
17
|
-
- name: ubuntu-18.04
|
18
|
-
- name: ubuntu-20.04
|
19
|
-
- name: fedora-latest
|
20
|
-
driver:
|
21
|
-
provision_command:
|
22
|
-
- yum install libxcrypt-compat -y
|
23
|
-
- curl -L https://www.chef.io/chef/install.sh | bash
|
24
|
-
- name: centos-7
|
25
|
-
- name: oraclelinux-7
|
26
|
-
- name: rockylinux-8
|
27
|
-
- name: debian-9
|
28
|
-
- name: debian-10
|
29
|
-
- name: opensuse-15
|
30
|
-
driver:
|
31
|
-
image: opensuse/leap:15
|
32
|
-
- name: dockerfile
|
33
|
-
driver:
|
34
|
-
username: dockerfile
|
35
|
-
password: dockerfile
|
36
|
-
dockerfile: test/Dockerfile
|
37
|
-
run_command: /sbin/init
|
38
|
-
|
39
|
-
suites:
|
40
|
-
- name: default
|
41
|
-
excludes: [arch, debian-9]
|
42
|
-
- name: context
|
43
|
-
excludes: [arch, debian-9]
|
44
|
-
driver:
|
45
|
-
build_context: false
|
46
|
-
- name: capabilities
|
47
|
-
includes: [debian-10,ubuntu-18.04,ubuntu-20.04]
|
48
|
-
driver:
|
49
|
-
provision_command:
|
50
|
-
- curl -L https://www.chef.io/chef/install.sh | bash
|
51
|
-
- apt-get install -y net-tools
|
52
|
-
cap_drop:
|
53
|
-
- NET_ADMIN
|
54
|
-
- name: arm64
|
55
|
-
excludes: [debian-9]
|
56
|
-
driver:
|
57
|
-
docker_platform: linux/arm64
|
58
|
-
- name: amd64
|
59
|
-
driver:
|
60
|
-
docker_platform: linux/amd64
|
61
|
-
- name: inspec
|
62
|
-
driver:
|
63
|
-
provision_command: true
|
64
|
-
verifier:
|
65
|
-
name: inspec
|
data/.travis.yml
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
matrix:
|
2
|
-
include:
|
3
|
-
- os: linux
|
4
|
-
rvm: 2.4.9
|
5
|
-
dist: xenial
|
6
|
-
language: ruby
|
7
|
-
cache: bundler
|
8
|
-
script:
|
9
|
-
- bundle exec docker version
|
10
|
-
- bundle exec kitchen --version
|
11
|
-
- bundle exec rake spec
|
12
|
-
- bundle exec kitchen test -d always
|
13
|
-
- os: linux
|
14
|
-
rvm: 2.5.7
|
15
|
-
dist: xenial
|
16
|
-
language: ruby
|
17
|
-
cache: bundler
|
18
|
-
script:
|
19
|
-
- bundle exec docker version
|
20
|
-
- bundle exec kitchen --version
|
21
|
-
- bundle exec rake spec
|
22
|
-
- bundle exec kitchen test -d always
|
23
|
-
- os: linux
|
24
|
-
rvm: 2.6.5
|
25
|
-
dist: xenial
|
26
|
-
language: ruby
|
27
|
-
cache: bundler
|
28
|
-
script:
|
29
|
-
- bundle exec docker version
|
30
|
-
- bundle exec kitchen --version
|
31
|
-
- bundle exec rake spec
|
32
|
-
- bundle exec kitchen test -d always
|
33
|
-
- os: windows
|
34
|
-
language: bash
|
35
|
-
install:
|
36
|
-
- choco uninstall ruby
|
37
|
-
- choco install ruby --version=2.6.5.1
|
38
|
-
- export PATH=$(echo "$PATH" | sed -e 's/:\/c\/tools\/ruby27\/bin//')
|
39
|
-
- export PATH=$PATH:/c/tools/ruby26/bin
|
40
|
-
- choco install mingw
|
41
|
-
- choco install msys2
|
42
|
-
- ridk.cmd exec pacman -S --noconfirm --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-libxslt
|
43
|
-
script:
|
44
|
-
- if [[ $(tasklist | grep "gpg-agent") ]]; then taskkill -IM "gpg-agent.exe" -F; else echo "Process gpg-agent not found. Skipping."; fi
|
45
|
-
- powershell -ExecutionPolicy Bypass -NoLogo -File docker.ps1
|
46
|
-
- export KITCHEN_YAML=.kitchen.windows.yml
|
47
|
-
- ruby -v
|
48
|
-
- gem install bundler
|
49
|
-
- bundle config build.nokogiri --use-system-libraries
|
50
|
-
- bundle install
|
51
|
-
- bundle exec docker version
|
52
|
-
- bundle exec kitchen --version
|
53
|
-
- bundle exec rake spec
|
54
|
-
- bundle exec kitchen test -d always
|
55
|
-
|
56
|
-
services:
|
57
|
-
- docker
|