v1.1.0: Alpine 轻量级 Docker 开发环境 + 敏感凭证清理

This commit is contained in:
lxy
2026-07-27 13:59:18 +08:00
parent feb76081a0
commit ccca0fa62b
51 changed files with 6125 additions and 993 deletions
+29 -61
View File
@@ -1,5 +1,5 @@
#!/bin/bash
# Dev Box 软件包下载脚本
# WorkPod Alpine 软件包下载脚本
# 使用国内镜像源,加速下载
set -e
@@ -11,75 +11,48 @@ mkdir -p "$PACKAGES_DIR"
cd "$PACKAGES_DIR"
echo "========================================"
echo " Dev Box 软件包下载(国内镜像)"
echo " WorkPod Alpine 软件包下载"
echo "========================================"
echo ""
# ============ Node.js ============
NODE_VERSION="v24.14.0"
NODE_FILE="node-${NODE_VERSION}-linux-x64.tar.xz"
# ============ Node.js (musl build) ============
NODE_VERSION="v24.14.1"
NODE_FILE="node-${NODE_VERSION}-linux-x64-musl.tar.gz"
echo "[1/5] Node.js ${NODE_VERSION}..."
echo "[1/4] Node.js ${NODE_VERSION} (musl)..."
if [ ! -f "$NODE_FILE" ]; then
# 淘宝镜像
curl -L -o "$NODE_FILE" "https://npmmirror.com/mirrors/node/${NODE_VERSION}/${NODE_FILE}"
echo " ✓ 下载完成"
else
echo " - 已存在,跳过"
fi
# ============ Go ============
GO_VERSION="1.26.1"
GO_FILE="go${GO_VERSION}.linux-amd64.tar.gz"
echo "[2/5] Go ${GO_VERSION}..."
if [ ! -f "$GO_FILE" ]; then
# Go 官方中国镜像
curl -L -o "$GO_FILE" "https://golang.google.cn/dl/${GO_FILE}"
echo " ✓ 下载完成"
else
echo " - 已存在,跳过"
fi
# ============ Rust ============
RUST_VERSION="1.94.0"
RUST_FILE="rust-${RUST_VERSION}-x86_64-unknown-linux-gnu.tar.xz"
echo "[3/5] Rust ${RUST_VERSION}..."
if [ ! -f "$RUST_FILE" ]; then
# 中科大镜像
curl -L -o "$RUST_FILE" "https://mirrors.ustc.edu.cn/rust-static/dist/${RUST_FILE}"
echo " ✓ 下载完成"
curl -L -o "$NODE_FILE" "https://unofficial-builds.nodejs.org/download/release/${NODE_VERSION}/${NODE_FILE}"
echo " OK"
else
echo " - 已存在,跳过"
fi
# ============ Claude Code ============
echo "[4/5] Claude Code..."
if [ ! -f "claude-code-2.1.78.tgz" ]; then
# 需要从 npm 下载,设置淘宝镜像
npm pack @anthropic-ai/claude-code --registry=https://registry.npmmirror.com 2>/dev/null || \
npm pack @anthropic-ai/claude-code@2.1.78 --registry=https://registry.npmmirror.com
# 重命名为固定名称
for f in anthropic-ai-claude-code-*.tgz; do
[ -f "$f" ] && mv "$f" "claude-code-2.1.78.tgz"
done
echo " ✓ 下载完成"
echo "[2/4] Claude Code..."
if [ ! -f "claude-code-2.1.87.tgz" ]; then
npm pack @anthropic-ai/claude-code@2.1.87 --registry=https://registry.npmmirror.com
mv anthropic-ai-claude-code-*.tgz "claude-code-2.1.87.tgz"
echo " OK"
else
echo " - 已存在,跳过"
fi
# ============ OpenClaw ============
echo "[5/5] OpenClaw..."
if [ ! -f "openclaw-2026.3.13.tgz" ]; then
# 从 npm 下载
npm pack openclaw@2026.3.13 --registry=https://registry.npmmirror.com 2>/dev/null || \
npm pack openclaw --registry=https://registry.npmmirror.com
# 重命名为固定名称
for f in openclaw-*.tgz; do
[ -f "$f" ] && mv "$f" "openclaw-2026.3.13.tgz"
done
echo " ✓ 下载完成"
echo "[3/4] OpenClaw..."
if [ ! -f "openclaw-2026.3.28.tgz" ]; then
npm pack openclaw@2026.3.28 --registry=https://registry.npmmirror.com
mv openclaw-*.tgz "openclaw-2026.3.28.tgz"
echo " OK"
else
echo " - 已存在,跳过"
fi
# ============ coding-helper ============
echo "[4/4] coding-helper..."
if [ ! -f "z_ai-coding-helper-0.0.7.tgz" ]; then
npm pack @z_ai/coding-helper@latest --registry=https://registry.npmmirror.com
mv z_ai-coding-helper-*.tgz "z_ai-coding-helper-0.0.7.tgz"
echo " OK"
else
echo " - 已存在,跳过"
fi
@@ -88,9 +61,4 @@ echo ""
echo "========================================"
echo " 下载完成"
echo "========================================"
echo ""
echo "文件列表:"
ls -lh "$PACKAGES_DIR"/*.tar.* "$PACKAGES_DIR"/*.tgz 2>/dev/null || true
echo ""
echo "总大小:"
du -sh "$PACKAGES_DIR"
ls -lh "$PACKAGES_DIR"