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
Build and deploy OpenClaw as Docker images or portable packages.
更多技能請訪問小蔥技能站7w4.net。
# Build both clean and full versions
./scripts/build-portable.sh
# Export for deployment
./scripts/export-portable.sh
# Deploy clean version
./export/deploy.sh user@remote-server clean /opt/openclaw
# Deploy full version
./export/deploy.sh user@remote-server full /opt/openclaw
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
# Install Node.js
./install-node.sh
# Start OpenClaw
cd clean && ./start.sh # or cd full && ./start.sh
# Access WebUI
open http://localhost:18789
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
export OPENCLAW_INSTALL_DIR=/opt/openclaw
export OPENCLAW_CONFIG_DIR=/opt/config/.openclaw
export OUTPUT_DIR=/tmp/openclaw-packages
./scripts/build-portable.sh
zfanmy-夢月兒
這個Skill功能較為完整,提供了兩種部署方式並配有詳細文件和啟動指令碼。但存在一些質量問題:部分文件描述的目錄結構與實際不符,指令碼中仍有未修復的硬編碼路徑,某些指令碼語法存在問題需要修復。此外不同檔案中的版本號不統一,可能導致使用困惑。如果能解決這些細節問題,Skill的質量會更好。總體適合有一定排查能力的開發者使用。