diff options
Diffstat (limited to 'docker/debian-dev/bootstrap/sbuild')
4 files changed, 32 insertions, 0 deletions
diff --git a/docker/debian-dev/bootstrap/sbuild/setup-sbuild-amd64.bash b/docker/debian-dev/bootstrap/sbuild/setup-sbuild-amd64.bash new file mode 100755 index 0000000..9ee08d1 --- /dev/null +++ b/docker/debian-dev/bootstrap/sbuild/setup-sbuild-amd64.bash @@ -0,0 +1,8 @@ +#! /usr/bin/env bash + +set -e + +SBUILD_ARCH="amd64" +SBUILD_DIST="bullseye" + +sbuild-createchroot --include=eatmydata --command-prefix=eatmydata --arch=${SBUILD_ARCH} ${SBUILD_DIST} /srv/chroot/${SBUILD_DIST}-${SBUILD_ARCH}-sbuild "http://$(/bootstrap/apt-source/get-domain.bash)/debian" diff --git a/docker/debian-dev/bootstrap/sbuild/setup-sbuild-arm64.bash b/docker/debian-dev/bootstrap/sbuild/setup-sbuild-arm64.bash new file mode 100755 index 0000000..5feac2d --- /dev/null +++ b/docker/debian-dev/bootstrap/sbuild/setup-sbuild-arm64.bash @@ -0,0 +1,8 @@ +#! /usr/bin/env bash + +set -e + +SBUILD_ARCH="arm64" +SBUILD_DIST="bullseye" + +sbuild-createchroot --include=eatmydata --command-prefix=eatmydata --foreign --arch=${SBUILD_ARCH} ${SBUILD_DIST} /srv/chroot/${SBUILD_DIST}-${SBUILD_ARCH}-sbuild "http://$(/bootstrap/apt-source/get-domain.bash)/debian" diff --git a/docker/debian-dev/bootstrap/sbuild/setup-sbuild-base.bash b/docker/debian-dev/bootstrap/sbuild/setup-sbuild-base.bash new file mode 100755 index 0000000..a200d3f --- /dev/null +++ b/docker/debian-dev/bootstrap/sbuild/setup-sbuild-base.bash @@ -0,0 +1,5 @@ +#! /usr/bin/env bash + +set -e + +apt-get install -y sbuild schroot debootstrap diff --git a/docker/debian-dev/bootstrap/sbuild/setup-sbuild.bash b/docker/debian-dev/bootstrap/sbuild/setup-sbuild.bash new file mode 100755 index 0000000..f260e5d --- /dev/null +++ b/docker/debian-dev/bootstrap/sbuild/setup-sbuild.bash @@ -0,0 +1,11 @@ +#! /usr/bin/env bash + +/bootstrap/sbuild/setup-sbuild-base.bash + +if [[ "$BUILD_FOR_ARCH" == "amd64" ]]; then + /bootstrap/sbuild/setup-sbuild-amd64.bash +fi + +if [[ "$BUILD_FOR_ARCH" == "arm64" ]]; then + /bootstrap/sbuild/setup-sbuild-arm64.bash +fi |