Skip to content

Commit 1c1cb91

Browse files
authored
Merge pull request #522 from thaJeztah/raspbian_bullseye
deb: add support for building raspbian 11 "Bullseye"
2 parents 7889cc4 + 2185bf8 commit 1c1cb91

File tree

3 files changed

+50
-1
lines changed

3 files changed

+50
-1
lines changed

Jenkinsfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ test_steps = [
1616
}
1717
}
1818
},
19+
'raspbian': { ->
20+
stage('Raspbian') {
21+
wrappedNode(label: 'ubuntu && armhf', cleanWorkspace: true) {
22+
try {
23+
checkout scm
24+
sh "make REF=$branch checkout"
25+
sh "make -C deb raspbian-buster raspbian-bullseye"
26+
} finally {
27+
sh "make clean"
28+
}
29+
}
30+
}
31+
},
1932
'rpm': { ->
2033
stage('Centos 7 and 8 RPM Packages') {
2134
wrappedNode(label: 'ubuntu && x86_64', cleanWorkspace: true) {

deb/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RUN?=docker run --rm \
3838

3939
DEBIAN_VERSIONS ?= debian-buster debian-bullseye
4040
UBUNTU_VERSIONS ?= ubuntu-xenial ubuntu-bionic ubuntu-focal ubuntu-groovy
41-
RASPBIAN_VERSIONS ?= raspbian-buster
41+
RASPBIAN_VERSIONS ?= raspbian-buster raspbian-bullseye
4242
DISTROS := $(DEBIAN_VERSIONS) $(UBUNTU_VERSIONS) $(RASPBIAN_VERSIONS)
4343

4444
.PHONY: help

deb/raspbian-bullseye/Dockerfile

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
ARG GO_IMAGE
2+
ARG DISTRO=raspbian
3+
ARG SUITE=bullseye
4+
ARG BUILD_IMAGE=balenalib/rpi-raspbian:${SUITE}
5+
6+
FROM ${GO_IMAGE} AS golang
7+
8+
FROM ${BUILD_IMAGE}
9+
10+
ARG DEBIAN_FRONTEND=noninteractive
11+
RUN apt-get update && apt-get install -y curl devscripts equivs git
12+
13+
ENV GOPROXY=direct
14+
ENV GO111MODULE=off
15+
ENV GOPATH /go
16+
ENV PATH $PATH:/usr/local/go/bin:$GOPATH/bin
17+
ENV DOCKER_BUILDTAGS apparmor seccomp selinux
18+
ENV RUNC_BUILDTAGS apparmor seccomp selinux
19+
20+
ARG COMMON_FILES
21+
COPY ${COMMON_FILES} /root/build-deb/debian
22+
RUN apt-get update \
23+
&& mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends -y" -i /root/build-deb/debian/control
24+
25+
COPY sources/ /sources
26+
ARG DISTRO
27+
ARG SUITE
28+
ENV DISTRO=${DISTRO}
29+
ENV SUITE=${SUITE}
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)