File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ SOURCE_FILES=app.tgz cri-docker.service cri-docker.socket
3737SOURCES =$(addprefix sources/, $(SOURCE_FILES ) )
3838
3939DEBIAN_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
4242RASPBIAN_VERSIONS := raspbian-bullseye
4343DISTROS := $(DEBIAN_VERSIONS ) $(UBUNTU_VERSIONS ) $(RASPBIAN_VERSIONS )
4444
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11ARG GO_IMAGE
22ARG DISTRO=ubuntu
3- ARG SUITE=eoan
3+ ARG SUITE=noble
44ARG BUILD_IMAGE=${DISTRO}:${SUITE}
55
66FROM ${GO_IMAGE} AS golang
77
88FROM ${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
1611RUN apt-get update && apt-get install -y curl devscripts equivs git
1712
1813ENV GOPROXY=direct
Original file line number Diff line number Diff line change @@ -42,8 +42,9 @@ RUN?=$(RPMBUILD) rpmbuild-$@/$(ARCH) $(RPMBUILD_FLAGS)
4242SOURCE_FILES =app.tgz cri-docker.service cri-docker.socket LICENSE
4343SOURCES =$(addprefix rpmbuild/SOURCES/, $(SOURCE_FILES ) )
4444
45- FEDORA_RELEASES := fedora-36 fedora-35
45+ FEDORA_RELEASES := fedora-40 fedora-41
4646CENTOS_RELEASES :=
47+ ALMALINUX_RELEASES := almalinux-8 almalinux-9
4748
4849.PHONY : help
4950help : # # 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
6162fedora : $(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) ) "
Original file line number Diff line number Diff line change @@ -18,4 +18,4 @@ make fedora
1818## Specifying a specific distro version
1919``` shell
2020make fedora-25
21- ```
21+ ```
Original file line number Diff line number Diff line change @@ -25,8 +25,11 @@ Requires: (iptables or nftables)
2525Requires: 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.
2830Requires: libcgroup
2931%endif
32+ %endif
3033Requires: containerd.io >= 1.2.2-3
3134Requires: tar
3235Requires: 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
6467export CRI_DOCKER_GITCOMMIT =%{_gitcommit }
6568mkdir -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
6871GOPROXY=" https://proxy.golang.org" GO111MODULE=on go build -ldflags " %{_buildldflags}"
6972
7073%check
Original file line number Diff line number Diff line change 11ARG GO_IMAGE
2- ARG DISTRO=centos
2+ ARG DISTRO=almalinux
33ARG SUITE=8
44ARG BUILD_IMAGE=${DISTRO}:${SUITE}
55
66FROM ${GO_IMAGE} AS golang
77
88FROM ${BUILD_IMAGE}
9+ ARG DISTRO
10+ ARG SUITE
11+ ENV DISTRO ${DISTRO}
12+ ENV SUITE ${SUITE}
913ENV GOPROXY=direct
1014ENV GOPATH=/go
1115ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1216ENV AUTO_GOPATH 1
1317ENV DOCKER_BUILDTAGS seccomp selinux
1418ENV RUNC_BUILDTAGS seccomp selinux
15- ARG DISTRO
16- ARG SUITE
17- ENV DISTRO=${DISTRO}
18- ENV SUITE=${SUITE}
1919RUN yum install -y rpm-build rpmlint yum-utils
20+ # Enable PowerTools repository to get device-mapper-devel and glibc-static.
2021RUN dnf config-manager --set-enabled powertools
2122COPY SPECS /root/rpmbuild/SPECS
22- # Overwrite repo that was failing on aarch64
2323RUN 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/
2525WORKDIR /root/rpmbuild
2626ENTRYPOINT ["/bin/rpmbuild" ]
Original file line number Diff line number Diff line change 11ARG GO_IMAGE
2- ARG DISTRO=aepifanov/centos7.vault
3- ARG SUITE=latest
2+ ARG DISTRO=almalinux
3+ ARG SUITE=9
44ARG BUILD_IMAGE=${DISTRO}:${SUITE}
55
66FROM ${GO_IMAGE} AS golang
77
88FROM ${BUILD_IMAGE}
9+ ARG DISTRO
10+ ARG SUITE
11+ ENV DISTRO=${DISTRO}
12+ ENV SUITE=${SUITE}
913ENV GOPROXY=direct
1014ENV GOPATH=/go
1115ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
1216ENV AUTO_GOPATH 1
1317ENV DOCKER_BUILDTAGS seccomp selinux
1418ENV RUNC_BUILDTAGS seccomp selinux
15- ARG DISTRO
16- ARG SUITE
17- ENV DISTRO=${DISTRO}
18- ENV SUITE=${SUITE}
1919RUN 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
2122COPY SPECS /root/rpmbuild/SPECS
22- # Overwrite repo that was failing on aarch64
2323RUN 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/
2525WORKDIR /root/rpmbuild
2626ENTRYPOINT ["/bin/rpmbuild" ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments