Skip to content

Commit 0e1643a

Browse files
committed
Remove end-of-life packaging distributions
1 parent fb999d2 commit 0e1643a

14 files changed

Lines changed: 38 additions & 188 deletions

File tree

packaging/deb/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ SOURCE_FILES=app.tgz cri-docker.service cri-docker.socket
3737
SOURCES=$(addprefix sources/, $(SOURCE_FILES))
3838

3939
DEBIAN_VERSIONS := debian-bullseye debian-bookworm
40-
#UBUNTU_VERSIONS := ubuntu-xenial ubuntu-bionic ubuntu-cosmic ubuntu-disco ubuntu-eoan
41-
UBUNTU_VERSIONS := ubuntu-bionic ubuntu-focal ubuntu-jammy
40+
#UBUNTU_VERSIONS := ubuntu-xenial ubuntu-bionic
41+
UBUNTU_VERSIONS := ubuntu-focal ubuntu-jammy ubuntu-noble
4242
RASPBIAN_VERSIONS := raspbian-bullseye
4343
DISTROS := $(DEBIAN_VERSIONS) $(UBUNTU_VERSIONS) $(RASPBIAN_VERSIONS)
4444

packaging/deb/ubuntu-cosmic/Dockerfile

Lines changed: 0 additions & 39 deletions
This file was deleted.

packaging/deb/ubuntu-disco/Dockerfile

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,13 @@
11
ARG GO_IMAGE
22
ARG DISTRO=ubuntu
3-
ARG SUITE=eoan
3+
ARG SUITE=noble
44
ARG BUILD_IMAGE=${DISTRO}:${SUITE}
55

66
FROM ${GO_IMAGE} AS golang
77

88
FROM ${BUILD_IMAGE}
99

10-
# Remove diverted man binary to prevent man-pages being replaced with "minimized" message. See docker/for-linux#639
11-
RUN if [ "$(dpkg-divert --truename /usr/bin/man)" = "/usr/bin/man.REAL" ]; then \
12-
rm -f /usr/bin/man; \
13-
dpkg-divert --quiet --remove --rename /usr/bin/man; \
14-
fi
15-
10+
ARG DEBIAN_FRONTEND=noninteractive
1611
RUN apt-get update && apt-get install -y curl devscripts equivs git
1712

1813
ENV GOPROXY=direct

packaging/rpm/Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ RUN?=$(RPMBUILD) rpmbuild-$@/$(ARCH) $(RPMBUILD_FLAGS)
4242
SOURCE_FILES=app.tgz cri-docker.service cri-docker.socket LICENSE
4343
SOURCES=$(addprefix rpmbuild/SOURCES/, $(SOURCE_FILES))
4444

45-
FEDORA_RELEASES := fedora-36 fedora-35
45+
FEDORA_RELEASES := fedora-40 fedora-41
4646
CENTOS_RELEASES :=
47+
ALMALINUX_RELEASES := almalinux-8 almalinux-9
4748

4849
.PHONY: help
4950
help: ## show make targets
@@ -55,16 +56,19 @@ clean: ## remove build artifacts
5556
$(RM) -r rpmbuild/
5657

5758
.PHONY: rpm
58-
rpm: fedora centos ## build all rpm packages
59+
rpm: fedora centos almalinux ## build all rpm packages
5960

6061
.PHONY: fedora
6162
fedora: $(FEDORA_RELEASES) ## build all fedora rpm packages
6263

6364
.PHONY: centos
64-
centos: $(CENTOS_RELEASES) ## build all centos rpm packages
65+
centos: $(CENTOS_RELEASES) ## build all centos stream rpm packages
6566

66-
.PHONY: $(FEDORA_RELEASES) $(CENTOS_RELEASES)
67-
$(FEDORA_RELEASES) $(CENTOS_RELEASES): $(SOURCES)
67+
.PHONY: almalinux
68+
almalinux: $(ALMALINUX_RELEASES) ## build all almalinux rpm packages
69+
70+
.PHONY: $(FEDORA_RELEASES) $(CENTOS_RELEASES) $(ALMALINUX_RELEASES)
71+
$(FEDORA_RELEASES) $(CENTOS_RELEASES) $(ALMALINUX_RELEASES): $(SOURCES)
6872
@echo "${APP_DIR}"
6973
@echo "${VERSION}"
7074
@echo "$(shell ./gen-rpm-ver $(APP_DIR) $(VERSION))"

