CI / CI (push) Successful in 5m52s
## Summary
Rewrite all portfolio cards for 6-second HR scannability and add a dedicated Poimen Memory deep dive page.
## Changes
### Timeline Cards (all 6 rewritten)
- **Poimen (Ποιμήν)** — NEW card. Graph-RAG memory + Temporal workflow pillars
- **riotpiao.com** — 5 sections: Infrastructure, GitOps, Security, Observability, AI/ML
- **RBC** — State migration (500+ files, zero corruption), drift detection (3wk → <24hr), 3× velocity
- **AWS** — Distributed-Map ownership (57+ regions, sub-100ms P99), Redrive Execution launch
- **Titus** — 97.8% accuracy, 28% P99 improvement, 5× deployment speed
- **NAV Canada** — ATC weather briefing (ReactJS), Django, SonarQube
### Project Cards
- Reorder: **Poimen Orchestration → Memory → Homelab** → RBC → AWS
- Homelab: production-grade framing, "Explore the Architecture →"
- Poimen: etymology intro ("shepherd"), connected narrative across cards
- All cards use `dangerouslySetInnerHTML` for **bold** framework names
### Poimen Memory Page (`/poimen/memory`)
- Hero: "Teaching the Shepherd to Remember"
- 🏗️ Architecture diagram — Rust microservice, actix-web, Authentik JWT, pgvector
- 🔄 Dataflow diagram — episode → entity/fact extraction → temporal graph
- ⚡ Sequence diagram — async ingest lifecycle (202 accepted, background LLM pipeline)
- Three-tier retrieval cards: signature match (50ms), graph-boosted hybrid, Obsidian fallback
- Technology stack grid (Rust, pgvector, Ollama, TEI, Authentik, K8s)
### CI & Build Fixes
- API allowlist updated for `riotpiao-poimen/` org repos
- Commit SHA: `NEXT_PUBLIC_COMMIT_SHA` in Dockerfile + `--build-arg` in CI workflow
- ExperienceTimeline CI badges wired for Poimen + Homelab repos
## Files Changed
- `lib/translations.json` — all card content (EN + ZH)
- `app/page.tsx` — project order, deepDive links, ciRepos mapping
- `app/poimen/memory/page.tsx` — NEW deep dive page
- `components/ExperienceTimeline.tsx` — Poimen card, HTML rendering, CI badges
- `app/api/ci-status/route.ts` — allowlist for riotpiao-poimen org
- `Dockerfile` + `.gitea/workflows/build-push.yml` — SHA fix
- `public/poimen-memory/` — 3 archify diagrams (architecture, dataflow, sequence)
---------
Co-authored-by: poimen <[email protected]>
Reviewed-on: #14
50 lines
1012 B
Docker
50 lines
1012 B
Docker
# Build stage
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Copy package files
|
|
COPY package.json pnpm-lock.yaml ./
|
|
|
|
# Install pnpm
|
|
RUN npm install -g pnpm
|
|
|
|
# Install dependencies (skip build scripts - sharp will use wasm fallback)
|
|
RUN pnpm install --frozen-lockfile --ignore-scripts
|
|
|
|
# Copy source
|
|
COPY . .
|
|
|
|
# Pass commit SHA at build time
|
|
ARG COMMIT_SHA=dev
|
|
ENV NEXT_PUBLIC_COMMIT_SHA=${COMMIT_SHA}
|
|
|
|
# Build Next.js app
|
|
RUN pnpm run build
|
|
|
|
# Production stage
|
|
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Install dumb-init for proper signal handling
|
|
RUN apk add --no-cache dumb-init
|
|
|
|
# Create non-root user
|
|
RUN addgroup -g 1001 -S nodejs && \
|
|
adduser -S nextjs -u 1001
|
|
|
|
# Copy built app from builder
|
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
|
COPY --from=builder --chown=nextjs:nodejs /app/public ./public
|
|
|
|
USER nextjs
|
|
|
|
EXPOSE 3000
|
|
|
|
ENV NODE_ENV=production
|
|
|
|
ENTRYPOINT ["dumb-init", "--"]
|
|
CMD ["node", "server.js"]
|