Skip to content

Commit af9e73a

Browse files
authored
Merge pull request #138 from ProblemSetters/dockerce-version-unlock
Unlock "docker-ce" version to the latest, small performance fixes
2 parents 7f58a31 + 2c170ad commit af9e73a

29 files changed

Lines changed: 29 additions & 42 deletions

framework/inventory/ansible.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blackbox.framework.inventory.ansible() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

framework/inventory/awscli.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ blackbox.framework.inventory.awscli() {
2424
}
2525

2626
if [[ ! -x "/usr/local/aws-cli/v2/current/bin/aws" ]]; then
27-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
27+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
2828
apt update
2929
fi
3030

framework/inventory/boto3.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blackbox.framework.inventory.boto3() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

framework/inventory/chef-workstation.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blackbox.framework.inventory.chef-workstation() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

framework/inventory/chef.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blackbox.framework.inventory.chef() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

framework/inventory/cron.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blackbox.framework.inventory.cron() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

framework/inventory/discover.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blackbox.framework.inventory.discover() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

framework/inventory/docker-ce.inventory

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ blackbox.framework.inventory.docker-ce() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

3838
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends software-properties-common gpg-agent wget && {
3939
wget -S --output-document="/dev/stdout" --no-verbose https://download.docker.com/linux/ubuntu/gpg | APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=true apt-key add -
4040
add-apt-repository -y "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
4141

42-
local version=5:26.0.0-1~ubuntu.22.04~jammy
42+
local version=5:28.1.1-1~ubuntu.22.04~jammy
4343

4444
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends docker-ce="$version" docker-ce-cli="$version" docker-buildx-plugin "${with_packages[@]}" && {
4545
# Docker ulimit issue quickfix: https://github.com/docker/cli/issues/4807

framework/inventory/docker-compose.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blackbox.framework.inventory.docker-compose() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

framework/inventory/gawk.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ blackbox.framework.inventory.gawk() {
3131
return
3232
fi
3333

34-
if [ -z "$(find /var/lib/apt/lists -newermt "5 minutes ago")" ]; then
34+
if [ -z "$(find /var/lib/apt/lists -mindepth 1 -newermt "5 minutes ago")" ]; then
3535
apt update
3636
fi
3737

0 commit comments

Comments
 (0)