From 626d157a3f9888bc0b6f5eac138bc4555fcc85ca Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:04:05 +0200 Subject: [PATCH 1/8] Fix OpenClaw install on Alpine: add build tools + xpm; bump add-on to 0.5.16 --- openclaw_assistant/Dockerfile | 8 +++++++- openclaw_assistant/config.yaml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 0167a1f..02ee019 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -22,7 +22,10 @@ RUN apk add --no-cache \ pax-utils \ python3 \ nginx \ - ttyd + ttyd \ + # Build tools (needed for native deps like node-llama-cpp on Alpine/musl) + build-base \ + cmake # Install Node.js 22+ (musl build) from unofficial builds. # Router/base image Alpine may ship an older libstdc++; we pull a newer libstdc++ from edge to satisfy Node's C++ symbols. @@ -43,8 +46,11 @@ RUN set -eu; \ /usr/local/bin/node -v; /usr/local/bin/npm -v # Install OpenClaw globally +# NOTE: On Alpine/musl, optional native deps may still attempt to build. +# We include build tools above to avoid install-time failures. RUN npm config set fund false && npm config set audit false \ && npm config set omit optional \ + && npm install -g xpm@0.16.3 \ && NPM_CONFIG_OMIT=optional npm install -g --omit=optional openclaw@2026.1.30 COPY run.sh /run.sh diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 294c16c..de37044 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.15" +version: "0.5.16" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant From 5d707fab62844437c8dc56f3c872460bd967322f Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:07:26 +0200 Subject: [PATCH 2/8] Docker: pin apk repositories for build deps (cmake/build-base); bump add-on to 0.5.17 --- openclaw_assistant/Dockerfile | 4 ++++ openclaw_assistant/config.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 02ee019..5313f71 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -5,7 +5,11 @@ FROM ${BUILD_FROM} # OpenClaw requires Node 20+, so we install a Node 20 musl build directly. ARG NODE_VERSION=22.12.0 +# NOTE: HA add-on base images sometimes ship with a limited /etc/apk/repositories. +# We explicitly enable Alpine main+community to ensure cmake/build-base are available. RUN apk add --no-cache \ + --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/main \ + --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/community \ bash \ git \ openssh-client \ diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index de37044..e46cc53 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.16" +version: "0.5.17" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant From 32d4536b44f04fc8c2431f0a57630ca55d117fc1 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:10:32 +0200 Subject: [PATCH 3/8] Fix OpenClaw install: force-skip optional deps (no native builds); bump add-on to 0.5.18 --- openclaw_assistant/Dockerfile | 18 ++++++------------ openclaw_assistant/config.yaml | 2 +- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 5313f71..48778fa 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -5,11 +5,7 @@ FROM ${BUILD_FROM} # OpenClaw requires Node 20+, so we install a Node 20 musl build directly. ARG NODE_VERSION=22.12.0 -# NOTE: HA add-on base images sometimes ship with a limited /etc/apk/repositories. -# We explicitly enable Alpine main+community to ensure cmake/build-base are available. RUN apk add --no-cache \ - --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/main \ - --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/community \ bash \ git \ openssh-client \ @@ -26,10 +22,7 @@ RUN apk add --no-cache \ pax-utils \ python3 \ nginx \ - ttyd \ - # Build tools (needed for native deps like node-llama-cpp on Alpine/musl) - build-base \ - cmake + ttyd # Install Node.js 22+ (musl build) from unofficial builds. # Router/base image Alpine may ship an older libstdc++; we pull a newer libstdc++ from edge to satisfy Node's C++ symbols. @@ -50,12 +43,13 @@ RUN set -eu; \ /usr/local/bin/node -v; /usr/local/bin/npm -v # Install OpenClaw globally -# NOTE: On Alpine/musl, optional native deps may still attempt to build. -# We include build tools above to avoid install-time failures. +# IMPORTANT: OpenClaw declares some native packages as optionalDependencies. +# On HAOS/Alpine we want to skip them to avoid install-time native builds. RUN npm config set fund false && npm config set audit false \ + && npm config set optional false \ && npm config set omit optional \ - && npm install -g xpm@0.16.3 \ - && NPM_CONFIG_OMIT=optional npm install -g --omit=optional openclaw@2026.1.30 + && NPM_CONFIG_OPTIONAL=false NPM_CONFIG_OMIT=optional \ + npm install -g --omit=optional --no-optional openclaw@2026.1.30 COPY run.sh /run.sh COPY nginx.conf.tpl /etc/nginx/nginx.conf.tpl diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index e46cc53..bb47721 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.17" +version: "0.5.18" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant From 087a91555bab061184dd756c463faa92567db142 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:14:00 +0200 Subject: [PATCH 4/8] Fix npm optional flags (remove deprecated config); bump add-on to 0.5.19 --- openclaw_assistant/Dockerfile | 6 ++---- openclaw_assistant/config.yaml | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 48778fa..9dbace5 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -44,12 +44,10 @@ RUN set -eu; \ # Install OpenClaw globally # IMPORTANT: OpenClaw declares some native packages as optionalDependencies. -# On HAOS/Alpine we want to skip them to avoid install-time native builds. +# On HAOS/Alpine we skip optional deps to avoid install-time native builds. RUN npm config set fund false && npm config set audit false \ - && npm config set optional false \ && npm config set omit optional \ - && NPM_CONFIG_OPTIONAL=false NPM_CONFIG_OMIT=optional \ - npm install -g --omit=optional --no-optional openclaw@2026.1.30 + && NPM_CONFIG_OMIT=optional npm install -g --omit=optional openclaw@2026.1.30 COPY run.sh /run.sh COPY nginx.conf.tpl /etc/nginx/nginx.conf.tpl diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index bb47721..903c6ea 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.18" +version: "0.5.19" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant From 6e3bdbf5732143c37f5d65ca08a493cb836c0054 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:18:51 +0200 Subject: [PATCH 5/8] Fix build: add make/cmake + xpm for node-llama-cpp; bump add-on to 0.5.20 --- openclaw_assistant/Dockerfile | 11 ++++++++--- openclaw_assistant/config.yaml | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 9dbace5..a36eec5 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -5,7 +5,10 @@ FROM ${BUILD_FROM} # OpenClaw requires Node 20+, so we install a Node 20 musl build directly. ARG NODE_VERSION=22.12.0 +# Base image may not include community repo; cmake lives there. RUN apk add --no-cache \ + --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/main \ + --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/community \ bash \ git \ openssh-client \ @@ -22,7 +25,9 @@ RUN apk add --no-cache \ pax-utils \ python3 \ nginx \ - ttyd + ttyd \ + make \ + cmake # Install Node.js 22+ (musl build) from unofficial builds. # Router/base image Alpine may ship an older libstdc++; we pull a newer libstdc++ from edge to satisfy Node's C++ symbols. @@ -46,8 +51,8 @@ RUN set -eu; \ # IMPORTANT: OpenClaw declares some native packages as optionalDependencies. # On HAOS/Alpine we skip optional deps to avoid install-time native builds. RUN npm config set fund false && npm config set audit false \ - && npm config set omit optional \ - && NPM_CONFIG_OMIT=optional npm install -g --omit=optional openclaw@2026.1.30 + && npm install -g xpm@0.16.3 \ + && npm install -g openclaw@2026.1.30 COPY run.sh /run.sh COPY nginx.conf.tpl /etc/nginx/nginx.conf.tpl diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 903c6ea..6192e59 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.19" +version: "0.5.20" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant From 4353c82f03131ec51f89365ae39fffd952ce0d18 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:27:39 +0200 Subject: [PATCH 6/8] Fix build: add compiler toolchain for node-llama-cpp (build-base, linux-headers); bump add-on to 0.5.21 --- openclaw_assistant/Dockerfile | 4 +++- openclaw_assistant/config.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index a36eec5..83eab75 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -27,7 +27,9 @@ RUN apk add --no-cache \ nginx \ ttyd \ make \ - cmake + cmake \ + build-base \ + linux-headers # Install Node.js 22+ (musl build) from unofficial builds. # Router/base image Alpine may ship an older libstdc++; we pull a newer libstdc++ from edge to satisfy Node's C++ symbols. diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 6192e59..d674fbf 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.20" +version: "0.5.21" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant From ea3b7e99810af1fd6195b900ded228a1505dcfc8 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:31:39 +0200 Subject: [PATCH 7/8] Fix apk musl conflict: derive Alpine repo version dynamically; bump add-on to 0.5.22 --- openclaw_assistant/Dockerfile | 13 +++++++++---- openclaw_assistant/config.yaml | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 83eab75..d397907 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -5,10 +5,15 @@ FROM ${BUILD_FROM} # OpenClaw requires Node 20+, so we install a Node 20 musl build directly. ARG NODE_VERSION=22.12.0 -# Base image may not include community repo; cmake lives there. -RUN apk add --no-cache \ - --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/main \ - --repository=https://dl-cdn.alpinelinux.org/alpine/v3.18/community \ +# Base image is Alpine, but its exact patch-level varies. +# Do NOT hardcode v3.xx repos (can cause musl/musl-dev conflicts). +# Instead, derive the repo version from /etc/alpine-release at build time. +RUN set -eu; \ + ALPINE_VER="$(cut -d. -f1,2 /etc/alpine-release)"; \ + echo "Using Alpine repos for v${ALPINE_VER}"; \ + apk add --no-cache \ + --repository="https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/main" \ + --repository="https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/community" \ bash \ git \ openssh-client \ diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index d674fbf..373814b 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.21" +version: "0.5.22" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant From a12c4a5912f00b91172e43ee9e1e863ca1df1f9b Mon Sep 17 00:00:00 2001 From: root Date: Sun, 1 Feb 2026 03:35:52 +0200 Subject: [PATCH 8/8] Revert bundled OpenClaw to 2026.1.29 (avoid node-llama-cpp build failures); simplify Dockerfile; bump add-on to 0.5.23 --- openclaw_assistant/Dockerfile | 21 +++------------------ openclaw_assistant/config.yaml | 2 +- 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index d397907..e460de4 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -5,15 +5,7 @@ FROM ${BUILD_FROM} # OpenClaw requires Node 20+, so we install a Node 20 musl build directly. ARG NODE_VERSION=22.12.0 -# Base image is Alpine, but its exact patch-level varies. -# Do NOT hardcode v3.xx repos (can cause musl/musl-dev conflicts). -# Instead, derive the repo version from /etc/alpine-release at build time. -RUN set -eu; \ - ALPINE_VER="$(cut -d. -f1,2 /etc/alpine-release)"; \ - echo "Using Alpine repos for v${ALPINE_VER}"; \ - apk add --no-cache \ - --repository="https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/main" \ - --repository="https://dl-cdn.alpinelinux.org/alpine/v${ALPINE_VER}/community" \ +RUN apk add --no-cache \ bash \ git \ openssh-client \ @@ -30,11 +22,7 @@ RUN set -eu; \ pax-utils \ python3 \ nginx \ - ttyd \ - make \ - cmake \ - build-base \ - linux-headers + ttyd # Install Node.js 22+ (musl build) from unofficial builds. # Router/base image Alpine may ship an older libstdc++; we pull a newer libstdc++ from edge to satisfy Node's C++ symbols. @@ -55,11 +43,8 @@ RUN set -eu; \ /usr/local/bin/node -v; /usr/local/bin/npm -v # Install OpenClaw globally -# IMPORTANT: OpenClaw declares some native packages as optionalDependencies. -# On HAOS/Alpine we skip optional deps to avoid install-time native builds. RUN npm config set fund false && npm config set audit false \ - && npm install -g xpm@0.16.3 \ - && npm install -g openclaw@2026.1.30 + && npm install -g openclaw@2026.1.29 COPY run.sh /run.sh COPY nginx.conf.tpl /etc/nginx/nginx.conf.tpl diff --git a/openclaw_assistant/config.yaml b/openclaw_assistant/config.yaml index 373814b..39cde69 100644 --- a/openclaw_assistant/config.yaml +++ b/openclaw_assistant/config.yaml @@ -1,5 +1,5 @@ name: OpenClaw Assistant -version: "0.5.22" +version: "0.5.23" slug: openclaw_assistant description: Run OpenClaw Assistant (OpenClaw-compatible) as a Home Assistant add-on. url: https://github.com/techartdev/OpenClawHomeAssistant