k33g/devsbxpublic Fork
⑂ e54fac6
Commits
⬇ Clone ▾
git clone https://git.rickub.com/k33g/devsbx.git
git clone ssh://git@rickub.com/k33g/devsbx.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

🛟 Updated.

k33g committed 2026-10-17T07:12:24+02:00 Browse files
e54fac6
added .gitignore +3 -0
new file mode 100644
@@ -0,0 +1,3 @@
1+tmp/
2+blog/
3+
new file mode 100644
@@ -0,0 +1,3 @@
1+tmp/
2+blog/
3+
added .vscode/extensions.json +12 -0
new file mode 100644
@@ -0,0 +1,12 @@
1+{
2+ "recommendations": [
3+ "ms-azuretools.vscode-docker",
4+ "pkief.material-icon-theme",
5+ "pkief.material-product-icons",
6+ "aaron-bond.better-comments",
7+ "hediet.vscode-drawio",
8+ "anseki.vscode-color",
9+ "jeronimoekerdt.color-picker-universal",
10+ "wayou.vscode-todo-highlight",
11+ ]
12+}
\ No newline at end of file
new file mode 100644
@@ -0,0 +1,12 @@
1+{
2+ "recommendations": [
3+ "ms-azuretools.vscode-docker",
4+ "pkief.material-icon-theme",
5+ "pkief.material-product-icons",
6+ "aaron-bond.better-comments",
7+ "hediet.vscode-drawio",
8+ "anseki.vscode-color",
9+ "jeronimoekerdt.color-picker-universal",
10+ "wayou.vscode-todo-highlight",
11+ ]
12+}
\ No newline at end of file\ No newline at end of file
added .vscode/settings.json +48 -0
new file mode 100644
@@ -0,0 +1,48 @@
1+{
2+ "workbench.iconTheme": "material-icon-theme",
3+ "workbench.colorTheme": "Light Modern",
4+ "editor.fontSize": 14,
5+ "terminal.integrated.fontSize": 14,
6+ "editor.insertSpaces": true,
7+ "editor.tabSize": 4,
8+ "editor.detectIndentation": true,
9+ "files.autoSave": "afterDelay",
10+ "files.autoSaveDelay": 1000,
11+ "workbench.tree.indent": 20,
12+ "window.zoomLevel": 0.0,
13+ "[markdown]": {
14+ "editor.unicodeHighlight.ambiguousCharacters": false,
15+ "editor.unicodeHighlight.invisibleCharacters": false,
16+ "diffEditor.ignoreTrimWhitespace": false,
17+ "editor.fontWeight": "normal",
18+ "editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace",
19+ "editor.fontSize": 14,
20+ "editor.wordWrap": "on",
21+ "editor.quickSuggestions": {
22+ "comments": "off",
23+ "strings": "off",
24+ "other": "off"
25+ }
26+ },
27+ "markdown.preview.fontSize": 14,
28+ // "workbench.editorAssociations": {
29+ // "*.md": "vscode.markdown.preview.editor"
30+ // },
31+ "[dockerfile]": {
32+ "editor.fontSize": 14,
33+ },
34+ "[dockercompose]": {
35+ "editor.fontSize": 14,
36+ },
37+ "[json]": {
38+ "editor.fontSize": 14,
39+ },
40+ "[yaml]": {
41+ "editor.fontSize": 14,
42+
43+ },
44+ "[go]": {
45+ "editor.fontSize": 14,
46+ },
47+
48+}
new file mode 100644
@@ -0,0 +1,48 @@
1+{
2+ "workbench.iconTheme": "material-icon-theme",
3+ "workbench.colorTheme": "Light Modern",
4+ "editor.fontSize": 14,
5+ "terminal.integrated.fontSize": 14,
6+ "editor.insertSpaces": true,
7+ "editor.tabSize": 4,
8+ "editor.detectIndentation": true,
9+ "files.autoSave": "afterDelay",
10+ "files.autoSaveDelay": 1000,
11+ "workbench.tree.indent": 20,
12+ "window.zoomLevel": 0.0,
13+ "[markdown]": {
14+ "editor.unicodeHighlight.ambiguousCharacters": false,
15+ "editor.unicodeHighlight.invisibleCharacters": false,
16+ "diffEditor.ignoreTrimWhitespace": false,
17+ "editor.fontWeight": "normal",
18+ "editor.fontFamily": "'Droid Sans Mono', 'monospace', monospace",
19+ "editor.fontSize": 14,
20+ "editor.wordWrap": "on",
21+ "editor.quickSuggestions": {
22+ "comments": "off",
23+ "strings": "off",
24+ "other": "off"
25+ }
26+ },
27+ "markdown.preview.fontSize": 14,
28+ // "workbench.editorAssociations": {
29+ // "*.md": "vscode.markdown.preview.editor"
30+ // },
31+ "[dockerfile]": {
32+ "editor.fontSize": 14,
33+ },
34+ "[dockercompose]": {
35+ "editor.fontSize": 14,
36+ },
37+ "[json]": {
38+ "editor.fontSize": 14,
39+ },
40+ "[yaml]": {
41+ "editor.fontSize": 14,
42+
43+ },
44+ "[go]": {
45+ "editor.fontSize": 14,
46+ },
47+
48+}
added LICENSE +21 -0
new file mode 100644
@@ -0,0 +1,21 @@
1+MIT License
2+
3+Copyright (c) 2026 Philippe Charrière (k33g)
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+
12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+
15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
new file mode 100644
@@ -0,0 +1,21 @@
1+MIT License
2+
3+Copyright (c) 2026 Philippe Charrière (k33g)
4+
5+Permission is hereby granted, free of charge, to any person obtaining a copy
6+of this software and associated documentation files (the "Software"), to deal
7+in the Software without restriction, including without limitation the rights
8+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+copies of the Software, and to permit persons to whom the Software is
10+furnished to do so, subject to the following conditions:
11+
12+The above copyright notice and this permission notice shall be included in all
13+copies or substantial portions of the Software.
14+
15+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+SOFTWARE.
added README.md +0 -0
new file mode 100644
new file mode 100644
added git.sh +136 -0
new file mode 100755
@@ -0,0 +1,136 @@
1+#!/bin/bash
2+message=""
3+case $1 in
4+
5+ # 🎨: art
6+ art)
7+ message="Improve structure / format of the code"
8+ emoji="🎨"
9+ ;;
10+
11+ # 🐛: bug
12+ bug|fix)
13+ message="Fix a bug"
14+ emoji="🐛"
15+ ;;
16+
17+ # 🤓: geek
18+ human|human-fixed)
19+ message="Human Fixed"
20+ emoji="🤓"
21+ ;;
22+
23+ # 🤖: robot
24+ ai|ai-generated)
25+ message="AI generated"
26+ emoji="🤖"
27+ ;;
28+
29+ # ✨: sparkles
30+ sparkles|feature)
31+ message="Introduce new feature(s)"
32+ emoji="✨"
33+ ;;
34+
35+ # 🧩: jigsaw
36+ jigsaw|example|examples|demo|demos)
37+ message="Introduce new example(s)"
38+ emoji="🧩"
39+ ;;
40+
41+
42+ # 📝: memo
43+ memo|doc|documentation)
44+ message="Add or update documentation"
45+ emoji="📝"
46+ ;;
47+
48+ # 🌸: cherry_blossom
49+ gardening|garden|clean|cleaning)
50+ message="Gardening"
51+ emoji="🌸"
52+ ;;
53+
54+ # 🚀: rocket
55+ rocket|deploy)
56+ message="Deploy stuff"
57+ emoji="🚀"
58+ ;;
59+
60+ # 🎉: tada
61+ tada|first)
62+ message="Begin a project"
63+ emoji="🎉"
64+ ;;
65+
66+ # 🚧: construction
67+ construction|wip)
68+ message="Work in progress"
69+ emoji="🚧"
70+ ;;
71+
72+ # 📦️: package
73+ package|build)
74+ message="Add or update compiled files or packages"
75+ emoji="📦️"
76+ ;;
77+
78+ # 📦️: package
79+ release)
80+ message="Create a release"
81+ emoji="📦️"
82+ ;;
83+
84+ # 👽️: alien
85+ alien|api)
86+ message="Update code due to external API changes"
87+ emoji="👽️"
88+ ;;
89+
90+ # 🐳: whale
91+ docker|container)
92+ message="Docker"
93+ emoji="🐳"
94+ ;;
95+
96+ # 🍊: tangerine
97+ gitpod|gitpodify)
98+ message="Gitpodify"
99+ emoji="🍊"
100+ ;;
101+
102+ # 🧪: test tube
103+ alembic|experiments|experiment|xp)
104+ message="Perform experiments"
105+ emoji="🧪"
106+ ;;
107+
108+ # ✅: check mark
109+ test|tests|testing)
110+ message="Add or update tests"
111+ emoji="✅"
112+ ;;
113+
114+ # 💾: floppy-disk
115+ save)
116+ message="Saved"
117+ emoji="💾"
118+ ;;
119+
120+ *)
121+ message="Updated"
122+ emoji="🛟"
123+ ;;
124+
125+esac
126+
127+find . -name '.DS_Store' -type f -delete
128+
129+if [ -z "$2" ]
130+then
131+ # empty
132+ git add .; git commit -m "$emoji $message."; git push
133+else
134+ # not empty
135+ git add .; git commit -m "$emoji $message: $2"; git push
136+fi
new file mode 100755
@@ -0,0 +1,136 @@
1+#!/bin/bash
2+message=""
3+case $1 in
4+
5+ # 🎨: art
6+ art)
7+ message="Improve structure / format of the code"
8+ emoji="🎨"
9+ ;;
10+
11+ # 🐛: bug
12+ bug|fix)
13+ message="Fix a bug"
14+ emoji="🐛"
15+ ;;
16+
17+ # 🤓: geek
18+ human|human-fixed)
19+ message="Human Fixed"
20+ emoji="🤓"
21+ ;;
22+
23+ # 🤖: robot
24+ ai|ai-generated)
25+ message="AI generated"
26+ emoji="🤖"
27+ ;;
28+
29+ # ✨: sparkles
30+ sparkles|feature)
31+ message="Introduce new feature(s)"
32+ emoji="✨"
33+ ;;
34+
35+ # 🧩: jigsaw
36+ jigsaw|example|examples|demo|demos)
37+ message="Introduce new example(s)"
38+ emoji="🧩"
39+ ;;
40+
41+
42+ # 📝: memo
43+ memo|doc|documentation)
44+ message="Add or update documentation"
45+ emoji="📝"
46+ ;;
47+
48+ # 🌸: cherry_blossom
49+ gardening|garden|clean|cleaning)
50+ message="Gardening"
51+ emoji="🌸"
52+ ;;
53+
54+ # 🚀: rocket
55+ rocket|deploy)
56+ message="Deploy stuff"
57+ emoji="🚀"
58+ ;;
59+
60+ # 🎉: tada
61+ tada|first)
62+ message="Begin a project"
63+ emoji="🎉"
64+ ;;
65+
66+ # 🚧: construction
67+ construction|wip)
68+ message="Work in progress"
69+ emoji="🚧"
70+ ;;
71+
72+ # 📦️: package
73+ package|build)
74+ message="Add or update compiled files or packages"
75+ emoji="📦️"
76+ ;;
77+
78+ # 📦️: package
79+ release)
80+ message="Create a release"
81+ emoji="📦️"
82+ ;;
83+
84+ # 👽️: alien
85+ alien|api)
86+ message="Update code due to external API changes"
87+ emoji="👽️"
88+ ;;
89+
90+ # 🐳: whale
91+ docker|container)
92+ message="Docker"
93+ emoji="🐳"
94+ ;;
95+
96+ # 🍊: tangerine
97+ gitpod|gitpodify)
98+ message="Gitpodify"
99+ emoji="🍊"
100+ ;;
101+
102+ # 🧪: test tube
103+ alembic|experiments|experiment|xp)
104+ message="Perform experiments"
105+ emoji="🧪"
106+ ;;
107+
108+ # ✅: check mark
109+ test|tests|testing)
110+ message="Add or update tests"
111+ emoji="✅"
112+ ;;
113+
114+ # 💾: floppy-disk
115+ save)
116+ message="Saved"
117+ emoji="💾"
118+ ;;
119+
120+ *)
121+ message="Updated"
122+ emoji="🛟"
123+ ;;
124+
125+esac
126+
127+find . -name '.DS_Store' -type f -delete
128+
129+if [ -z "$2" ]
130+then
131+ # empty
132+ git add .; git commit -m "$emoji $message."; git push
133+else
134+ # not empty
135+ git add .; git commit -m "$emoji $message: $2"; git push
136+fi
added sbx-vscode/demo/.vscode/extensions.json +7 -0
new file mode 100644
@@ -0,0 +1,7 @@
1+{
2+ "recommendations": [
3+ "pkief.material-icon-theme",
4+ "pkief.material-product-icons",
5+ "hediet.vscode-drawio",
6+ ]
7+}
\ No newline at end of file
new file mode 100644
@@ -0,0 +1,7 @@
1+{
2+ "recommendations": [
3+ "pkief.material-icon-theme",
4+ "pkief.material-product-icons",
5+ "hediet.vscode-drawio",
6+ ]
7+}
\ No newline at end of file\ No newline at end of file
added sbx-vscode/demo/.vscode/settings.json +13 -0
new file mode 100644
@@ -0,0 +1,13 @@
1+{
2+ "workbench.iconTheme": "material-icon-theme",
3+ "workbench.colorTheme": "Light Modern",
4+ "editor.fontSize": 14,
5+ "terminal.integrated.fontSize": 14,
6+ "editor.insertSpaces": true,
7+ "editor.tabSize": 4,
8+ "editor.detectIndentation": true,
9+ "files.autoSave": "afterDelay",
10+ "files.autoSaveDelay": 1000,
11+ "workbench.tree.indent": 20,
12+ "window.zoomLevel": 0.0,
13+}
new file mode 100644
@@ -0,0 +1,13 @@
1+{
2+ "workbench.iconTheme": "material-icon-theme",
3+ "workbench.colorTheme": "Light Modern",
4+ "editor.fontSize": 14,
5+ "terminal.integrated.fontSize": 14,
6+ "editor.insertSpaces": true,
7+ "editor.tabSize": 4,
8+ "editor.detectIndentation": true,
9+ "files.autoSave": "afterDelay",
10+ "files.autoSaveDelay": 1000,
11+ "workbench.tree.indent": 20,
12+ "window.zoomLevel": 0.0,
13+}
added sbx-vscode/demo/README.md +2 -0
new file mode 100644
@@ -0,0 +1,2 @@
1+# Like dev container
2+> This a work in progress
new file mode 100644
@@ -0,0 +1,2 @@
1+# Like dev container
2+> This a work in progress
added sbx-vscode/kits/claude-code/claude-code.dockerfile +37 -0
new file mode 100644
@@ -0,0 +1,37 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: run the official installer, keep only the binary ----------
4+FROM debian:trixie-slim AS build
5+ARG CLAUDE_VERSION
6+
7+RUN <<EOF
8+set -eu
9+apt-get update
10+apt-get install -y --no-install-recommends curl ca-certificates
11+rm -rf /var/lib/apt/lists/*
12+EOF
13+
14+# The installer puts the binary under $HOME/.local/share/claude/versions/ and
15+# symlinks it from $HOME/.local/bin/claude. Copy the real (self-contained)
16+# executable to /usr/local/bin, so nothing depends on the agent's home.
17+RUN <<EOF
18+set -eu
19+export HOME=/tmp/claude-home
20+mkdir -p "$HOME"
21+curl -fsSL https://claude.ai/install.sh | bash -s -- "${CLAUDE_VERSION}"
22+mkdir -p /out/usr/local/bin
23+cp -L "$HOME/.local/bin/claude" /out/usr/local/bin/claude
24+chmod 0755 /out/usr/local/bin/claude
25+EOF
26+
27+# --- overlay: only the claude binary lands on the workload -------------------
28+# A mixin's image config (USER, ENTRYPOINT, CMD) is never kept by the composed
29+# image, so there is nothing to declare here: start it with `claude`.
30+FROM scratch
31+COPY --from=build /out/ /
32+
33+# First-run answers, so `claude` goes straight to its prompt: theme, onboarding
34+# and terminal-setup screens already done, and the folder-trust question already
35+# answered for "/" (it covers every workspace path, the sandbox being the
36+# isolation). Owned by the agent user (UID 1000): claude rewrites this file.
37+COPY --chown=1000:1000 config/claude.json /home/agent/.claude.json
new file mode 100644
@@ -0,0 +1,37 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: run the official installer, keep only the binary ----------
4+FROM debian:trixie-slim AS build
5+ARG CLAUDE_VERSION
6+
7+RUN <<EOF
8+set -eu
9+apt-get update
10+apt-get install -y --no-install-recommends curl ca-certificates
11+rm -rf /var/lib/apt/lists/*
12+EOF
13+
14+# The installer puts the binary under $HOME/.local/share/claude/versions/ and
15+# symlinks it from $HOME/.local/bin/claude. Copy the real (self-contained)
16+# executable to /usr/local/bin, so nothing depends on the agent's home.
17+RUN <<EOF
18+set -eu
19+export HOME=/tmp/claude-home
20+mkdir -p "$HOME"
21+curl -fsSL https://claude.ai/install.sh | bash -s -- "${CLAUDE_VERSION}"
22+mkdir -p /out/usr/local/bin
23+cp -L "$HOME/.local/bin/claude" /out/usr/local/bin/claude
24+chmod 0755 /out/usr/local/bin/claude
25+EOF
26+
27+# --- overlay: only the claude binary lands on the workload -------------------
28+# A mixin's image config (USER, ENTRYPOINT, CMD) is never kept by the composed
29+# image, so there is nothing to declare here: start it with `claude`.
30+FROM scratch
31+COPY --from=build /out/ /
32+
33+# First-run answers, so `claude` goes straight to its prompt: theme, onboarding
34+# and terminal-setup screens already done, and the folder-trust question already
35+# answered for "/" (it covers every workspace path, the sandbox being the
36+# isolation). Owned by the agent user (UID 1000): claude rewrites this file.
37+COPY --chown=1000:1000 config/claude.json /home/agent/.claude.json
added sbx-vscode/kits/claude-code/claude-code.yaml +30 -0
new file mode 100644
@@ -0,0 +1,30 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: mixin
4+displayName: Claude Code
5+description: Claude Code (claude), Anthropic's coding agent CLI
6+sourceUrl: https://code.claude.com
7+
8+dockerfile: ./claude-code.dockerfile
9+
10+args:
11+ claude_version:
12+ # An exact release (no "stable"/"latest": `provides` needs a real version)
13+ default: "2.1.292"
14+ pattern: '^[0-9]+\.[0-9]+\.[0-9]+$'
15+ buildArg: CLAUDE_VERSION
16+
17+provides: ["claude-code@${{ kit.args.claude_version }}"]
18+
19+capabilities:
20+ # Egress is deny-by-default: the API, login and update endpoints.
21+ - type: com.docker.sandbox/network-policy@1
22+ config:
23+ runtime:
24+ allow:
25+ - api.anthropic.com
26+ - platform.claude.com
27+ - claude.com
28+ - code.claude.com
29+ - downloads.claude.ai
30+ - mcp-proxy.anthropic.com
new file mode 100644
@@ -0,0 +1,30 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: mixin
4+displayName: Claude Code
5+description: Claude Code (claude), Anthropic's coding agent CLI
6+sourceUrl: https://code.claude.com
7+
8+dockerfile: ./claude-code.dockerfile
9+
10+args:
11+ claude_version:
12+ # An exact release (no "stable"/"latest": `provides` needs a real version)
13+ default: "2.1.292"
14+ pattern: '^[0-9]+\.[0-9]+\.[0-9]+$'
15+ buildArg: CLAUDE_VERSION
16+
17+provides: ["claude-code@${{ kit.args.claude_version }}"]
18+
19+capabilities:
20+ # Egress is deny-by-default: the API, login and update endpoints.
21+ - type: com.docker.sandbox/network-policy@1
22+ config:
23+ runtime:
24+ allow:
25+ - api.anthropic.com
26+ - platform.claude.com
27+ - claude.com
28+ - code.claude.com
29+ - downloads.claude.ai
30+ - mcp-proxy.anthropic.com
added sbx-vscode/kits/claude-code/config/claude.json +8 -0
new file mode 100644
@@ -0,0 +1,8 @@
1+{
2+ "theme": "dark",
3+ "hasCompletedOnboarding": true,
4+ "shiftEnterKeyBindingInstalled": true,
5+ "projects": {
6+ "/": { "hasTrustDialogAccepted": true }
7+ }
8+}
new file mode 100644
@@ -0,0 +1,8 @@
1+{
2+ "theme": "dark",
3+ "hasCompletedOnboarding": true,
4+ "shiftEnterKeyBindingInstalled": true,
5+ "projects": {
6+ "/": { "hasTrustDialogAccepted": true }
7+ }
8+}
added sbx-vscode/kits/rust-toolchain/rust-toolchain.dockerfile +54 -0
new file mode 100644
@@ -0,0 +1,54 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: the Rust toolchain, through rustup ---
4+FROM debian:trixie-slim AS rust
5+ARG RUST_VERSION
6+
7+RUN <<EOF
8+set -eu
9+apt-get update
10+apt-get install -y --no-install-recommends curl ca-certificates
11+rm -rf /var/lib/apt/lists/*
12+EOF
13+
14+ENV RUSTUP_HOME=/usr/local/rustup \
15+ CARGO_HOME=/usr/local/cargo
16+RUN <<EOF
17+set -eu
18+curl -fsSL https://sh.rustup.rs | sh -s -- -y --no-modify-path \
19+ --profile minimal \
20+ --default-toolchain "${RUST_VERSION}" \
21+ --component rustfmt,clippy,rust-analyzer,rust-src
22+EOF
23+
24+RUN <<EOF
25+set -eu
26+toolchain="$(ls -d /usr/local/rustup/toolchains/*)"
27+mkdir -p /out/usr/local/bin
28+for bin in cargo rustc rustdoc rustfmt cargo-fmt cargo-clippy clippy-driver rust-analyzer; do
29+ ln -s "${toolchain}/bin/${bin}" "/out/usr/local/bin/${bin}"
30+done
31+# Kept in the overlay at the same path: the links point into it.
32+mkdir -p /out/usr/local/rustup/toolchains
33+mv "${toolchain}" /out/usr/local/rustup/toolchains/
34+EOF
35+
36+# --- linker stage: what the workload lacks to link, from its own distro ---
37+FROM docker/sandbox-templates:shell AS linker
38+USER root
39+RUN <<EOF
40+set -eu
41+apt-get update
42+apt-get install -y --no-install-recommends --download-only gcc libc6-dev
43+mkdir -p /out
44+for deb in /var/cache/apt/archives/*.deb; do
45+ dpkg-deb -x "${deb}" /out
46+done
47+# Set by update-alternatives in a real install, which unpacking skips.
48+ln -sf gcc /out/usr/bin/cc
49+rm -rf /out/usr/share/doc /out/usr/share/man /out/usr/share/info /out/usr/share/locale
50+EOF
51+
52+FROM scratch
53+COPY --from=linker /out/ /
54+COPY --from=rust /out/ /
new file mode 100644
@@ -0,0 +1,54 @@
1+# syntax=docker/dockerfile:1
2+
3+# --- build stage: the Rust toolchain, through rustup ---
4+FROM debian:trixie-slim AS rust
5+ARG RUST_VERSION
6+
7+RUN <<EOF
8+set -eu
9+apt-get update
10+apt-get install -y --no-install-recommends curl ca-certificates
11+rm -rf /var/lib/apt/lists/*
12+EOF
13+
14+ENV RUSTUP_HOME=/usr/local/rustup \
15+ CARGO_HOME=/usr/local/cargo
16+RUN <<EOF
17+set -eu
18+curl -fsSL https://sh.rustup.rs | sh -s -- -y --no-modify-path \
19+ --profile minimal \
20+ --default-toolchain "${RUST_VERSION}" \
21+ --component rustfmt,clippy,rust-analyzer,rust-src
22+EOF
23+
24+RUN <<EOF
25+set -eu
26+toolchain="$(ls -d /usr/local/rustup/toolchains/*)"
27+mkdir -p /out/usr/local/bin
28+for bin in cargo rustc rustdoc rustfmt cargo-fmt cargo-clippy clippy-driver rust-analyzer; do
29+ ln -s "${toolchain}/bin/${bin}" "/out/usr/local/bin/${bin}"
30+done
31+# Kept in the overlay at the same path: the links point into it.
32+mkdir -p /out/usr/local/rustup/toolchains
33+mv "${toolchain}" /out/usr/local/rustup/toolchains/
34+EOF
35+
36+# --- linker stage: what the workload lacks to link, from its own distro ---
37+FROM docker/sandbox-templates:shell AS linker
38+USER root
39+RUN <<EOF
40+set -eu
41+apt-get update
42+apt-get install -y --no-install-recommends --download-only gcc libc6-dev
43+mkdir -p /out
44+for deb in /var/cache/apt/archives/*.deb; do
45+ dpkg-deb -x "${deb}" /out
46+done
47+# Set by update-alternatives in a real install, which unpacking skips.
48+ln -sf gcc /out/usr/bin/cc
49+rm -rf /out/usr/share/doc /out/usr/share/man /out/usr/share/info /out/usr/share/locale
50+EOF
51+
52+FROM scratch
53+COPY --from=linker /out/ /
54+COPY --from=rust /out/ /
added sbx-vscode/kits/rust-toolchain/rust-toolchain.yaml +26 -0
new file mode 100644
@@ -0,0 +1,26 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: mixin
4+displayName: Rust toolchain
5+description: Rust toolchain (cargo, rustc, rustfmt, clippy) and rust-analyzer (language server)
6+
7+args:
8+ rust_version:
9+ # A Rust release (e.g. 1.99.0), or stable / beta / nightly (not reproducible).
10+ default: "1.99.0"
11+ pattern: '^([0-9]+\.[0-9]+(\.[0-9]+)?|stable|beta|nightly)$'
12+ buildArg: RUST_VERSION
13+
14+provides: ["rust@${{ kit.args.rust_version }}"]
15+
16+capabilities:
17+ # Runtime access with the tool: the crates.io index and crate downloads.
18+ - type: com.docker.sandbox/network-policy@1
19+ config:
20+ runtime:
21+ allow:
22+ - index.crates.io
23+ - static.crates.io
24+ - crates.io
25+ - github.com
26+
new file mode 100644
@@ -0,0 +1,26 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: mixin
4+displayName: Rust toolchain
5+description: Rust toolchain (cargo, rustc, rustfmt, clippy) and rust-analyzer (language server)
6+
7+args:
8+ rust_version:
9+ # A Rust release (e.g. 1.99.0), or stable / beta / nightly (not reproducible).
10+ default: "1.99.0"
11+ pattern: '^([0-9]+\.[0-9]+(\.[0-9]+)?|stable|beta|nightly)$'
12+ buildArg: RUST_VERSION
13+
14+provides: ["rust@${{ kit.args.rust_version }}"]
15+
16+capabilities:
17+ # Runtime access with the tool: the crates.io index and crate downloads.
18+ - type: com.docker.sandbox/network-policy@1
19+ config:
20+ runtime:
21+ allow:
22+ - index.crates.io
23+ - static.crates.io
24+ - crates.io
25+ - github.com
26+
added sbx-vscode/kits/vscode-ssh/config/machine-settings.json +6 -0
new file mode 100644
@@ -0,0 +1,6 @@
1+{
2+ "telemetry.telemetryLevel": "off",
3+ "update.mode": "none",
4+ "extensions.autoUpdate": false,
5+ "terminal.integrated.defaultProfile.linux": "bash"
6+}
new file mode 100644
@@ -0,0 +1,6 @@
1+{
2+ "telemetry.telemetryLevel": "off",
3+ "update.mode": "none",
4+ "extensions.autoUpdate": false,
5+ "terminal.integrated.defaultProfile.linux": "bash"
6+}
added sbx-vscode/kits/vscode-ssh/kit.dockerfile +25 -0
new file mode 100644
@@ -0,0 +1,25 @@
1+# syntax=docker/dockerfile:1
2+# vscode-ssh: the shell template
3+FROM docker/sandbox-templates:shell
4+
5+USER root
6+
7+# What the VS Code server expects on a Remote-SSH host
8+RUN <<EOF
9+set -eux
10+apt-get update
11+DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
12+ libstdc++6 tar gzip curl wget ca-certificates procps git
13+rm -rf /var/lib/apt/lists/*
14+EOF
15+
16+USER agent
17+
18+# Default machine settings for the VS Code server
19+RUN --mount=type=bind,target=/tmp/kit <<EOF
20+set -eux
21+install -D -m 0644 /tmp/kit/config/machine-settings.json \
22+ /home/agent/.vscode-server/data/Machine/settings.json
23+EOF
24+
25+WORKDIR /home/agent/workspace
new file mode 100644
@@ -0,0 +1,25 @@
1+# syntax=docker/dockerfile:1
2+# vscode-ssh: the shell template
3+FROM docker/sandbox-templates:shell
4+
5+USER root
6+
7+# What the VS Code server expects on a Remote-SSH host
8+RUN <<EOF
9+set -eux
10+apt-get update
11+DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
12+ libstdc++6 tar gzip curl wget ca-certificates procps git
13+rm -rf /var/lib/apt/lists/*
14+EOF
15+
16+USER agent
17+
18+# Default machine settings for the VS Code server
19+RUN --mount=type=bind,target=/tmp/kit <<EOF
20+set -eux
21+install -D -m 0644 /tmp/kit/config/machine-settings.json \
22+ /home/agent/.vscode-server/data/Machine/settings.json
23+EOF
24+
25+WORKDIR /home/agent/workspace
added sbx-vscode/kits/vscode-ssh/kit.yaml +23 -0
new file mode 100644
@@ -0,0 +1,23 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: workload
4+displayName: vscode-ssh
5+description: >-
6+ Shell sandbox for VS Code Remote-SSH
7+sourceUrl: https://rickub.com/k33g/devsbx
8+licenses: [MIT]
9+version: "0.1.0"
10+capabilities:
11+ - type: com.docker.sandbox/sbx@1
12+ - type: com.docker.sandbox/network-policy@1
13+ config:
14+ runtime:
15+ allow:
16+ - update.code.visualstudio.com
17+ - vscode.download.prss.microsoft.com
18+ - "*.vscode-cdn.net"
19+ - marketplace.visualstudio.com
20+ - "*.gallery.vsassets.io"
21+ - "*.gallerycdn.vsassets.io"
22+ - open-vsx.org
23+
new file mode 100644
@@ -0,0 +1,23 @@
1+# syntax=docker/sandbox-kit:3
2+schemaVersion: "3"
3+kind: workload
4+displayName: vscode-ssh
5+description: >-
6+ Shell sandbox for VS Code Remote-SSH
7+sourceUrl: https://rickub.com/k33g/devsbx
8+licenses: [MIT]
9+version: "0.1.0"
10+capabilities:
11+ - type: com.docker.sandbox/sbx@1
12+ - type: com.docker.sandbox/network-policy@1
13+ config:
14+ runtime:
15+ allow:
16+ - update.code.visualstudio.com
17+ - vscode.download.prss.microsoft.com
18+ - "*.vscode-cdn.net"
19+ - marketplace.visualstudio.com
20+ - "*.gallery.vsassets.io"
21+ - "*.gallerycdn.vsassets.io"
22+ - open-vsx.org
23+
added sbx-vscode/sbxenv.yaml +17 -0
new file mode 100644
@@ -0,0 +1,17 @@
1+schemaVersion: "1"
2+
3+# Sandbox name = SSH host (<name>.sbx): letters, digits and hyphens only.
4+name: vscode-demo
5+
6+# The workload kit is the base "agent": its name is the kit directory name.
7+agent: vscode-ssh
8+
9+# Relative paths resolve against the directory of this file.
10+kits:
11+ - ./kits/vscode-ssh
12+ - ./kits/claude-code
13+ - ./kits/rust-toolchain
14+
15+# Mounted at the same path as on the host,
16+# so VS Code opens that same path remotely.
17+workspace: ./demo
new file mode 100644
@@ -0,0 +1,17 @@
1+schemaVersion: "1"
2+
3+# Sandbox name = SSH host (<name>.sbx): letters, digits and hyphens only.
4+name: vscode-demo
5+
6+# The workload kit is the base "agent": its name is the kit directory name.
7+agent: vscode-ssh
8+
9+# Relative paths resolve against the directory of this file.
10+kits:
11+ - ./kits/vscode-ssh
12+ - ./kits/claude-code
13+ - ./kits/rust-toolchain
14+
15+# Mounted at the same path as on the host,
16+# so VS Code opens that same path remotely.
17+workspace: ./demo