diff options
author | crupest <crupest@outlook.com> | 2023-11-21 18:48:08 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-11-21 19:57:56 +0800 |
commit | ac7ba2aa63f2a6cbf7bb42fb2c1c71f595570f71 (patch) | |
tree | 474b937518bac7e67dbc790edd378f72c8ddb5d6 /docker/debian-dev/bootstrap/sbuild | |
parent | 0803f356e5bce6a7849908eb94d5565c4756e849 (diff) | |
download | crupest-ac7ba2aa63f2a6cbf7bb42fb2c1c71f595570f71.tar.gz crupest-ac7ba2aa63f2a6cbf7bb42fb2c1c71f595570f71.tar.bz2 crupest-ac7ba2aa63f2a6cbf7bb42fb2c1c71f595570f71.zip |
docker(debian-dev): try to fix sbuild.
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 |