aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev
diff options
context:
space:
mode:
Diffstat (limited to 'docker/debian-dev')
-rw-r--r--docker/debian-dev/bootstrap/bash-profile-bash-completion.bash4
-rwxr-xr-xdocker/debian-dev/bootstrap/replace-mirrors.bash (renamed from docker/debian-dev/bootstrap/replace-mirrors.sh)2
-rwxr-xr-xdocker/debian-dev/bootstrap/setup-base.bash8
-rwxr-xr-xdocker/debian-dev/bootstrap/setup-dev-tools.bash6
-rwxr-xr-xdocker/debian-dev/bootstrap/setup-sbuild.bash11
-rw-r--r--docker/debian-dev/bootstrap/tuna-source-link.txt1
6 files changed, 32 insertions, 0 deletions
diff --git a/docker/debian-dev/bootstrap/bash-profile-bash-completion.bash b/docker/debian-dev/bootstrap/bash-profile-bash-completion.bash
new file mode 100644
index 0000000..75f8333
--- /dev/null
+++ b/docker/debian-dev/bootstrap/bash-profile-bash-completion.bash
@@ -0,0 +1,4 @@
+if [ -f /etc/bash_completion ]; then
+ . /etc/bash_completion
+fi
+
diff --git a/docker/debian-dev/bootstrap/replace-mirrors.sh b/docker/debian-dev/bootstrap/replace-mirrors.bash
index fb797b9..4fc07d0 100755
--- a/docker/debian-dev/bootstrap/replace-mirrors.sh
+++ b/docker/debian-dev/bootstrap/replace-mirrors.bash
@@ -11,3 +11,5 @@ apt-get install -y apt-transport-https ca-certificates
cp /bootstrap/tuna-source-https.txt /etc/apt/sources.list
apt-get update
+cp /bootstrap/tuna-source-link.txt /etc/crupest-apt-source
+
diff --git a/docker/debian-dev/bootstrap/setup-base.bash b/docker/debian-dev/bootstrap/setup-base.bash
new file mode 100755
index 0000000..59ad70e
--- /dev/null
+++ b/docker/debian-dev/bootstrap/setup-base.bash
@@ -0,0 +1,8 @@
+#! /usr/bin/env bash
+
+set -e
+
+apt-get install vim less man bash-completion
+
+cat /bootstrap/bash-profile-bash-completion.bash > /root/.bash_profile
+
diff --git a/docker/debian-dev/bootstrap/setup-dev-tools.bash b/docker/debian-dev/bootstrap/setup-dev-tools.bash
new file mode 100755
index 0000000..3d1985d
--- /dev/null
+++ b/docker/debian-dev/bootstrap/setup-dev-tools.bash
@@ -0,0 +1,6 @@
+#! /usr/bin/env bash
+
+set -e
+
+apt-get install build-essential
+
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}
+
diff --git a/docker/debian-dev/bootstrap/tuna-source-link.txt b/docker/debian-dev/bootstrap/tuna-source-link.txt
new file mode 100644
index 0000000..1a36b19
--- /dev/null
+++ b/docker/debian-dev/bootstrap/tuna-source-link.txt
@@ -0,0 +1 @@
+https://mirrors.tuna.tsinghua.edu.cn/debian