diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d201dd636..9171d7665 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,13 +24,12 @@ jobs: matrix: os: - "almalinux-8" - - "centos-7" - - "centos-stream-8" - - "debian-10" - "debian-11" + - "debian-12" - "rockylinux-8" - - "ubuntu-1804" + - "rockylinux-9" - "ubuntu-2004" + - "ubuntu-2204" suite: - "installation-script-main" - "installation-script-test" @@ -38,10 +37,10 @@ jobs: - "installation-tarball" - "install-and-stop" exclude: - - os: debian-9 - suite: installation-script-main - os: debian-11 suite: installation-script-test + - os: debian-12 + suite: installation-script-test - os: almalinux-8 suite: installation-script-main - os: almalinux-8 @@ -50,6 +49,10 @@ jobs: suite: installation-script-main - os: rockylinux-8 suite: installation-script-test + - os: rockylinux-9 + suite: installation-script-main + - os: rockylinux-9 + suite: installation-script-test fail-fast: false steps: diff --git a/CHANGELOG.md b/CHANGELOG.md index e681f6587..c72fb6c66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +- Bump `docker-api` dependency to `>= 2.3` to fix [upstream bug #586](https://github.com/upserve/docker-api/issues/586) + ## 11.3.6 - *2024-07-08* - Version bump to force a release diff --git a/kitchen.dokken.yml b/kitchen.dokken.yml index 1dfe62c8f..6ead9e8e7 100644 --- a/kitchen.dokken.yml +++ b/kitchen.dokken.yml @@ -22,11 +22,6 @@ platforms: image: dokken/amazonlinux-2023 pid_one_command: /usr/lib/systemd/systemd - - name: centos-stream-8 - driver: - image: dokken/centos-stream-8 - pid_one_command: /usr/lib/systemd/systemd - - name: centos-stream-9 driver: image: dokken/centos-stream-9 diff --git a/kitchen.global.yml b/kitchen.global.yml index 4396f11eb..1740e4614 100644 --- a/kitchen.global.yml +++ b/kitchen.global.yml @@ -18,7 +18,6 @@ platforms: - name: almalinux-8 - name: almalinux-9 - name: amazonlinux-2023 - - name: centos-stream-8 - name: centos-stream-9 - name: debian-11 - name: debian-12 diff --git a/kitchen.yml b/kitchen.yml index fb6728a55..ccf96395b 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -20,7 +20,6 @@ platforms: - name: almalinux-8 - name: amazonlinux-2 - name: centos-7 - - name: centos-stream-8 - name: debian-10 # docker post-install script misbehaves on Debian 10 if systemd isn't completely started # https://forums.docker.com/t/failed-to-load-listeners-no-sockets-found-via-socket-activation-make-sure-the-service-was-started-by-systemd/62505/11 diff --git a/metadata.rb b/metadata.rb index 1d78e6e04..77c66736d 100644 --- a/metadata.rb +++ b/metadata.rb @@ -17,5 +17,4 @@ supports 'redhat' supports 'ubuntu' -gem 'docker-api', '>= 1.34', '< 3' -gem 'excon', '0.110.0' +gem 'docker-api', '>= 2.3', '< 3' diff --git a/resources/installation_package.rb b/resources/installation_package.rb index 9cc8b2f65..fd2ca0501 100644 --- a/resources/installation_package.rb +++ b/resources/installation_package.rb @@ -52,6 +52,11 @@ def bullseye? false end +def bookworm? + return true if platform?('debian') && node['platform_version'].to_i == 11 + false +end + def bionic? return true if platform?('ubuntu') && node['platform_version'] == '18.04' false @@ -76,6 +81,8 @@ def version_string(v) 'buster' elsif bullseye? # deb 11 'bullseye' + elsif bookworm? # deb 12 + 'bookworm' elsif bionic? # ubuntu 18.04 'bionic' elsif focal? # ubuntu 20.04 diff --git a/test/integration/install_and_stop/inspec/assert_functioning_spec.rb b/test/integration/install_and_stop/inspec/assert_functioning_spec.rb index 0751256a5..0088abdea 100644 --- a/test/integration/install_and_stop/inspec/assert_functioning_spec.rb +++ b/test/integration/install_and_stop/inspec/assert_functioning_spec.rb @@ -1,18 +1,22 @@ -# Debian 9 does not include 23.0 -if os.name == 'debian' && os.release.to_i == 9 +if os.name == 'debian' describe command('/usr/bin/docker --version') do its(:exit_status) { should eq 0 } - its(:stdout) { should match(/19\.03\./) } + its(:stdout) { should match(/27\.0\./) } end elsif os.name == 'amazon' && %w(2 2023).include?(os.release) describe command('/usr/bin/docker --version') do its(:exit_status) { should eq 0 } its(:stdout) { should match(/20\.10\./) } end +elsif os.family == 'redhat' && os.release.to_i == 8 + describe command('/usr/bin/docker --version') do + its(:exit_status) { should eq 0 } + its(:stdout) { should match(/26\.1\./) } + end else describe command('/usr/bin/docker --version') do its(:exit_status) { should eq 0 } - its(:stdout) { should match(/24\.0\./) } + its(:stdout) { should match(/27\.0\./) } end end diff --git a/test/integration/installation_package/inspec/assert_functioning_spec.rb b/test/integration/installation_package/inspec/assert_functioning_spec.rb index 82921ec66..337d8a715 100644 --- a/test/integration/installation_package/inspec/assert_functioning_spec.rb +++ b/test/integration/installation_package/inspec/assert_functioning_spec.rb @@ -1,12 +1,11 @@ -# Debian 9 does not include 20.10 -if os.name == 'debian' && os.release.to_i == 9 +if os.family == 'redhat' && os.release.to_i == 8 describe command('/usr/bin/docker --version') do its(:exit_status) { should eq 0 } - its(:stdout) { should match(/19\.03\./) } + its(:stdout) { should match(/26\.1\./) } end else describe command('/usr/bin/docker --version') do its(:exit_status) { should eq 0 } - its(:stdout) { should match(/24\.0\./) } + its(:stdout) { should match(/27\.1\./) } end end