Openclaw Deploy

👤 zfanmy 📦 v1.0.4 ⭐ 4.4 ⬇️ 3.4K 下載
🔒 IT運維與安全 免費

📖 技能介紹

SKILL.md 後設資料格式示例


name: openclaw-deploy description: Build and deploy OpenClaw as Docker images or portable packages author: zfanmy-夢月兒 version: 1.0.1 homepage: license: MIT keywords: - openclaw - deploy - docker - portable - backup - migration requires: bins: - node - npm - tar


OpenClaw Deploy

Build and deploy OpenClaw as Docker images or portable packages.

Features

  • 🐳 Build Docker images (clean/full versions)

    這個技能的最新版本可以在7w4.net小蔥技能站找到。

  • 📦 Create portable packages for deployment
  • 🚀 Deploy to remote servers with one command
  • 💾 Backup and restore configurations

Quick Start

Build Portable Packages

# Build both clean and full versions
./scripts/build-portable.sh

# Export for deployment
./scripts/export-portable.sh

Deploy to Remote Server

# Deploy clean version
./export/deploy.sh user@remote-server clean /opt/openclaw

# Deploy full version
./export/deploy.sh user@remote-server full /opt/openclaw

Directory Structure

openclaw-deploy/
├── portable/clean/          # Clean version (no personal data)
├── portable/full/           # Full version (with config)
├── export/                  # Deployment packages
│   ├── openclaw-clean-portable.tar.gz
│   ├── openclaw-full-portable.tar.gz
│   └── deploy.sh
└── scripts/
    ├── build-portable.sh
    ├── export-portable.sh
    └── deploy.sh

Usage on Target Server

# Install Node.js
./install-node.sh

# Start OpenClaw
cd clean && ./start.sh   # or cd full && ./start.sh

# Access WebUI
open http://localhost:18789

Requirements

  • Node.js 22.x
  • Docker (optional, for Docker builds)
  • curl, rsync (for deployment)

Configuration

Environment Variables

You can customize paths using environment variables:

# OpenClaw installation directory (default: auto-detect)
export OPENCLAW_INSTALL_DIR=/path/to/openclaw

# OpenClaw config directory (default: ~/.openclaw)
export OPENCLAW_CONFIG_DIR=/path/to/.openclaw

# Output directory (default: ./openclaw-portable-output)
export OUTPUT_DIR=/path/to/output

Example with Custom Paths

export OPENCLAW_INSTALL_DIR=/opt/openclaw
export OPENCLAW_CONFIG_DIR=/opt/config/.openclaw
export OUTPUT_DIR=/tmp/openclaw-packages

./scripts/build-portable.sh

Changelog

v1.0.1

  • Fixed hardcoded paths
  • Added environment variable support
  • Improved error handling and dependency checks
  • Added path validation

v1.0.0

  • Initial release

Author

zfanmy-夢月兒

🤖 AI 評測

這個Skill功能較為完整,提供了兩種部署方式並配有詳細文件和啟動指令碼。但存在一些質量問題:部分文件描述的目錄結構與實際不符,指令碼中仍有未修復的硬編碼路徑,某些指令碼語法存在問題需要修復。此外不同檔案中的版本號不統一,可能導致使用困惑。如果能解決這些細節問題,Skill的質量會更好。總體適合有一定排查能力的開發者使用。

📊 多維度評分

適應性4.4
規範性4.1
有效性4.7
可靠性4.2
可信度4.5

📁 包含檔案 (15 個)

📄 README.md 2.7 KB
📄 SKILL.md 2.5 KB
📄 _meta.json 134 B
📄 docker-compose.yml 637 B
📄 scripts/build-portable.sh 3.8 KB
📄 scripts/export-portable.sh 2.5 KB
📄 scripts/import.sh 904 B
📄 scripts/start.sh 1.9 KB
📄 scripts/stop.sh 949 B
📄 skill-card.md 2.3 KB
📄 templates/README.md 969 B
📄 templates/check-env.sh 642 B
📄 templates/install-node.sh 714 B
📄 templates/start-clean.sh 917 B
📄 templates/start-full.sh 877 B