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

Commit c3d8c34

Browse files
Merge pull request #413 from arkodg/19.03
Merged with https://github.com/seemethere/unir Upstream-commit: 2fe8eac7f9e558eba4c457b4b7b8cc8060ef0936 Component: packaging
2 parents 0c8d815 + ec67290 commit c3d8c34

2 files changed

Lines changed: 37 additions & 1 deletion

File tree

components/packaging/deb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ engine-$(ARCH).tar:
5757
deb: ubuntu debian raspbian ## build all deb packages
5858

5959
.PHONY: ubuntu
60-
ubuntu: ubuntu-bionic ubuntu-xenial ## build all ubuntu deb packages
60+
ubuntu: ubuntu-bionic ubuntu-xenial ubuntu-disco ubuntu-eoan ## build all ubuntu deb packages
6161

6262
.PHONY: debian
6363
debian: debian-stretch debian-buster ## build all debian deb packages
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
ARG GO_IMAGE
2+
ARG BUILD_IMAGE=ubuntu:eoan
3+
FROM ${GO_IMAGE} as golang
4+
5+
FROM ${BUILD_IMAGE}
6+
7+
# Remove diverted man binary to prevent man-pages being replaced with "minimized" message. See docker/for-linux#639
8+
RUN if [ "$(dpkg-divert --truename /usr/bin/man)" = "/usr/bin/man.REAL" ]; then \
9+
rm -f /usr/bin/man; \
10+
dpkg-divert --quiet --remove --rename /usr/bin/man; \
11+
fi
12+
13+
RUN apt-get update && apt-get install -y curl devscripts equivs git
14+
15+
ENV GOPROXY=direct
16+
ENV GO111MODULE=off
17+
ENV GOPATH /go
18+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
19+
ENV DOCKER_BUILDTAGS apparmor seccomp selinux
20+
ENV RUNC_BUILDTAGS apparmor seccomp selinux
21+
22+
ARG COMMON_FILES
23+
COPY ${COMMON_FILES} /root/build-deb/debian
24+
RUN mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control
25+
26+
COPY sources/ /sources
27+
28+
ENV DISTRO ubuntu
29+
ENV SUITE eoan
30+
31+
COPY --from=golang /usr/local/go /usr/local/go
32+
33+
WORKDIR /root/build-deb
34+
COPY build-deb /root/build-deb/build-deb
35+
36+
ENTRYPOINT ["/root/build-deb/build-deb"]

0 commit comments

Comments
 (0)