d-robotics 077f2eacf1 feat(skills): add taiyang servo dance skill
Add PWM-based servo control skill for RDK nodes with hardware servo support.

Changes:
- Add taiyang skill with SKILL.md and servo_dance.py script
- Update Dockerfile and Containerfile to include taiyang skill
- Update SOUL.md with skill constraints documentation

The skill controls two servos via /sys/class/pwm interface and must run on node side only.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-22 15:36:54 +08:00

43 lines
1.4 KiB
Docker

FROM ghcr.io/openclaw/openclaw:latest
USER root
# 安装 tini 进程管理器
RUN curl -fsSL https://github.com/krallin/tini/releases/download/v0.19.0/tini-static -o /home/node/tini && chmod +x /home/node/tini
# 安装 skillhub
RUN curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
RUN cp /root/.local/bin/skillhub /usr/local/bin/skillhub && chmod +x /usr/local/bin/skillhub && mkdir -p /workspace/default && chmod 1777 /workspace/default
# 创建 gateway-watchdog.sh 守护脚本
RUN printf '%s\n' \
'#!/usr/bin/env bash' \
'set -euo pipefail' \
'' \
'while true; do' \
' echo "Starting gateway..."' \
' openclaw gateway --allow-unconfigured' \
' EXIT_CODE=$?' \
' echo "Gateway exited with code $EXIT_CODE, restarting in 2s..."' \
' sleep 2' \
'done' > /usr/local/bin/gateway-watchdog.sh && chmod +x /usr/local/bin/gateway-watchdog.sh
# 替换 SOUL.md 和 IDENTITY.md
COPY SOUL.md /app/docs/reference/templates/SOUL.md
COPY IDENTITY.md /app/docs/reference/templates/IDENTITY.md
# 添加 node-remote-connect skill
COPY node-remote-connect /app/skills/node-remote-connect
# 添加 taiyang skill
COPY taiyang /app/skills/taiyang
# 确保权限正确
RUN chown -R node:node /app/skills/node-remote-connect
RUN chown -R node:node /app/skills/taiyang
USER node
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["/home/node/tini", "--", "/usr/local/bin/gateway-watchdog.sh"]