Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #645 from Romain-Geissler-1A/ubuntu22-20.10
[20.10 backport] Add Ubuntu 22.04
- Loading branch information
Showing
3 changed files
with
44 additions
and
1 deletion.
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,42 @@ | ||
ARG GO_IMAGE | ||
ARG DISTRO=ubuntu | ||
ARG SUITE=jammy | ||
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 | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y curl devscripts equivs git | ||
|
||
ENV GOPROXY=direct | ||
ENV GO111MODULE=off | ||
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 apt-get update \ | ||
&& 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"] |