packaging/rpm/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ make fedora
1818
## Specifying a specific distro version
1919
```shell
2020
make fedora-25
21-
```
21+
```

packaging/rpm/SPECS/cri-dockerd.spec

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ Requires: (iptables or nftables)
2525
Requires: iptables
2626
%endif
2727
%if %{undefined suse_version}
28+
%if %{undefined rhel} || 0%{?rhel} < 9
29+
# Libcgroup is no longer available in RHEL/CentOS >= 9 distros.
2830
Requires: libcgroup
2931
%endif
32+
%endif
3033
Requires: containerd.io >= 1.2.2-3
3134
Requires: tar
3235
Requires: xz
@@ -60,11 +63,11 @@ cri-dockerd is a lightweight implementation of the CRI specification which talks
6063
%setup -q -c -n src -a 0
6164

6265
%build
63-
cp %{_topdir}/SOURCES/LICENSE /root/rpmbuild/BUILD/src/LICENSE
66+
cp %{_topdir}/SOURCES/LICENSE ./LICENSE
6467
export CRI_DOCKER_GITCOMMIT=%{_gitcommit}
6568
mkdir -p /go/src/github.com/Mirantis
66-
ln -s /root/rpmbuild/BUILD/src/app /go/src/github.com/Mirantis/cri-dockerd
67-
cd /root/rpmbuild/BUILD/src/app
69+
ln -s $(pwd)/app /go/src/github.com/Mirantis/cri-dockerd
70+
cd app
6871
GOPROXY="https://proxy.golang.org" GO111MODULE=on go build -ldflags "%{_buildldflags}"
6972

7073
%check
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
ARG GO_IMAGE
2-
ARG DISTRO=centos
2+
ARG DISTRO=almalinux
33
ARG SUITE=8
44
ARG BUILD_IMAGE=${DISTRO}:${SUITE}
55

66
FROM ${GO_IMAGE} AS golang
77

88
FROM ${BUILD_IMAGE}
9+
ARG DISTRO
10+
ARG SUITE
11+
ENV DISTRO ${DISTRO}
12+
ENV SUITE ${SUITE}
913
ENV GOPROXY=direct
1014
ENV GOPATH=/go
1115
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1216
ENV AUTO_GOPATH 1
1317
ENV DOCKER_BUILDTAGS seccomp selinux
1418
ENV RUNC_BUILDTAGS seccomp selinux
15-
ARG DISTRO
16-
ARG SUITE
17-
ENV DISTRO=${DISTRO}
18-
ENV SUITE=${SUITE}
1919
RUN yum install -y rpm-build rpmlint yum-utils
20+
# Enable PowerTools repository to get device-mapper-devel and glibc-static.
2021
RUN dnf config-manager --set-enabled powertools
2122
COPY SPECS /root/rpmbuild/SPECS
22-
# Overwrite repo that was failing on aarch64
2323
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec
24-
COPY --from=golang /usr/local/go /usr/local/go
24+
COPY --from=golang /usr/local/go /usr/local/go/
2525
WORKDIR /root/rpmbuild
2626
ENTRYPOINT ["/bin/rpmbuild"]
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
ARG GO_IMAGE
2-
ARG DISTRO=aepifanov/centos7.vault
3-
ARG SUITE=latest
2+
ARG DISTRO=almalinux
3+
ARG SUITE=9
44
ARG BUILD_IMAGE=${DISTRO}:${SUITE}
55

66
FROM ${GO_IMAGE} AS golang
77

88
FROM ${BUILD_IMAGE}
9+
ARG DISTRO
10+
ARG SUITE
11+
ENV DISTRO=${DISTRO}
12+
ENV SUITE=${SUITE}
913
ENV GOPROXY=direct
1014
ENV GOPATH=/go
1115
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1216
ENV AUTO_GOPATH 1
1317
ENV DOCKER_BUILDTAGS seccomp selinux
1418
ENV RUNC_BUILDTAGS seccomp selinux
15-
ARG DISTRO
16-
ARG SUITE
17-
ENV DISTRO=${DISTRO}
18-
ENV SUITE=${SUITE}
1919
RUN yum install -y rpm-build rpmlint yum-utils
20-
RUN dnf config-manager --set-enabled powertools
20+
# Enable CodeReady Builder repository to get device-mapper-devel and glibc-static.
21+
RUN dnf config-manager --set-enabled crb
2122
COPY SPECS /root/rpmbuild/SPECS
22-
# Overwrite repo that was failing on aarch64
2323
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec
24-
COPY --from=golang /usr/local/go /usr/local/go
24+
COPY --from=golang /usr/local/go /usr/local/go/
2525
WORKDIR /root/rpmbuild
2626
ENTRYPOINT ["/bin/rpmbuild"]

packaging/rpm/centos-7/Dockerfile

Lines changed: 0 additions & 26 deletions
This file was deleted.

0 commit comments

Comments
 (0)