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

Commit ee45afb

Browse files
authored
[19.03 backport][TAR-849] ADDED Dockerfile for fedora-31 (#362)
[19.03 backport][TAR-849] ADDED Dockerfile for fedora-31 Upstream-commit: e27d681dae487ae32bd3a608cdcdd6384b9e864a Component: packaging
2 parents 25e9a69 + 6a0a251 commit ee45afb

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

components/packaging/rpm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ clean: ## remove build artifacts
6161
rpm: fedora centos ## build all rpm packages
6262

6363
.PHONY: fedora
64-
fedora: fedora-30 fedora-29 fedora-28 ## build all fedora rpm packages
64+
fedora: fedora-31 fedora-30 fedora-29 fedora-28 ## build all fedora rpm packages
6565

6666
.PHONY: centos
6767
centos: centos-7 ## build all centos rpm packages
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ARG GO_IMAGE
2+
ARG BUILD_IMAGE=fedora:31
3+
FROM ${GO_IMAGE} as golang
4+
5+
FROM ${BUILD_IMAGE}
6+
ENV DISTRO fedora
7+
ENV SUITE 31
8+
ENV GOPATH /go
9+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
10+
ENV AUTO_GOPATH 1
11+
ENV DOCKER_BUILDTAGS seccomp selinux
12+
ENV RUNC_BUILDTAGS seccomp selinux
13+
RUN dnf install -y rpm-build rpmlint dnf-plugins-core
14+
COPY SPECS /root/rpmbuild/SPECS
15+
RUN dnf builddep -y /root/rpmbuild/SPECS/*.spec
16+
COPY --from=golang /usr/local/go /usr/local/go
17+
WORKDIR /root/rpmbuild
18+
ENTRYPOINT ["/bin/rpmbuild"]

0 commit comments

Comments
 (0)