## Summary C2 Mikado chain to deploy [JobSync](https://github.com/Gsync/jobsync) — a self-hosted job application tracker — to ringtail's k3s cluster. ### Mikado Graph ``` deploy-jobsync (goal) ├── build-jobsync-container │ └── mirror-jobsync └── integrate-jobsync-ollama ``` ### What is JobSync? Next.js app with SQLite for tracking job applications. Features resume management, application pipeline tracking, and AI-powered resume review/job matching. ### Key Decisions - **Ringtail k3s** (not minikube-indri) — colocates with Ollama for zero-latency AI - **Nix container** via `buildLayeredImage` — no Dockerfile, mirrors upstream source on forge - **Ollama for AI** — uses existing deployment, no API keys needed for AI features - **No upstream fork** — vanilla JobSync, Anthropic AI deferred to future work if needed ### Current Status Planning phase — cards committed, ready for review before implementation begins. Reviewed-on: #288
15 lines
462 B
Bash
15 lines
462 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
# Auto-generate AUTH_SECRET if not provided
|
|
if [ -z "$AUTH_SECRET" ]; then
|
|
AUTH_SECRET="$(node -e "console.log(require('crypto').randomBytes(32).toString('base64'))")"
|
|
export AUTH_SECRET
|
|
echo "AUTH_SECRET was not set — generated a temporary secret for this container."
|
|
fi
|
|
|
|
# Run Prisma migrations (npx -y downloads prisma if not in local node_modules)
|
|
npx -y prisma@6.19.0 migrate deploy
|
|
|
|
# Start the Next.js server
|
|
exec node server.js
|