Skip to content

Commit

Permalink
Merge pull request #344 from zelahi/add-fedora-31
Browse files Browse the repository at this point in the history
[TAR-849] ADDED Dockerfile for fedora-31
  • Loading branch information
seemethere authored Jun 25, 2019
2 parents 3b7b23d + 161876d commit 1583b53
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ clean: ## remove build artifacts
rpm: fedora centos ## build all rpm packages

.PHONY: fedora
fedora: fedora-30 fedora-29 fedora-28 ## build all fedora rpm packages
fedora: fedora-31 fedora-30 fedora-29 fedora-28 ## build all fedora rpm packages

.PHONY: centos
centos: centos-7 ## build all centos rpm packages
Expand Down
18 changes: 18 additions & 0 deletions rpm/fedora-31/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ARG GO_IMAGE
ARG BUILD_IMAGE=fedora:31
FROM ${GO_IMAGE} as golang

FROM ${BUILD_IMAGE}
ENV DISTRO fedora
ENV SUITE 31
ENV GOPATH /go
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
ENV AUTO_GOPATH 1
ENV DOCKER_BUILDTAGS seccomp selinux
ENV RUNC_BUILDTAGS seccomp selinux
RUN dnf install -y rpm-build rpmlint dnf-plugins-core
COPY SPECS /root/rpmbuild/SPECS
RUN dnf builddep -y /root/rpmbuild/SPECS/*.spec
COPY --from=golang /usr/local/go /usr/local/go
WORKDIR /root/rpmbuild
ENTRYPOINT ["/bin/rpmbuild"]

0 comments on commit 1583b53

Please sign in to comment.