aboutsummaryrefslogtreecommitdiff
path: root/docker/debian-dev
diff options
context:
space:
mode:
Diffstat (limited to 'docker/debian-dev')
-rw-r--r--docker/debian-dev/Dockerfile7
-rwxr-xr-xdocker/debian-dev/bootstrap/replace-mirrors.sh13
-rw-r--r--docker/debian-dev/bootstrap/tuna-source-http.txt11
-rw-r--r--docker/debian-dev/bootstrap/tuna-source-https.txt11
4 files changed, 42 insertions, 0 deletions
diff --git a/docker/debian-dev/Dockerfile b/docker/debian-dev/Dockerfile
new file mode 100644
index 0000000..0dadf07
--- /dev/null
+++ b/docker/debian-dev/Dockerfile
@@ -0,0 +1,7 @@
+FROM debian:11
+
+ADD bootstrap /bootstrap
+
+VOLUME [ "/data" ]
+CMD [ "bash" ]
+
diff --git a/docker/debian-dev/bootstrap/replace-mirrors.sh b/docker/debian-dev/bootstrap/replace-mirrors.sh
new file mode 100755
index 0000000..fb797b9
--- /dev/null
+++ b/docker/debian-dev/bootstrap/replace-mirrors.sh
@@ -0,0 +1,13 @@
+#! /usr/bin/env bash
+
+set -e
+
+cp /etc/apt/sources.list /etc/apt/sources.list.bak
+
+cp /bootstrap/tuna-source-http.txt /etc/apt/sources.list
+apt-get update
+apt-get install -y apt-transport-https ca-certificates
+
+cp /bootstrap/tuna-source-https.txt /etc/apt/sources.list
+apt-get update
+
diff --git a/docker/debian-dev/bootstrap/tuna-source-http.txt b/docker/debian-dev/bootstrap/tuna-source-http.txt
new file mode 100644
index 0000000..b1ce575
--- /dev/null
+++ b/docker/debian-dev/bootstrap/tuna-source-http.txt
@@ -0,0 +1,11 @@
+deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
+deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
+
+deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
+deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
+
+deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
+deb-src http://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
+
+deb http://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
+deb-src http://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
diff --git a/docker/debian-dev/bootstrap/tuna-source-https.txt b/docker/debian-dev/bootstrap/tuna-source-https.txt
new file mode 100644
index 0000000..38d4f74
--- /dev/null
+++ b/docker/debian-dev/bootstrap/tuna-source-https.txt
@@ -0,0 +1,11 @@
+deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
+deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
+
+deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
+deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
+
+deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
+deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
+
+deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
+deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free