The nugulinux/buildenv docker image contains a sbuild.sh
script that makes it easier the build. The script is a simple sbuild
wrapper that automatically puts --chroot
, --host
and -j{n}
options for the image.
$ git clone {url}/myrepo
$ docker run -t --rm --privileged -v $PWD:$PWD -w $PWD/myrepo \
-v /var/lib/schroot/chroots nugulinux/buildenv:focal_x64 sbuild.sh
$ ls
myrepo/
myrepo_amd64.deb
You can use the parameters used in the sbuild
command in sbuild.sh
as well.
$ git clone {url}/myrepo
$ docker run -t --rm --privileged -v $PWD:$PWD -w $PWD/myrepo \
-v /var/lib/schroot/chroots nugulinux/buildenv:focal_x64 \
sbuild.sh --extra-repository="deb [trusted=yes] http://ppa.launchpad.net/nugulinux/sdk/ubuntu focal main"
$ ls
myrepo/
myrepo_amd64.deb
The nugulinux/buildenv already has preconfigured images for arm64 and armhf. So simply specify the desired target in the tag of the docker image.
$ git clone {url}/myrepo
$ docker run -t --rm --privileged -v $PWD:$PWD -w $PWD/myrepo \
-v /var/lib/schroot/chroots nugulinux/buildenv:bionic_armhf sbuild.sh
$ ls
myrepo/
myrepo_amd64.deb
You can create your own sbuild image using mk-sbuild
tool and base image.
- Branch: base
- Docker image:
nugulinux/buildenv
Pre-configured images for sbuild.
- Branch: rootfs
- Docker images
nugulinux/buildenv:xenial_x64
nugulinux/buildenv:xenial_arm64
nugulinux/buildenv:xenial_armhf
nugulinux/buildenv:bionic_x64
nugulinux/buildenv:bionic_arm64
nugulinux/buildenv:bionic_armhf
nugulinux/buildenv:focal_x64
nugulinux/buildenv:focal_arm64
nugulinux/buildenv:focal_armhf
nugulinux/buildenv:jammy_x64
nugulinux/buildenv:jammy_arm64
nugulinux/buildenv:jammy_armhf
nugulinux/buildenv:noble_x64
nugulinux/buildenv:noble_arm64
nugulinux/buildenv:noble_armhf