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

Commit 2b4e938

Browse files
authored
Merge pull request #301 from seemethere/f30
[master] [TAR-480] Add Fedora 30, make fedora builds more generic
2 parents 3d170fd + ddee637 commit 2b4e938

File tree

2 files changed

+26
-19
lines changed

2 files changed

+26
-19
lines changed

rpm/Makefile

+3-19
Original file line numberDiff line numberDiff line change
@@ -68,25 +68,9 @@ fedora: fedora-28 fedora-27 fedora-26 ## build all fedora rpm packages
6868
.PHONY: centos
6969
centos: centos-7 ## build all centos rpm packages
7070

71-
.PHONY: fedora-29
72-
fedora-29: ## build fedora-29 rpm packages
73-
fedora-29: $(SOURCES)
74-
$(CHOWN) -R root:root rpmbuild
75-
$(BUILD)
76-
$(RUN)
77-
$(CHOWN) -R $(shell id -u):$(shell id -g) rpmbuild
78-
79-
.PHONY: fedora-28
80-
fedora-28: ## build fedora-28 rpm packages
81-
fedora-28: $(SOURCES)
82-
$(CHOWN) -R root:root rpmbuild
83-
$(BUILD)
84-
$(RUN)
85-
$(CHOWN) -R $(shell id -u):$(shell id -g) rpmbuild
86-
87-
.PHONY: fedora-27
88-
fedora-27: ## build fedora-27 rpm packages
89-
fedora-27: $(SOURCES)
71+
.PHONY: fedora-%
72+
fedora-%: ## build fedora rpm packages
73+
fedora-%: $(SOURCES)
9074
$(CHOWN) -R root:root rpmbuild
9175
$(BUILD)
9276
$(RUN)

rpm/fedora-30/Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ARG GO_IMAGE
2+
ARG ENGINE_IMAGE
3+
ARG BUILD_IMAGE=fedora:30
4+
FROM ${GO_IMAGE} as golang
5+
FROM ${ENGINE_IMAGE} as engine
6+
7+
FROM ${BUILD_IMAGE}
8+
ENV DISTRO fedora
9+
ENV SUITE 30
10+
ENV GOPATH /go
11+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
12+
ENV AUTO_GOPATH 1
13+
ENV DOCKER_BUILDTAGS pkcs11 seccomp selinux
14+
ENV RUNC_BUILDTAGS seccomp selinux
15+
RUN dnf install -y rpm-build rpmlint dnf-plugins-core
16+
COPY SPECS /root/rpmbuild/SPECS
17+
RUN dnf builddep -y /root/rpmbuild/SPECS/*.spec
18+
COPY --from=golang /usr/local/go /usr/local/go/
19+
COPY --from=engine /bin/dockerd /sources/
20+
COPY --from=engine /bin/docker-proxy /sources/
21+
COPY --from=engine /bin/docker-init /sources/
22+
WORKDIR /root/rpmbuild
23+
ENTRYPOINT ["/bin/rpmbuild"]

0 commit comments

Comments
 (0)