Fix docker build: entrypoint case, optional SYNC_CMD, portable CI owner #1

Merged
Jriyuu merged 1 commit from fix/docker-entrypoint-case into main 2026-10-01 13:40:14 +10:00
Member

Blocks every docker build and one runtime crash. Three changes:

  1. Entrypoint.sh -> entrypoint.sh (rename) — the Dockerfile does COPY entrypoint.sh; Docker COPY is case-sensitive on Linux, so every build failed with file-not-found.
  2. entrypoint: SYNC_CMD is now optional — with set -u, an unset SYNC_CMD crashed the container the first time it started already-initialised. Now: no SYNC_CMD = serve only; with it = sync loop (default interval 900s, unchanged).
  3. build.yml: owner from GITHUB_REPOSITORY instead of github.repository_owner — less context-dependent across act-based CI; image name is unchanged (nidavellir.jriyuu.io/jriyuu-labs/gbrain).
  4. README — image tags, first-run init flow (idle until gbrain init, then docker restart), sync loop usage.
Blocks every docker build and one runtime crash. Three changes: 1. **`Entrypoint.sh` -> `entrypoint.sh`** (rename) — the Dockerfile does `COPY entrypoint.sh`; Docker COPY is case-sensitive on Linux, so every build failed with file-not-found. 2. **entrypoint: `SYNC_CMD` is now optional** — with `set -u`, an unset `SYNC_CMD` crashed the container the first time it started already-initialised. Now: no `SYNC_CMD` = serve only; with it = sync loop (default interval 900s, unchanged). 3. **build.yml: owner from `GITHUB_REPOSITORY`** instead of `github.repository_owner` — less context-dependent across act-based CI; image name is unchanged (`nidavellir.jriyuu.io/jriyuu-labs/gbrain`). 4. **README** — image tags, first-run init flow (idle until `gbrain init`, then `docker restart`), sync loop usage.
- Rename Entrypoint.sh -> entrypoint.sh: Dockerfile COPY was
  case-mismatched, which fails every build on Linux
- entrypoint: make SYNC_CMD optional (was a set -u crash on first
  started-up run after init); no SYNC_CMD = serve only
- build.yml: derive repo owner from GITHUB_REPOSITORY instead of
  github.repository_owner (portable across act-based CI)
- README: document image tags, first-run init flow, sync loop
Jriyuu merged commit 0b9e37325a into main 2026-10-01 13:40:14 +10:00
Jriyuu deleted branch fix/docker-entrypoint-case 2026-10-03 13:05:48 +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!1
No description provided.