Skip to content

Commit 8740dbb

Browse files
committed
fix(v0.4.x): repair Docker image build + finish rename in container files
Two issues caught while inspecting why the v0.4.0 Release Binaries workflow had its Docker step fail: 1. OpenCode upstream changed release asset format. The Dockerfile was curl'ing `opencode_linux_${ARCH}` (single binary, old pattern) but OpenCode now publishes `opencode-linux-${ARCH}.tar.gz` tarballs. The curl returned 404 and the docker build aborted. Fix: pull the tarball, extract the `opencode` binary out of it. 2. Sub-agent A's v0.4.0 rename missed the Docker stack. Updated: - Dockerfile: `mkdir -p /root/.ao` → `mkdir -p /root/.animus` - docker-compose.yaml: service name `ao` → `animus`, image `ghcr.io/launchapp-dev/ao:latest` → `ghcr.io/launchapp-dev/animus:latest`, entrypoint `ao` → `animus`, volume `ao-data:/root/.ao` → `animus-data:/root/.animus`. These will land alongside the discovery-path fix (5651373) and the narrative-doc AO sweep (b6d4c11) as the v0.4.1 patch surface.
1 parent b6d4c11 commit 8740dbb

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,15 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
4040
RUN npm install -g @anthropic-ai/claude-code @openai/codex \
4141
&& npm cache clean --force
4242

43-
# Install OpenCode (Go binary)
43+
# Install OpenCode (tarball asset; pattern changed upstream to opencode-linux-<arch>.tar.gz)
4444
RUN ARCH=$(dpkg --print-architecture) \
45-
&& curl -fsSL "https://github.com/opencode-ai/opencode/releases/latest/download/opencode_linux_${ARCH}" -o /usr/local/bin/opencode \
46-
&& chmod +x /usr/local/bin/opencode
45+
&& curl -fsSL "https://github.com/opencode-ai/opencode/releases/latest/download/opencode-linux-${ARCH}.tar.gz" -o /tmp/opencode.tar.gz \
46+
&& tar -xzf /tmp/opencode.tar.gz -C /usr/local/bin/ opencode \
47+
&& chmod +x /usr/local/bin/opencode \
48+
&& rm /tmp/opencode.tar.gz
4749

48-
# Create .ao directory for state
49-
RUN mkdir -p /root/.ao
50+
# Create Animus state directory
51+
RUN mkdir -p /root/.animus
5052

5153
# Copy binaries from builder
5254
COPY --from=builder /src/target/release/animus /usr/local/bin/animus

docker-compose.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
services:
2-
ao:
2+
animus:
33
build: .
4-
image: ghcr.io/launchapp-dev/ao:latest
5-
entrypoint: ["ao"]
4+
image: ghcr.io/launchapp-dev/animus:latest
5+
entrypoint: ["animus"]
66
command: ["daemon", "start", "--autonomous"]
77
volumes:
8-
- ao-data:/root/.ao
8+
- animus-data:/root/.animus
99
- ./:/workspace
1010
environment:
1111
# Agent API keys — set these in .env or pass at runtime
@@ -16,4 +16,4 @@ services:
1616
restart: unless-stopped
1717

1818
volumes:
19-
ao-data:
19+
animus-data:

0 commit comments

Comments
 (0)