Skip to content

Commit e6d6f62

Browse files
author
techartdev
committed
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.
1 parent 5000cc9 commit e6d6f62

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

openclaw_assistant/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2222
gnupg \
2323
build-essential \
2424
sudo \
25+
vim \
26+
nano \
2527
&& apt-get clean \
2628
&& rm -rf /var/lib/apt/lists/*
2729

openclaw_assistant/config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: OpenClaw Assistant
2-
version: "0.5.32"
2+
version: "0.5.33"
33
slug: openclaw_assistant
44
description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on.
55
url: https://github.com/techartdev/OpenClawHomeAssistant

openclaw_assistant/run.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ set +x
4343

4444
# HA add-ons mount persistent storage at /config (maps to /addon_configs/<slug> on the host).
4545
export HOME=/config
46+
47+
# Explicitly set OpenClaw directories to ensure they persist across add-on updates
48+
# This prevents loss of installed skills, configuration, and workspace state
49+
export OPENCLAW_CONFIG_DIR=/config/.openclaw
50+
export OPENCLAW_WORKSPACE_DIR=/config/clawd
51+
export XDG_CONFIG_HOME=/config
52+
4653
mkdir -p /config/.openclaw /config/clawd /config/keys /config/secrets
4754

4855
# Back-compat: some docs/scripts assume /data; point it at /config.
@@ -185,6 +192,11 @@ cfg = {
185192
"mode": "token",
186193
"token": secrets.token_urlsafe(24)
187194
}
195+
},
196+
"agents": {
197+
"defaults": {
198+
"workspace": "/config/clawd"
199+
}
188200
}
189201
}
190202

0 commit comments

Comments
 (0)