diff options
author | crupest <crupest@outlook.com> | 2023-11-01 20:58:53 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-11-01 20:58:53 +0800 |
commit | dfa50afcf0645fa697e304bdee3fbe5a78703420 (patch) | |
tree | 852ed0c1faaed080dba079953af18a1fa2eb77fc /docker/debian-dev/bootstrap/setup-sbuild.bash | |
parent | 1c5f4ef46d6b765eddabe584fad949bdf784b3c0 (diff) | |
download | crupest-dfa50afcf0645fa697e304bdee3fbe5a78703420.tar.gz crupest-dfa50afcf0645fa697e304bdee3fbe5a78703420.tar.bz2 crupest-dfa50afcf0645fa697e304bdee3fbe5a78703420.zip |
(docker:debian-dev) Add more setups(sbuild).
Diffstat (limited to 'docker/debian-dev/bootstrap/setup-sbuild.bash')
-rwxr-xr-x | docker/debian-dev/bootstrap/setup-sbuild.bash | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docker/debian-dev/bootstrap/setup-sbuild.bash b/docker/debian-dev/bootstrap/setup-sbuild.bash new file mode 100755 index 0000000..30c1af9 --- /dev/null +++ b/docker/debian-dev/bootstrap/setup-sbuild.bash @@ -0,0 +1,11 @@ +#! /usr/bin/env bash + +set -e + +if [[ -f /etc/crupest-apt-source ]]; then + CRUPEST_DEB_MIRROR=$(cat /etc/crupest-apt-source) +fi + +apt-get install -y sbuild schroot debootstrap +sbuild-createchroot bullseye /srv/chroot/bullseye-amd64-sbuild ${CRUPEST_DEB_MIRROR} + |