Update Dockerfile and configuration for OpenClaw Assistant
- Added vim and nano to the Dockerfile for improved editing capabilities. - Bumped version to 0.5.33 in config.yaml. - Set OpenClaw directories in run.sh to ensure persistence across updates.
This commit is contained in:
@@ -22,6 +22,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
gnupg \
|
gnupg \
|
||||||
build-essential \
|
build-essential \
|
||||||
sudo \
|
sudo \
|
||||||
|
vim \
|
||||||
|
nano \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
name: OpenClaw Assistant
|
name: OpenClaw Assistant
|
||||||
version: "0.5.32"
|
version: "0.5.33"
|
||||||
slug: openclaw_assistant
|
slug: openclaw_assistant
|
||||||
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
|
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
|
||||||
url: https://github.com/techartdev/OpenClawHomeAssistant
|
url: https://github.com/techartdev/OpenClawHomeAssistant
|
||||||
|
|||||||
@@ -43,6 +43,13 @@ set +x
|
|||||||
|
|
||||||
# HA add-ons mount persistent storage at /config (maps to /addon_configs/<slug> on the host).
|
# HA add-ons mount persistent storage at /config (maps to /addon_configs/<slug> on the host).
|
||||||
export HOME=/config
|
export HOME=/config
|
||||||
|
|
||||||
|
# Explicitly set OpenClaw directories to ensure they persist across add-on updates
|
||||||
|
# This prevents loss of installed skills, configuration, and workspace state
|
||||||
|
export OPENCLAW_CONFIG_DIR=/config/.openclaw
|
||||||
|
export OPENCLAW_WORKSPACE_DIR=/config/clawd
|
||||||
|
export XDG_CONFIG_HOME=/config
|
||||||
|
|
||||||
mkdir -p /config/.openclaw /config/clawd /config/keys /config/secrets
|
mkdir -p /config/.openclaw /config/clawd /config/keys /config/secrets
|
||||||
|
|
||||||
# Back-compat: some docs/scripts assume /data; point it at /config.
|
# Back-compat: some docs/scripts assume /data; point it at /config.
|
||||||
@@ -185,6 +192,11 @@ cfg = {
|
|||||||
"mode": "token",
|
"mode": "token",
|
||||||
"token": secrets.token_urlsafe(24)
|
"token": secrets.token_urlsafe(24)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"agents": {
|
||||||
|
"defaults": {
|
||||||
|
"workspace": "/config/clawd"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user