Files
labuh/Dockerfile
Adnan Zahir 112923640d 0.1.0: first release — review, harbour, Gas, deploys and releases
- Pandu reviews every MR labelled `labuh` through Codex app-server and answers
  in a fixed shape; the Hub checks each piece of evidence, applies hard rules
  the model cannot override, retries once, and posts the comments itself.
- The board shows the harbour: lanes per environment, Dicek / Siap gas /
  Beres, two fixed berth rows, boats that glide; GitLab sign-in, approvers
  from board.json, works on a phone.
- Gas, Tunda, Tolak and Tutup MR with 15 seconds to undo; the Hub checks
  GitLab again and merges the reviewed commit only, then follows the deploy.
- Branches that deploy from tags get a proposed version and changelog; the
  approver confirms the number and the Hub creates the annotated tag.
- Telegram notifications, reminders, dry mode for rehearsals.
- Hosting: one image, three containers. The reviewer runs in its own container
  with no GitLab token and read-only checkouts, reached by the Hub over a
  token-guarded WebSocket; every command it asks for still passes the Hub's
  allowlist. Configuration and state live in LABUH_HOME.
- AGPL-3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 19:39:58 +07:00

23 lines
1.0 KiB
Docker

# Labuh: one image for the Hub, the board and the reviewer (Codex app-server). The Hub and the
# board keep configuration and state on /data; the reviewer gets no GitLab token (compose.yaml).
FROM node:24-bookworm-slim
ARG TARGETARCH
ARG GLAB_VERSION=1.102.0
ARG CODEX_VERSION=0.167.0
RUN apt-get update && apt-get install -y --no-install-recommends git ca-certificates curl \
&& curl -fsSL -o /tmp/glab.deb "https://gitlab.com/gitlab-org/cli/-/releases/v${GLAB_VERSION}/downloads/glab_${GLAB_VERSION}_linux_${TARGETARCH}.deb" \
&& apt-get install -y /tmp/glab.deb && rm /tmp/glab.deb \
&& apt-get purge -y curl && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* \
&& npm install -g --no-audit --no-fund @openai/codex@${CODEX_VERSION} && npm cache clean --force \
&& mkdir /data /codex && chown node /data /codex
WORKDIR /app
COPY package.json LICENSE ./
COPY src ./src
COPY board ./board
COPY rubric ./rubric
USER node
ENV LABUH_HOME=/data
VOLUME /data
EXPOSE 4810 4820
CMD ["node", "--disable-warning=ExperimentalWarning", "src/hub-cli.ts", "run"]