-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Packaging distributions backport
release/0.3
(#423)"
This reverts commit e0b1257.
- Loading branch information
Showing
14 changed files
with
195 additions
and
42 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
ARG GO_IMAGE | ||
ARG DISTRO=ubuntu | ||
ARG SUITE=cosmic | ||
ARG BUILD_IMAGE=${DISTRO}:${SUITE} | ||
|
||
FROM ${GO_IMAGE} AS golang | ||
|
||
FROM ${BUILD_IMAGE} | ||
|
||
# Remove diverted man binary to prevent man-pages being replaced with "minimized" message. See docker/for-linux#639 | ||
RUN if [ "$(dpkg-divert --truename /usr/bin/man)" = "/usr/bin/man.REAL" ]; then \ | ||
rm -f /usr/bin/man; \ | ||
dpkg-divert --quiet --remove --rename /usr/bin/man; \ | ||
fi | ||
|
||
RUN apt-get update && apt-get install -y curl devscripts equivs git | ||
|
||
ENV GOPROXY=direct | ||
ENV GOPATH /go | ||
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin | ||
ENV DOCKER_BUILDTAGS apparmor seccomp selinux | ||
ENV RUNC_BUILDTAGS apparmor seccomp selinux | ||
|
||
ARG COMMON_FILES | ||
COPY ${COMMON_FILES} /root/build-deb/debian | ||
RUN mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control | ||
|
||
COPY sources/ /sources | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO=${DISTRO} | ||
ENV SUITE=${SUITE} | ||
|
||
COPY --from=golang /usr/local/go /usr/local/go | ||
|
||
WORKDIR /root/build-deb | ||
COPY build-deb /root/build-deb/build-deb | ||
|
||
ENTRYPOINT ["/root/build-deb/build-deb"] |
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,39 @@ | ||
ARG GO_IMAGE | ||
ARG DISTRO=ubuntu | ||
ARG SUITE=disco | ||
ARG BUILD_IMAGE=${DISTRO}:${SUITE} | ||
|
||
FROM ${GO_IMAGE} AS golang | ||
|
||
FROM ${BUILD_IMAGE} | ||
|
||
# Remove diverted man binary to prevent man-pages being replaced with "minimized" message. See docker/for-linux#639 | ||
RUN if [ "$(dpkg-divert --truename /usr/bin/man)" = "/usr/bin/man.REAL" ]; then \ | ||
rm -f /usr/bin/man; \ | ||
dpkg-divert --quiet --remove --rename /usr/bin/man; \ | ||
fi | ||
|
||
RUN apt-get update && apt-get install -y curl devscripts equivs git | ||
|
||
ENV GOPROXY=direct | ||
ENV GOPATH /go | ||
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin | ||
ENV DOCKER_BUILDTAGS apparmor seccomp selinux | ||
ENV RUNC_BUILDTAGS apparmor seccomp selinux | ||
|
||
ARG COMMON_FILES | ||
COPY ${COMMON_FILES} /root/build-deb/debian | ||
RUN mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control | ||
|
||
COPY sources/ /sources | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO=${DISTRO} | ||
ENV SUITE=${SUITE} | ||
|
||
COPY --from=golang /usr/local/go /usr/local/go | ||
|
||
WORKDIR /root/build-deb | ||
COPY build-deb /root/build-deb/build-deb | ||
|
||
ENTRYPOINT ["/root/build-deb/build-deb"] |
9 changes: 7 additions & 2 deletions
9
packaging/deb/ubuntu-noble/Dockerfile → packaging/deb/ubuntu-eoan/Dockerfile
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
16 changes: 9 additions & 7 deletions
16
packaging/rpm/almalinux-8/Dockerfile → packaging/rpm/centos-7/Dockerfile
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 |
---|---|---|
@@ -1,24 +1,26 @@ | ||
ARG GO_IMAGE | ||
ARG DISTRO=almalinux | ||
ARG SUITE=8 | ||
ARG DISTRO=centos | ||
ARG SUITE=7 | ||
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 | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO=${DISTRO} | ||
ENV SUITE=${SUITE} | ||
RUN yum install -y rpm-build rpmlint | ||
COPY SPECS /root/rpmbuild/SPECS | ||
# Overwrite repo that was failing on aarch64 | ||
RUN sed -i 's/altarch/centos/g' /etc/yum.repos.d/CentOS-Sources.repo | ||
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec | ||
COPY --from=golang /usr/local/go /usr/local/go/ | ||
COPY --from=golang /usr/local/go /usr/local/go | ||
WORKDIR /root/rpmbuild | ||
ENTRYPOINT ["/bin/rpmbuild"] |
18 changes: 10 additions & 8 deletions
18
packaging/rpm/almalinux-9/Dockerfile → packaging/rpm/centos-8/Dockerfile
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 |
---|---|---|
@@ -1,24 +1,26 @@ | ||
ARG GO_IMAGE | ||
ARG DISTRO=almalinux | ||
ARG SUITE=9 | ||
ARG DISTRO=centos | ||
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 | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO=${DISTRO} | ||
ENV SUITE=${SUITE} | ||
RUN yum install -y rpm-build rpmlint yum-utils | ||
RUN dnf config-manager --set-enabled powertools | ||
COPY SPECS /root/rpmbuild/SPECS | ||
# Overwrite repo that was failing on aarch64 | ||
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec | ||
COPY --from=golang /usr/local/go /usr/local/go/ | ||
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,26 @@ | ||
ARG GO_IMAGE | ||
ARG DISTRO=aepifanov/centos7.vault | ||
ARG SUITE=latest | ||
ARG BUILD_IMAGE=${DISTRO}:${SUITE} | ||
|
||
FROM ${GO_IMAGE} AS golang | ||
|
||
FROM ${BUILD_IMAGE} | ||
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 | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO=${DISTRO} | ||
ENV SUITE=${SUITE} | ||
RUN yum install -y rpm-build rpmlint yum-utils | ||
RUN dnf config-manager --set-enabled powertools | ||
COPY SPECS /root/rpmbuild/SPECS | ||
# Overwrite repo that was failing on aarch64 | ||
RUN yum-builddep -y /root/rpmbuild/SPECS/*.spec | ||
COPY --from=golang /usr/local/go /usr/local/go | ||
WORKDIR /root/rpmbuild | ||
ENTRYPOINT ["/bin/rpmbuild"] |
2 changes: 1 addition & 1 deletion
2
packaging/rpm/fedora-41/Dockerfile → packaging/rpm/fedora-33/Dockerfile
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
2 changes: 1 addition & 1 deletion
2
packaging/rpm/fedora-40/Dockerfile → packaging/rpm/fedora-34/Dockerfile
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=fedora | ||
ARG SUITE=35 | ||
ARG BUILD_IMAGE=${DISTRO}:${SUITE} | ||
|
||
FROM ${GO_IMAGE} AS golang | ||
|
||
FROM ${BUILD_IMAGE} | ||
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 | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO=${DISTRO} | ||
ENV SUITE=${SUITE} | ||
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"] |
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=fedora | ||
ARG SUITE=36 | ||
ARG BUILD_IMAGE=${DISTRO}:${SUITE} | ||
|
||
FROM ${GO_IMAGE} AS golang | ||
|
||
FROM ${BUILD_IMAGE} | ||
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 | ||
ARG DISTRO | ||
ARG SUITE | ||
ENV DISTRO=${DISTRO} | ||
ENV SUITE=${SUITE} | ||
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"] |