Skip to main content

deploy-cvm

Deploy local changes to the dev TDX CVM

설치로 이동

소스 정보

저장소
nearai/openclaw-nearai-worker
최근 소스 활동
2026년 2월 12일 23:50
감지된 SKILL.md 언어
영어
스타
10
포크
1

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
deploy-cvm
description
Deploy local changes to the dev TDX CVM
disable-model-invocation
true
allowed-tools
Bash, Read, Glob, Grep
# Deploy to Dev CVM Deploy all local changes to the TDX CVM dev environment. ## Target - SSH host: `tdx` (ProxyJump through gpu26, port 10022) - Code path on CVM: `/home/root/openclaw/` - Guest OS: Alpine/BusyBox (no rsync) ## Steps 1. **Check connectivity**: ``` ssh tdx "echo ok" ``` 2. **Detect changed files** using `git diff --name-only HEAD` and `git status --short` to find all modified/untracked files. 3. **Sync all changed files** to the CVM, preserving directory structure. Use `scp` for each file/directory since the CVM lacks rsync. Sync to `/home/root/openclaw/`. 4. **Rebuild compose-api** if any `compose-api/` files changed: ``` ssh tdx "cd /home/root/openclaw/compose-api && docker build --build-arg CACHEBUST=$(date +%s) -t openclaw-compose-api:local ." ``` 5. **Rebuild worker** if any `worker/` files changed: ``` ssh tdx "cd /home/root/openclaw/worker && docker build --build-arg CACHEBUST=$(date +%s) -t openclaw-nearai-worker:local ." ``` 6. **Redeploy** containers: ``` ssh tdx "cd /home/root/openclaw && docker compose -f deploy/docker-compose.dstack.yml --env-file deploy/.env.dstack up -d" ``` 7. **Verify** deployment: ``` ssh tdx "curl -s http://localhost:8080/version" ``` ## Important notes - Always run from the project root directory - The CVM is Alpine/BusyBox - no rsync, limited GNU flags - Build output can be long - watch for errors at the end - After deploy, verify with the version endpoint
GitHub에서 보기