diff --git a/apps/base/osint/README.md b/apps/base/osint/README.md index 3d47d87..e98ba63 100644 --- a/apps/base/osint/README.md +++ b/apps/base/osint/README.md @@ -24,13 +24,19 @@ co-location + local-path PVs). The upstream CI (`.forgejo/workflows/build.yml` in `sirius/osint-dashboard`) builds **arm64** for the Pi via `runs-on: docker`. The cluster is amd64, so the -images above were built on an amd64 host and pushed to the Forgejo registry +cluster images were built on an amd64 host and pushed to the Forgejo registry over a `kubectl -n forgejo port-forward svc/forgejo 3000:3000` (Cloudflare -rejects layer uploads ≳100 MB on the public hostname). +rejects layer uploads ≳100 MB on the public hostname). **Build from a detached +worktree at the merge sha, never from the main checkout** — Legion's +`~/osint-dashboard` sits on a feature branch, and a `docker build` there once +produced a `:amd64-` image that carried the right tag and none of the +commit's code (that tag was deleted from the registry; `-r1` is the real build). ```bash -cd ~/osint-dashboard -SHA=$(git rev-parse --short=12 HEAD) +# from the manifests repo root; build the merge sha, not whatever the checkout has +git -C ~/osint-dashboard fetch origin +git -C ~/osint-dashboard worktree add --detach /tmp/osint-build origin/master +cd /tmp/osint-build && SHA=$(git rev-parse --short=12 HEAD) && TAG="amd64-$SHA" docker build -f Dockerfile -t 127.0.0.1:3000/sirius/osint-dashboard:$TAG . docker build -f news/scraper/Dockerfile -t 127.0.0.1:3000/sirius/osint-news-scraper:$TAG news/scraper docker build -f news/summerizer/Dockerfile -t 127.0.0.1:3000/sirius/osint-news-summarizer:$TAG news/summerizer