Fix first-run check: gbrain writes config under $GBRAIN_HOME/.gbrain/ #3

Merged
Jriyuu merged 1 commit from fix/entrypoint-gbrain-home-check into main 2026-10-02 09:38:20 +10:00
Member

The container idled forever after gbrain init: the first-run check looked for $GBRAIN_HOME/config.json, but gbrain treats GBRAIN_HOME like a home dir and writes its config under $GBRAIN_HOME/.gbrain/. Now treats the container as initialised if EITHER path exists.

Caught during the gideon-pi deploy. Verified with bash -n.

The container idled forever after `gbrain init`: the first-run check looked for `$GBRAIN_HOME/config.json`, but gbrain treats GBRAIN_HOME like a home dir and writes its config under `$GBRAIN_HOME/.gbrain/`. Now treats the container as initialised if EITHER path exists. Caught during the gideon-pi deploy. Verified with `bash -n`.
Fix first-run check: gbrain writes config under $GBRAIN_HOME/.gbrain/
All checks were successful
Build and push Docker image / build-arm64 (pull_request) Successful in 56s
Build and push Docker image / build-amd64 (pull_request) Successful in 1m0s
Build and push Docker image / merge-manifest (pull_request) Has been skipped
3056947f7f
gbrain treats GBRAIN_HOME like a home dir and writes its config at
$GBRAIN_HOME/.gbrain/config.json (not $GBRAIN_HOME/config.json). The old
check never saw a config after 'gbrain init', so the container idled
forever instead of serving. Now treats initialised if EITHER location
exists (works whether gbrain uses .gbrain/ or the bare dir).

Caught during the gideon-pi deploy.
Jriyuu merged commit ae3fa50bf4 into main 2026-10-02 09:38:20 +10:00
Jriyuu deleted branch fix/entrypoint-gbrain-home-check 2026-10-03 13:05:59 +10:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jriyuu-labs/gbrain!3
No description provided.