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

Commit ff404f9

Browse files
ndanylukthaJeztah
authored andcommitted
add raspbian buster
(cherry picked from commit 2cbd93c) Signed-off-by: Sebastiaan van Stijn <github@gone.nl> Upstream-commit: a2d120da17260f16a2977a33f44fd53b0ae39de0 Component: packaging
1 parent eb2652d commit ff404f9

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

components/packaging/deb/Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,13 @@ raspbian-stretch: $(SOURCES)
9494
$(RUN)
9595
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
9696

97+
.PHONY: raspbian-buster
98+
raspbian-buster: ## build raspbian buster deb packages
99+
raspbian-buster: $(SOURCES)
100+
$(BUILD)
101+
$(RUN)
102+
$(CHOWN) -R $(shell id -u):$(shell id -g) debbuild/$@
103+
97104
sources/engine.tgz:
98105
mkdir -p $(@D)
99106
docker run --rm -i -w /v \
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
ARG GO_IMAGE
2+
ARG BUILD_IMAGE=resin/rpi-raspbian:stretch
3+
FROM ${GO_IMAGE} as golang
4+
5+
FROM ${BUILD_IMAGE}
6+
7+
RUN apt-get update && apt-get install -y curl devscripts equivs git
8+
9+
ARG GO_VERSION
10+
ENV GOPATH /go
11+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
12+
ENV DOCKER_BUILDTAGS apparmor seccomp selinux
13+
ENV RUNC_BUILDTAGS apparmor seccomp selinux
14+
15+
ARG COMMON_FILES
16+
COPY ${COMMON_FILES} /root/build-deb/debian
17+
RUN mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control
18+
19+
COPY sources/ /sources
20+
21+
ENV DISTRO raspbian
22+
ENV SUITE buster
23+
24+
COPY --from=golang /usr/local/go /usr/local/go
25+
26+
WORKDIR /root/build-deb
27+
COPY build-deb /root/build-deb/build-deb
28+
29+
ENTRYPOINT ["/root/build-deb/build-deb"]

0 commit comments

Comments
 (0)