Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
san983 authored Jul 12, 2024
2 parents 80b9798 + cdbfad1 commit 8d37c3e
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 24 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,10 @@ 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"
- "ubuntu-2404"
Expand All @@ -40,10 +38,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
Expand All @@ -52,6 +50,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:
Expand Down
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## 11.3.7 - *2024-07-09*

- 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

## 11.3.5 - *2024-07-08*

- Temporary version in for `excon` gem due to v0.111.0 introducing breaking changes with the `docker-api` gem. To be fixed [upstream](https://github.com/upserve/docker-api/issues/586)

Standardise files with files in sous-chefs/repo-management

Standardise files with files in sous-chefs/repo-management
Expand All @@ -18,7 +30,7 @@ Standardise files with files in sous-chefs/repo-management
## 11.3.2 - *2024-02-21*

- Add site_url property to docker_installation_package resource

## 11.3.1 - *2024-02-15*

## 11.3.0 - *2023-10-12*
Expand Down
5 changes: 0 additions & 5 deletions kitchen.dokken.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion kitchen.global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email 'help@sous-chefs.org'
license 'Apache-2.0'
description 'Provides docker_service, docker_image, and docker_container resources'
version '11.3.4'
version '11.3.7'
source_url 'https://github.com/sous-chefs/docker'
issues_url 'https://github.com/sous-chefs/docker/issues'
chef_version '>= 16.0', '< 19.0'
Expand All @@ -17,4 +17,4 @@
supports 'redhat'
supports 'ubuntu'

gem 'docker-api', '>= 1.34', '< 3'
gem 'docker-api', '>= 2.3', '< 3'
7 changes: 7 additions & 0 deletions resources/installation_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -81,6 +86,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
Expand Down
Original file line number Diff line number Diff line change
@@ -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

Expand Down
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8d37c3e

Please sign in to comment.