-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add package for AlmaLinux EL compatible
Should be compatible with CentOS and RHEL Remove dependency for libcgroup, on .el9
- Loading branch information
1 parent
6cea4d4
commit 5181390
Showing
5 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ARG GO_IMAGE | ||
ARG DISTRO=almalinux | ||
ARG SUITE=8 | ||
ARG BUILD_IMAGE=${DISTRO}:${SUITE} | ||
|
||
FROM ${GO_IMAGE} AS golang | ||
|
||
FROM ${BUILD_IMAGE} | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO ${DISTRO} | ||
ENV SUITE ${SUITE} | ||
ENV GOPROXY=direct | ||
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 yum install -y rpm-build rpmlint | ||
COPY SPECS /root/rpmbuild/SPECS | ||
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec | ||
COPY --from=golang /usr/local/go /usr/local/go/ | ||
WORKDIR /root/rpmbuild | ||
ENTRYPOINT ["/bin/rpmbuild"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ARG GO_IMAGE | ||
ARG DISTRO=almalinux | ||
ARG SUITE=9 | ||
ARG BUILD_IMAGE=${DISTRO}:${SUITE} | ||
|
||
FROM ${GO_IMAGE} AS golang | ||
|
||
FROM ${BUILD_IMAGE} | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO ${DISTRO} | ||
ENV SUITE ${SUITE} | ||
ENV GOPROXY=direct | ||
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 yum install -y rpm-build rpmlint | ||
COPY SPECS /root/rpmbuild/SPECS | ||
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec | ||
COPY --from=golang /usr/local/go /usr/local/go/ | ||
WORKDIR /root/rpmbuild | ||
ENTRYPOINT ["/bin/rpmbuild"] |