Skip to content

Commit 2ebf0aa

Browse files
authored
Merge pull request #198 from crazy-max/rm-distros
distro: remove EOLs
2 parents 81915df + 89c9936 commit 2ebf0aa

File tree

17 files changed

+11
-206
lines changed

17 files changed

+11
-206
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ include common/packages.mk
4040

4141
GHA_MATRIX ?= minimal
4242
ifeq ($(GHA_MATRIX),minimal)
43-
GHA_RELEASES := debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2310 centos7 centos9 oraclelinux7 fedora39 static
43+
GHA_RELEASES := debian10 debian11 debian12 ubuntu2004 ubuntu2204 centos9 oraclelinux9 fedora39 static
4444
else ifeq ($(GHA_MATRIX),all)
4545
GHA_RELEASES := $(PKG_DEB_RELEASES) $(PKG_RPM_RELEASES) static
4646
else

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,8 @@ $ make
287287
$ make pkg-deb
288288
# build debian bullseye packages
289289
$ make run-pkg-debian11
290-
# build centos 7 packages
291-
$ make run-pkg-centos7
290+
# build centos 9 packages
291+
$ make run-pkg-centos9
292292
```
293293

294294
To create a new release of Buildx v0.9.1:

common/packages.hcl

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -152,50 +152,6 @@ target "_pkg-ubuntu2204" {
152152
}
153153
}
154154

155-
target "_pkg-ubuntu2304" {
156-
args = {
157-
PKG_RELEASE = "ubuntu2304"
158-
PKG_TYPE = "deb"
159-
PKG_DISTRO = "ubuntu"
160-
PKG_DISTRO_ID = "23.04"
161-
PKG_DISTRO_SUITE = "lunar"
162-
PKG_BASE_IMAGE = "ubuntu:lunar"
163-
}
164-
}
165-
166-
target "_pkg-ubuntu2310" {
167-
args = {
168-
PKG_RELEASE = "ubuntu2310"
169-
PKG_TYPE = "deb"
170-
PKG_DISTRO = "ubuntu"
171-
PKG_DISTRO_ID = "23.10"
172-
PKG_DISTRO_SUITE = "mantic"
173-
PKG_BASE_IMAGE = "ubuntu:mantic"
174-
}
175-
}
176-
177-
target "_pkg-centos7" {
178-
args = {
179-
PKG_RELEASE = "centos7"
180-
PKG_TYPE = "rpm"
181-
PKG_DISTRO = "centos"
182-
PKG_DISTRO_ID = "7"
183-
PKG_DISTRO_SUITE = "7"
184-
PKG_BASE_IMAGE = "centos:7"
185-
}
186-
}
187-
188-
target "_pkg-centos8" {
189-
args = {
190-
PKG_RELEASE = "centos8"
191-
PKG_TYPE = "rpm"
192-
PKG_DISTRO = "centos"
193-
PKG_DISTRO_ID = "8"
194-
PKG_DISTRO_SUITE = "8"
195-
PKG_BASE_IMAGE = "quay.io/centos/centos:stream8"
196-
}
197-
}
198-
199155
target "_pkg-centos9" {
200156
args = {
201157
PKG_RELEASE = "centos9"
@@ -240,17 +196,6 @@ target "_pkg-fedora39" {
240196
}
241197
}
242198

243-
target "_pkg-oraclelinux7" {
244-
args = {
245-
PKG_RELEASE = "oraclelinux7"
246-
PKG_TYPE = "rpm"
247-
PKG_DISTRO = "oraclelinux"
248-
PKG_DISTRO_ID = "7"
249-
PKG_DISTRO_SUITE = "7"
250-
PKG_BASE_IMAGE = "oraclelinux:7"
251-
}
252-
}
253-
254199
target "_pkg-oraclelinux8" {
255200
args = {
256201
PKG_RELEASE = "oraclelinux8"

common/packages.mk

Lines changed: 2 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
# don't forget to add/update pkg-info-* rule and update packages.hcl as well
1616
# if you add a new release
1717
PKG_APK_RELEASES ?= alpine314 alpine315 alpine316
18-
PKG_DEB_RELEASES ?= debian10 debian11 debian12 ubuntu2004 ubuntu2204 ubuntu2304 ubuntu2310 raspbian10 raspbian11 raspbian12
19-
PKG_RPM_RELEASES ?= centos7 centos8 centos9 fedora37 fedora38 fedora39 oraclelinux7 oraclelinux8 oraclelinux9
18+
PKG_DEB_RELEASES ?= debian10 debian11 debian12 ubuntu2004 ubuntu2204 raspbian10 raspbian11 raspbian12
19+
PKG_RPM_RELEASES ?= centos9 fedora37 fedora38 fedora39 oraclelinux8 oraclelinux9
2020

2121
# PKG_SUPPORTED_PLATFORMS could be replaced by:
2222
# docker buildx imagetools inspect centos:7 --format "{{json .Manifest}}" | jq -r '.manifests[] | "\(.platform.os)/\(.platform.architecture)/\(.platform.variant)"' | sed 's#/null$##' | tr '\n' ',' | sed 's#,$##'
@@ -138,45 +138,6 @@ pkg-info-ubuntu2204:
138138
@# FIXME: linux/riscv64 is not supported (golang base image does not support riscv64)
139139
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64 linux/arm/v7 linux/ppc64le linux/s390x)
140140

141-
.PHONY: pkg-info-ubuntu2304
142-
pkg-info-ubuntu2304:
143-
$(eval PKG_TYPE = deb)
144-
$(eval PKG_DISTRO = ubuntu)
145-
$(eval PKG_DISTRO_ID = 23.04)
146-
$(eval PKG_DISTRO_SUITE = lunar)
147-
$(eval PKG_BASE_IMAGE = ubuntu:lunar)
148-
@# FIXME: linux/riscv64 is not supported (golang base image does not support riscv64)
149-
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64 linux/arm/v7 linux/ppc64le linux/s390x)
150-
151-
.PHONY: pkg-info-ubuntu2310
152-
pkg-info-ubuntu2310:
153-
$(eval PKG_TYPE = deb)
154-
$(eval PKG_DISTRO = ubuntu)
155-
$(eval PKG_DISTRO_ID = 23.10)
156-
$(eval PKG_DISTRO_SUITE = mantic)
157-
$(eval PKG_BASE_IMAGE = ubuntu:mantic)
158-
@# FIXME: linux/riscv64 is not supported (golang base image does not support riscv64)
159-
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64 linux/arm/v7 linux/ppc64le linux/s390x)
160-
161-
.PHONY: pkg-info-centos7
162-
pkg-info-centos7:
163-
$(eval PKG_TYPE = rpm)
164-
$(eval PKG_DISTRO = centos)
165-
$(eval PKG_DISTRO_ID = 7)
166-
$(eval PKG_DISTRO_SUITE = 7)
167-
$(eval PKG_BASE_IMAGE = centos:7)
168-
@# FIXME: packages look broken for linux/arm/v7 on centos:7
169-
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64 linux/ppc64le)
170-
171-
.PHONY: pkg-info-centos8
172-
pkg-info-centos8:
173-
$(eval PKG_TYPE = rpm)
174-
$(eval PKG_DISTRO = centos)
175-
$(eval PKG_DISTRO_ID = 8)
176-
$(eval PKG_DISTRO_SUITE = 8)
177-
$(eval PKG_BASE_IMAGE = quay.io/centos/centos:stream8)
178-
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64 linux/ppc64le)
179-
180141
.PHONY: pkg-info-centos9
181142
pkg-info-centos9:
182143
$(eval PKG_TYPE = rpm)
@@ -214,15 +175,6 @@ pkg-info-fedora39:
214175
$(eval PKG_BASE_IMAGE = fedora:39)
215176
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64 linux/ppc64le linux/s390x)
216177

217-
.PHONY: pkg-info-oraclelinux7
218-
pkg-info-oraclelinux7:
219-
$(eval PKG_TYPE = rpm)
220-
$(eval PKG_DISTRO = oraclelinux)
221-
$(eval PKG_DISTRO_ID = 7)
222-
$(eval PKG_DISTRO_SUITE = 7)
223-
$(eval PKG_BASE_IMAGE = oraclelinux:7)
224-
$(eval PKG_SUPPORTED_PLATFORMS = linux/amd64 linux/arm64)
225-
226178
.PHONY: pkg-info-oraclelinux8
227179
pkg-info-oraclelinux8:
228180
$(eval PKG_TYPE = rpm)

common/scripts/rpm-init.sh

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -35,43 +35,11 @@ EOF
3535
}
3636

3737
case "$pkgrelease" in
38-
centos7)
39-
[ -f /etc/yum.repos.d/CentOS-Sources.repo ] && sed -i 's/altarch/centos/g' /etc/yum.repos.d/CentOS-Sources.repo
40-
yum install -y rpm-build rpmlint epel-release
41-
# FIXME: centos 7 has an old git version (1.8) not compatible with gen-ver
42-
# script so install it from Software Collection as a workaround.
43-
# https://wiki.centos.org/AdditionalResources/Repositories/SCL
44-
yum install -y centos-release-scl-rh
45-
swcolInstallGit "227"
46-
# remove software collections repo when Git installed otherwise wrong deps
47-
# are picked up by yum-builddep
48-
yum remove -y centos-release-scl-rh
49-
;;
50-
centos8)
51-
[ -f /etc/yum.repos.d/CentOS-Stream-Sources.repo ] && sed -i 's/altarch/centos/g' /etc/yum.repos.d/CentOS-Stream-Sources.repo
52-
[ -f /etc/yum.repos.d/CentOS-Stream-PowerTools.repo ] && sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
53-
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
54-
dnf install -y git rpm-build rpmlint dnf-plugins-core epel-release epel-next-release
55-
;;
5638
centos9)
5739
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
5840
dnf install -y git rpm-build rpmlint dnf-plugins-core epel-release epel-next-release
5941
dnf config-manager --set-enabled crb
6042
;;
61-
oraclelinux7)
62-
[ -f /etc/yum.repos.d/CentOS-Sources.repo ] && sed -i 's/altarch/centos/g' /etc/yum.repos.d/CentOS-Sources.repo
63-
yum install -y rpm-build rpmlint oraclelinux-release-el7 oracle-softwarecollection-release-el7 oracle-epel-release-el7
64-
yum-config-manager --enable ol7_addons ol7_latest ol7_optional_latest ol7_software_collections
65-
# FIXME: oracle linux 7 has an old git version (1.9) not compatible with
66-
# gen-ver script so install it from Software Collection as a workaround.
67-
# https://docs.oracle.com/en/operating-systems/oracle-linux/scl-user/ol-scl-relnotes.html#section_e3v_nbl_cr
68-
yum install -y oracle-softwarecollection-release-el7
69-
yum-config-manager --enable ol7_software_collections
70-
swcolInstallGit "29"
71-
# disable software collections repo when Git installed otherwise wrong deps
72-
# are picked up by yum-builddep
73-
yum-config-manager --disable ol7_software_collections
74-
;;
7543
oraclelinux8)
7644
dnf install -y git rpm-build rpmlint dnf-plugins-core oraclelinux-release-el8 oracle-epel-release-el8
7745
dnf config-manager --enable ol8_addons ol8_codeready_builder

common/scripts/verify-rpm-init.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,11 @@ fi
2424
set -e
2525

2626
case "$pkgrelease" in
27-
centos7)
28-
yum install -y findutils epel-release
29-
;;
30-
centos8)
31-
[ -f /etc/yum.repos.d/CentOS-Stream-PowerTools.repo ] && sed -i 's/enabled=0/enabled=1/g' /etc/yum.repos.d/CentOS-Stream-PowerTools.repo
32-
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
33-
dnf install -y findutils dnf-plugins-core epel-release epel-next-release
34-
;;
3527
centos9)
3628
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
3729
dnf install -y findutils dnf-plugins-core epel-release epel-next-release
3830
dnf config-manager --set-enabled crb
3931
;;
40-
oraclelinux7)
41-
yum install -y findutils oraclelinux-release-el7 oracle-epel-release-el7
42-
yum-config-manager --enable ol7_addons ol7_latest ol7_optional_latest
43-
;;
4432
oraclelinux8)
4533
dnf install -y findutils dnf-plugins-core oraclelinux-release-el8 oracle-epel-release-el8
4634
dnf config-manager --enable ol8_addons ol8_codeready_builder

pkg/buildx/rpm/docker-buildx-plugin.spec

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ URL: https://github.com/docker/buildx
1212
Vendor: Docker
1313
Packager: Docker <support@docker.com>
1414

15-
# CentOS 7 and RHEL 7 do not yet support weak dependencies.
16-
#
17-
# Note that we're not using <= 7 here, to account for other RPM distros, such
18-
# as Fedora, which would not have the rhel macro set (so default to 0).
19-
%if 0%{?rhel} != 7
2015
Enhances: docker-ce-cli
21-
%endif
2216

2317
BuildRequires: bash
2418

pkg/compose/rpm/docker-compose-plugin.spec

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,7 @@ URL: https://github.com/docker/compose
1212
Vendor: Docker
1313
Packager: Docker <support@docker.com>
1414

15-
# CentOS 7 and RHEL 7 do not yet support weak dependencies.
16-
#
17-
# Note that we're not using <= 7 here, to account for other RPM distros, such
18-
# as Fedora, which would not have the rhel macro set (so default to 0).
19-
%if 0%{?rhel} != 7
2015
Enhances: docker-ce-cli
21-
%endif
2216

2317
BuildRequires: bash
2418
BuildRequires: make

pkg/credential-helpers/verify.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ RUN --mount=from=bin-folder,target=/build <<EOT
7070
extraflags=""
7171
case "$PKG_RELEASE" in
7272
# required pass package not available
73-
centos7|oraclelinux9)
73+
oraclelinux9)
7474
extraflags="--skip-broken"
7575
;;
7676
centos9)
@@ -89,7 +89,7 @@ RUN --mount=from=bin-folder,target=/build <<EOT
8989
docker-credential-secretservice version
9090
case "$PKG_RELEASE" in
9191
# FIXME: skip pass credential helper smoke test for some distros
92-
centos7|centos9|oraclelinux9) ;;
92+
centos9|oraclelinux9) ;;
9393
*) docker-credential-pass version ;;
9494
esac
9595
EOT

pkg/docker-cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends apt-utils bash
9696
RUN <<EOT
9797
set -e
9898
case "$PKG_RELEASE" in
99-
ubuntu2004|ubuntu2204|ubuntu2304|ubuntu2310)
99+
ubuntu2004|ubuntu2204)
100100
if [ "$(dpkg-divert --truename /usr/bin/man)" = "/usr/bin/man.REAL" ]; then
101101
rm -f /usr/bin/man
102102
dpkg-divert --quiet --remove --rename /usr/bin/man

0 commit comments

Comments
 (0)