Skip to content

Commit 399128d

Browse files
hyperpolymathclaude
andcommitted
fix(container): keep V vlib co-located with binary; update Zig req to 0.15
V resolves VROOT relative to the real executable path, so vlib must live alongside the v binary. Cloning to /opt/vlang and symlinking the binary (instead of copying and deleting the source) keeps vlib accessible. Also: QUICKSTART-USER.adoc — Zig >= 0.15, remove V prereq, 96 cartridges. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 277d799 commit 399128d

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

QUICKSTART-USER.adoc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ toc::[]
1010

1111
== What is BoJ Server?
1212

13-
Bundle of Joy (BoJ) Server is a cartridge-based MCP protocol gateway. Each cartridge (database-mcp, fleet-mcp, nesy-mcp, etc.) is a formally verified Idris2 ABI + Zig FFI + V-lang adapter triple. The server exposes REST (port 7700), gRPC (7701), and GraphQL (7702) endpoints. 70+ cartridges cover databases, clouds, messaging, CI/CD, and more.
13+
Bundle of Joy (BoJ) Server is a cartridge-based MCP protocol gateway. Each cartridge (database-mcp, fleet-mcp, nesy-mcp, etc.) is a formally verified Idris2 ABI + Zig FFI + unified adapter triple. The server exposes REST (port 7700), gRPC (7701), GraphQL (7702), and SSE (7703) endpoints. 96 cartridges cover databases, clouds, messaging, CI/CD, git forges, secrets, queues, proofs, and more.
1414

1515
Three-class architecture: Class 1 (simple CLI), Class 2 (orchestrator with webhooks/MQTT), Class 3 (BEAM multiplier for global scale).
1616

@@ -25,13 +25,9 @@ Three-class architecture: Class 1 (simple CLI), Class 2 (orchestrator with webho
2525
| `asdf install idris2 latest`
2626

2727
| Zig
28-
| >= 0.13
28+
| >= 0.15
2929
| `asdf install zig latest`
3030

31-
| V (vlang)
32-
| >= 0.4.4
33-
| `asdf install vlang latest`
34-
3531
| just
3632
| >= 1.25
3733
| `cargo install just`

container/Containerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,11 @@ RUN for ffi_dir in /build/cartridges/*/ffi; do \
4747
done
4848

4949
# Build V compiler from source (no Wolfi package available).
50-
# V bootstraps via a small vendored C file — gcc compiles it in seconds,
51-
# then V uses itself to finish the full build (~2 min).
52-
RUN git clone --depth 1 https://github.com/vlang/v /tmp/vlang && \
53-
cd /tmp/vlang && make && \
54-
cp v /usr/local/bin/v && \
55-
rm -rf /tmp/vlang
50+
# V is installed to /opt/vlang so vlib stays co-located with the binary
51+
# (V resolves VROOT relative to the real executable path).
52+
RUN git clone --depth 1 https://github.com/vlang/v /opt/vlang && \
53+
cd /opt/vlang && make && \
54+
ln -sf /opt/vlang/v /usr/local/bin/v
5655

5756
# Compile V adapter binary, linking against all Zig FFI shared libs.
5857
RUN LFLAGS="-L/build/ffi/zig/zig-out/lib" && \

0 commit comments

Comments
 (0)