Henrik Jess Nielsen
d9362d25fd
fix(deploy): revert to sed+Gitea secrets (int node Consul too old for template stanza)
...
Build and Deploy MoneyMaker / build-and-deploy (push) Has been cancelled
Consul template requires >= 1.8.0 on allocation node; int has older version.
Gitea secrets injected via sed at deploy time — no secrets in git.
2026-05-27 09:56:38 +02:00
Henrik Jess Nielsen
2e646eed94
fix(pipeline): HCL resources block must use newlines not semicolons
Build and Deploy MoneyMaker / build-and-deploy (push) Has been cancelled
2026-05-27 09:26:59 +02:00
Henrik Jess Nielsen
044cafecc1
feat(deploy): use Consul KV for secrets via template stanza
...
Build and Deploy MoneyMaker / build-and-deploy (push) Has been cancelled
- Remove sed substitution from pipeline (no more __PLACEHOLDER__ pattern)
- Nomad template{} reads mmd/* keys from Consul KV at allocation time
- Secrets never touch git or pipeline logs
- Remove Gitea secrets dependency for app secrets (only HARBOR_ROBOT_TOKEN needed)
2026-05-27 00:07:32 +02:00
Henrik Jess Nielsen
ec8c0704ee
fix: replace buildx with plain docker build+push
...
Build and Deploy MoneyMaker / build-and-deploy (push) Has been cancelled
buildx is only needed for multi-platform builds.
For a single-platform debian-host runner, plain docker
build + push is simpler and has no permission issues.
Removed:
- docker/setup-buildx-action (EACCES /tmp/buildx/certs)
- docker/build-push-action
- buildx context setup steps
- BUILDX_CONFIG env var
2026-05-26 22:38:18 +02:00
Henrik Jess Nielsen
b040d71dfd
fix: use docker driver for buildx on debian-host runner
...
Build and Deploy MoneyMaker / build-and-deploy (push) Failing after 39s
docker-container driver (default) tries to spin up a BuildKit
container which can fail on host runners. 'driver: docker' uses
the host daemon directly — simpler and more reliable.
2026-05-26 22:36:30 +02:00
Henrik Jess Nielsen
7432ebbaab
fix: use unix socket for docker buildx context on debian-host runner
...
Build and Deploy MoneyMaker / build-and-deploy (push) Has been cancelled
The TCP docker context (tcp://docker:2376/) is for DinD runners.
debian-host uses the host unix socket directly.
2026-05-26 22:34:40 +02:00
Henrik Jess Nielsen
6f1ee72e10
feat: containerize for mmd.i80.dk deployment via Gitea/Nomad
...
Build and Deploy MoneyMaker / build-and-deploy (push) Failing after 15s
- Add Dockerfile (python:3.12-slim, HF_HOME=/app/data/hf-cache)
- Add mmd.nomad (multi-task: web=dashboard, worker=scheduler)
- Add .gitea/workflows/deploy.yml (build->Harbor, deploy->Nomad)
- Add scheduler.py (stdlib scheduler replaces cron in container)
- Add requirements.txt
- dashboard.py: LOG_DIR + PORT/HOST from env vars
- saxo_auth.py: TOKEN_FILE from SAXO_TOKEN_FILE env var
- .gitignore: proper ignores for container project
Volume moneymaker-data (/app/data) holds:
- logs/ (shared between web+worker)
- .saxo_token.json (pre-copy once after first deploy)
- hf-cache/ (HuggingFace FinBERT cache)
Gitea secrets required: DATABASE_URL, ANTHROPIC_API_KEY,
SAXO_APP_KEY, SAXO_APP_SECRET_1, HARBOR_ROBOT_TOKEN
2026-05-26 22:30:38 +02:00