Skip to content
This repository was archived by the owner on Oct 13, 2023. It is now read-only.

Commit d9d139d

Browse files
Arko DasguptathaJeztah
authored andcommitted
Add Support for Centos-8
Signed-off-by: Arko Dasgupta <arko.dasgupta@docker.com> (cherry picked from commit ec3b30b) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: 23708e730164b6f5787becddf6edd88ae77e08e4 Component: packaging
1 parent d3673fb commit d9d139d

2 files changed

Lines changed: 28 additions & 1 deletion

File tree

components/packaging/rpm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ SOURCE_FILES=engine.tgz cli.tgz docker.service docker.socket plugin-installers.t
4040
SOURCES=$(addprefix rpmbuild/SOURCES/, $(SOURCE_FILES))
4141

4242
FEDORA_RELEASES := fedora-31 fedora-30 fedora-29
43-
CENTOS_RELEASES := centos-7
43+
CENTOS_RELEASES := centos-7 centos-8
4444
DISTROS := $(FEDORA_RELEASES) $(CENTOS_RELEASES)
4545

4646
.PHONY: help
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
ARG GO_IMAGE
2+
ARG DISTRO=centos
3+
ARG SUITE=8
4+
ARG BUILD_IMAGE=${DISTRO}:${SUITE}
5+
6+
FROM ${GO_IMAGE} AS golang
7+
8+
FROM ${BUILD_IMAGE}
9+
ENV GOPROXY=direct
10+
ENV GO111MODULE=off
11+
ENV GOPATH=/go
12+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
13+
ENV AUTO_GOPATH 1
14+
ENV DOCKER_BUILDTAGS seccomp selinux
15+
ENV RUNC_BUILDTAGS seccomp selinux
16+
ARG DISTRO
17+
ARG SUITE
18+
ENV DISTRO=${DISTRO}
19+
ENV SUITE=${SUITE}
20+
RUN yum install -y rpm-build rpmlint
21+
COPY SPECS /root/rpmbuild/SPECS
22+
# Overwrite repo that was failing on aarch64
23+
RUN sed -i 's/altarch/centos/g' /etc/yum.repos.d/CentOS-Sources.repo
24+
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec
25+
COPY --from=golang /usr/local/go /usr/local/go
26+
WORKDIR /root/rpmbuild
27+
ENTRYPOINT ["/bin/rpmbuild"]

0 commit comments

Comments
 (0)