Phase 10: new course and Docker only

Record the course the user chose on 2 December 2026 and make the
container the only form of Anubis.

- ADR 0021-0026: new roadmap (phases 10-24, readings per phase, the
  spec-to-ADR table, merge and tag only after the user's yes),
  Docker only, maths-only decisions, bans turned into limits on margin
  accounts, eToro Demo as currency venue and forward tests, strategy
  championship. ROADMAP rewritten from phase 10; STATE, CLAUDE.md,
  SVILUPPO, README, API-NOTES and the manuals without the desktop.
- Remove the desktop: Anubis.Desktop, Anubis.Setup, deploy/windows,
  release-win and desktop-win, config.toml, PlatformKind,
  ANUBIS_PLATFORM, DPAPI with the ProtectedData package and the
  first-run wizard. Outside a container the server needs --data-dir,
  listens on 127.0.0.1 only and refuses foreign hosts; server and guard
  refuse --platform desktop with an Italian message and exit code 2.
  The demo keeps its key in a file and its error-page choices need no
  startup password. The diagnostics report says where the server runs
  from its own environment.
- Lighter image: restore and publish for linux-x64 only, and leave out
  the Windows libraries ONNX Runtime copies anyway (829 MB to 410 MB on
  disk, /app from 282 MB to 42 MB). Rotating Docker logs in the Unraid
  template, the manual and the compose; backtest and learning run as
  one-shot commands. tasks dev uses artifacts/dev-data.

refs #113 #114 #115 #78 #80 #81

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-12-03 17:35:17 +01:00
1 parent 3c57b3e84c
commit e9ac6dccc9
95 files changed
+1426 -1604

No files matched your search

+11 -8
View File
@@ -3,12 +3,13 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY global.json Directory.Build.props Directory.Packages.props ./
COPY global.json Directory.Build.props Directory.Build.targets Directory.Packages.props ./
COPY src/Anubis/Anubis.csproj src/Anubis/packages.lock.json src/Anubis/
COPY src/Anubis.Server/Anubis.Server.csproj src/Anubis.Server/packages.lock.json src/Anubis.Server/
COPY src/Anubis.Guard/Anubis.Guard.csproj src/Anubis.Guard/packages.lock.json src/Anubis.Guard/
RUN dotnet restore src/Anubis.Server/Anubis.Server.csproj --locked-mode && \
dotnet restore src/Anubis.Guard/Anubis.Guard.csproj --locked-mode
# Only Linux x64 (ADR 0022): the native libraries of the other platforms stay out of the image.
RUN dotnet restore src/Anubis.Server/Anubis.Server.csproj -r linux-x64 --locked-mode && \
dotnet restore src/Anubis.Guard/Anubis.Guard.csproj -r linux-x64 --locked-mode
COPY src/Anubis/ src/Anubis/
COPY src/Anubis.Server/ src/Anubis.Server/
COPY src/Anubis.Guard/ src/Anubis.Guard/
@@ -19,17 +20,19 @@ COPY docs/backtests/ docs/backtests/
COPY docs/learning/ docs/learning/
# The commit goes into the version shown by the diagnostics report; empty when not given.
ARG ANUBIS_COMMIT=
RUN dotnet publish src/Anubis.Server/Anubis.Server.csproj -c Release --no-restore -o /app ${ANUBIS_COMMIT:+-p:SourceRevisionId=$ANUBIS_COMMIT}
RUN dotnet publish src/Anubis.Server/Anubis.Server.csproj -c Release -r linux-x64 --self-contained false --no-restore -o /app ${ANUBIS_COMMIT:+-p:SourceRevisionId=$ANUBIS_COMMIT}
# The guard (SPEC 9.3, ADR 0012) is the main process and starts the engine next to it, from the same folder.
RUN dotnet publish src/Anubis.Guard/Anubis.Guard.csproj -c Release --no-restore -o /app ${ANUBIS_COMMIT:+-p:SourceRevisionId=$ANUBIS_COMMIT}
RUN dotnet publish src/Anubis.Guard/Anubis.Guard.csproj -c Release -r linux-x64 --self-contained false --no-restore -o /app ${ANUBIS_COMMIT:+-p:SourceRevisionId=$ANUBIS_COMMIT}
# No Windows library in /app (Directory.Build.targets): if one comes back, the image does not build.
RUN if ls /app | grep -qiE '^onnxruntime.*\.dll$'; then echo "Librerie di Windows in /app" >&2; exit 1; fi
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
COPY --from=build /app ./
COPY --chmod=755 deploy/docker/entrypoint.sh /usr/local/bin/anubis-entrypoint
# The port comes from PORT (8787 by default), read by the app; the base image's own port setting is cleared.
ENV ANUBIS_PLATFORM=docker \
ASPNETCORE_HTTP_PORTS= \
# The port comes from PORT (8787 by default), read by the app; the base image's own port setting is cleared. The base
# image also sets DOTNET_RUNNING_IN_CONTAINER=true: server and guard know by themselves they are in the container (ADR 0022).
ENV ASPNETCORE_HTTP_PORTS= \
TZ=Europe/Rome \
PUID=99 \
PGID=100
+1 -1
View File
@@ -11,7 +11,7 @@ app="/app/Anubis.Guard.dll"
# A command ("docker run <immagine> db import ...") runs once and ends: without the guard, which would start it again.
case "${1:-}" in
db|access|data|diagnostics|soak)
db|access|data|backtest|learning|diagnostics|soak)
app="/app/Anubis.Server.dll"
;;
esac