This repository was archived by the owner on Oct 13, 2023. It is now read-only.
File tree 2 files changed +26
-19
lines changed
2 files changed +26
-19
lines changed Original file line number Diff line number Diff line change @@ -68,25 +68,9 @@ fedora: fedora-28 fedora-27 fedora-26 ## build all fedora rpm packages
68
68
.PHONY : centos
69
69
centos : centos-7 # # build all centos rpm packages
70
70
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 )
90
74
$(CHOWN ) -R root:root rpmbuild
91
75
$(BUILD )
92
76
$(RUN )
Original file line number Diff line number Diff line change
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" ]
You can’t perform that action at this time.
0 commit comments