Skip to content

Commit 2dec26b

Browse files
author
techartdev
committed
Add Homebrew installation for OpenClaw skill dependencies and update version to 0.5.29
1 parent 261ad00 commit 2dec26b

3 files changed

Lines changed: 28 additions & 1 deletion

File tree

openclaw_assistant/Dockerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,29 @@ RUN ARCH=$(echo ${TARGETARCH:-$(dpkg --print-architecture)} | sed 's|arm64|aarch
4040

4141
RUN node -v && npm -v
4242

43+
# Install Homebrew (Linuxbrew) for OpenClaw skill dependencies
44+
# Homebrew is required for installing CLI tools like gemini, aider, etc.
45+
ENV HOMEBREW_NO_AUTO_UPDATE=1 \
46+
HOMEBREW_NO_INSTALL_CLEANUP=1 \
47+
HOMEBREW_NO_ANALYTICS=1
48+
49+
RUN useradd -m -s /bin/bash linuxbrew \
50+
&& mkdir -p /home/linuxbrew/.linuxbrew \
51+
&& chown -R linuxbrew:linuxbrew /home/linuxbrew
52+
53+
USER linuxbrew
54+
RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
55+
USER root
56+
57+
# Add Homebrew to PATH for all users
58+
ENV PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:${PATH}"
59+
60+
# Verify brew is available and install gcc (needed for compiling some brew packages)
61+
# Must run as linuxbrew user - Homebrew refuses to run as root
62+
USER linuxbrew
63+
RUN brew --version && brew install gcc
64+
USER root
65+
4366
# Install OpenClaw globally
4467
RUN npm config set fund false && npm config set audit false \
4568
&& npm install -g openclaw@2026.1.30

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.28"
2+
version: "0.5.29"
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
# Ensure Homebrew and brew-installed binaries are in PATH
5+
# This is needed for OpenClaw skills that depend on CLI tools (gemini, aider, etc.)
6+
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:${PATH}"
7+
48
# Home Assistant add-on options are usually rendered to /data/options.json
59
OPTIONS_FILE="/data/options.json"
610

0 commit comments

Comments
 (0)