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)
  • 📦 Create portable packages for deployment
  • 🚀 Deploy to remote servers with one command
  • 💾 Backup and restore configurations

Quick Start

Build Portable Packages

来源于7w4.net。

# 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