🧊 Docker Devbox

v1.0.0

One-command Docker dev 环境 for any project. Auto-检测s 20+ types (Nuxt/Next/Vite/Python/Go/Rust/Java/Ruby/PHP/C#/Swift/Hugo), matches local language versions to Docker images, manages port conflicts, and attaches database 服务s (PostgreSQL/MySQL/Redis/MongoDB/MinIO). Use when: 设置ting up contAInerized dev 环境s, 运行ning projects in isolated Docker contAIners, needing database dependencies, or exposing dev servers via Cloudflare Tunnel.

0· 10·0 当前·0 累计
nciae-zyh 头像by @nciae-zyh (Little Moon)
0
安全扫描
VirusTotal
Pending
查看报告
OpenClaw
可疑
medium confidence
The 技能's purpose (one-command Docker dev 环境) is plausible, but the package is instruction-only and omits the actual 'devbox' binary and declares only Docker while its 运行time instructions expect many host-language 工具s and touching host paths — this mismatch warrants caution.
评估建议
This package contAIns useful Docker-compose templates and docs for 运行ning projects in contAIners, but it is instruction-only and does NOT include the 'devbox' 命令行工具 or an 安装er. Before 安装ing or using it: 1) obtAIn the actual 'devbox' binary from a trusted source (the repo referenced in metadata) or use the provided templates manually; 2) review any use of cloudflared and where Tunnel 令牌s would be stored — do not paste 令牌s into untrusted places; 3) be aware the instructions probe many host binarie...
详细分析 ▾
用途与能力
The 技能's name and description match the files: 技能.md, Docker templates, and cloudflared instructions all describe a Docker-based dev 环境. However, the package does not include an implementation of the advertised 'devbox' 命令行工具 nor an 安装 spec to obtAIn it, so the promise of a 'one-command' experience is not delivered by these files alone.
指令范围
技能.md instructs the 代理 to 运行 a 'devbox' command and to probe host 工具ing (node, python3, go, rustc, java, ruby, php, dotnet, swift) to auto-检测 versions. Those host program probes are reasonable for version 检测ion, but required binaries only declares 'docker'. The instructions also reference mounting host paths (pnpm store, ~/.local/分享/pnpm) and Cloudflare tunnel 令牌s — all of which mean the 代理 may read/attempt to use host binaries and user home paths that are not declared.
安装机制
There is no 安装 spec (instruction-only) and included files are templates and docs — low 安装 risk. However, the provided 辅助工具 script (scripts/创建-dev-env.sh) execs './devbox' relative to the script directory but no devbox binary or 安装ation steps are included, which is an operational inconsistency (not an immediate code-execution risk in this bundle, but it means the 技能 as-distributed is incomplete).
凭证需求
The 技能 does not 请求 环境 variables or 凭证s in metadata. The docs mention Cloudflare tunnel 令牌s as part of optional 部署ment 图形界面dance and example 服务 passwords for local DB contAIners, but no secret 访问 is required by the 技能 files themselves. Still, 技能.md expects 访问 to host binaries and certAIn home-directory paths (pnpm store) which are not declared as required — a minor proportionality mismatch.
持久化与权限
The 技能 does not 请求 persistent presence (always: false), does not declare modifications to other 技能s or global 代理 config, and does not 请求 elevated privileges in metadata.
安全有层次,运行前请审查代码。

运行时依赖

🖥️ OSlinux · darwin

版本

latestv1.0.0

Initial release: 20+ project types, auto version 检测ion, database 服务s

Pending

安装命令

点击复制
官方npx clawhub@latest install docker-devbox
镜像加速npx clawhub@latest install docker-devbox --registry https://cn.longxiaskill.com

技能文档

为任意项目创建隔离 Docker 开发环境。

Quick 启动

# 自动检测
devbox /path/to/project

# 指定端口 + 附加数据库 devbox /path/to/project 8000 --with postgres,redis

# 强制指定框架 devbox /path/to/project --框架 java-spring

支持的项目类型

类型检测标志默认端口Docker 镜像
Nuxt 3/4nuxt.config.3000node:{ver}-bookworm
Next.jsnext.config.3000node:{ver}-bookworm
Vue + Vitevite.config. + vue5173node:{ver}-bookworm
React + Vitevite.config. + react5173node:{ver}-bookworm
Sveltesvelte.config.5173node:{ver}-bookworm
VitePressdocs/.vitepress/5173node:{ver}-bookworm
Node.js 后端package.json3000node:{ver}-bookworm
Python FastAPIrequirements.txt + fastAPI8000python:{ver}-slim
Python Djangomanage.py8000python:{ver}-slim
Python Flaskrequirements.txt + flask5000python:{ver}-slim
Gogo.mod8080golang:{ver}
RustCargo.toml8080rust:{ver}
Java (Spring Boot)pom.xml + spring-boot8080e命令行工具pse-temurin:{ver}-jdk-jammy
Java (Maven)pom.xml8080e命令行工具pse-temurin:{ver}-jdk-jammy
Java (Gradle)build.gradle / .kts8080e命令行工具pse-temurin:{ver}-jdk-jammy
Kotlin.kt (无 build.gradle)8080e命令行工具pse-temurin:21-jdk-jammy
Ruby on RAIlsGemfile + rAIls3000ruby:{ver}-slim
Ruby SinatraGemfile4567ruby:{ver}-slim
PHP Laravelcomposer.json + laravel5000php:{ver}-命令行工具
PHPcomposer.json8000php:{ver}-命令行工具
C# / .NET.csproj / .sln5000dotnet/sdk:{ver}
SwiftPackage.swift8080swift:{ver}
Hugohugo.toml1313klakegg/hugo:ext-alpine
静态 HTML*.html80nginx:alpine

附加服务

devbox ./应用 --with postgres,redis
服务镜像端口
postgres / pgpostgres:16-alpine5432
mysqlmysql:8-alpine3306
redisredis:7-alpine6379
mongomongo:727017
miniominio/minio9000/9001

命令行参数

devbox  [port] [options]

Options: --框架 强制指定框架(覆盖自动检测) --with <服务s> 附加服务(逗号分隔) --env-file 环境变量文件 --use-dockerfile 使用项目自带 Dockerfile -h, --help 帮助信息

版本检测

Devbox 自动检测本地语言版本并匹配 Docker 镜像:

语言检测方式Docker 镜像
Node.jsnode --versionnode:{major}-bookworm
Pythonpython3 --versionpython:{major.minor}-slim
Gogo versiongolang:{major.minor}
Rustrustc --versionrust:{major.minor}
Javajava -versione命令行工具pse-temurin:{major}-jdk-jammy
Rubyruby --versionruby:{major.minor}-slim
PHPphp --versionphp:{major.minor}-命令行工具
.NETdotnet --versiondotnet/sdk:{major.minor}
Swiftswift --versionswift:{major.minor}

pnpm 硬链接

前端项目使用 pnpm 时,自动挂载宿主机 pnpm store,容器内安装直接硬链接,无需重复下载。

Cloudflare Tunnel

详见 references/cloudflare-tunnel.md

模板参考

详见 references/docker-templates.md

Comments

签名 in to comment.

No comments yet.

数据来源ClawHub ↗ · 中文优化:龙虾技能库