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:
1 parent
3c57b3e84c
commit
e9ac6dccc9
95 files changed
+1426
-1604
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<WebUI>http://[IP]:[PORT:8787]/</WebUI>
|
||||
<TemplateURL/>
|
||||
<Icon>https://gitea.encke-hake.ts.net/BalboSoft/Anubis/raw/branch/main/deploy/unraid/anubis-icon.png</Icon>
|
||||
<ExtraParams>--restart unless-stopped --memory=4g --stop-timeout 60</ExtraParams>
|
||||
<ExtraParams>--restart unless-stopped --memory=4g --stop-timeout 60 --log-opt max-size=10m --log-opt max-file=3</ExtraParams>
|
||||
<Requires>Con PostgreSQL: un database vuoto e un utente dedicato, raggiungibili dal container.</Requires>
|
||||
|
||||
<Config Name="Porta dell'interfaccia" Target="8787" Default="8787" Mode="tcp" Description="Porta su cui si apre l'interfaccia web." Type="Port" Display="always" Required="true" Mask="false">8787</Config>
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
@echo off
|
||||
rem Starts Anubis on this computer (desktop platform) and opens it in the browser. ADR 0013, point 6.
|
||||
cd /d "%~dp0"
|
||||
echo Anubis si avvia su http://localhost:8787
|
||||
echo Questa finestra resta aperta mentre il bot lavora. Per fermarlo premi Ctrl+C.
|
||||
start "" /b cmd /c "timeout /t 8 /nobreak >/dev/null & start http://localhost:8787"
|
||||
"%~dp0Anubis.Server.exe" --platform desktop
|
||||
if errorlevel 1 pause
|
||||
@@ -1,44 +0,0 @@
|
||||
ANUBIS - versione di prova per Windows
|
||||
======================================
|
||||
|
||||
Che cos'è
|
||||
---------
|
||||
Il bot di trading Anubis da far girare sul tuo computer per qualche giorno.
|
||||
Lavora solo in simulazione e sui conti di prova: non può usare soldi veri.
|
||||
Raccoglie da solo i dati per l'analisi (memoria, lavori, chiamate, errori),
|
||||
così chi segue lo sviluppo può capire come si è comportato.
|
||||
|
||||
Cosa serve
|
||||
----------
|
||||
Il runtime ASP.NET Core 10 di Microsoft. Se hai già l'SDK .NET 10, c'è già.
|
||||
Altrimenti lo scarichi da https://dotnet.microsoft.com/download/dotnet/10.0
|
||||
(sezione "ASP.NET Core Runtime", versione per Windows x64).
|
||||
|
||||
Come si avvia
|
||||
-------------
|
||||
1. Estrai lo zip in una cartella qualsiasi, per esempio C:\Anubis.
|
||||
2. Fai doppio clic su "Avvia Anubis.cmd".
|
||||
Si apre una finestra nera: lasciala aperta, il bot lavora lì dentro.
|
||||
Dopo qualche secondo il browser apre http://localhost:8787.
|
||||
3. La prima volta una procedura guidata ti chiede dove tenere i dati e una
|
||||
password. I dati vanno in %APPDATA%\Anubis.
|
||||
4. Per fermarlo premi Ctrl+C nella finestra nera.
|
||||
Chiudere la finestra lo ferma di colpo: funziona, ma il diario lo segnerà
|
||||
come uno spegnimento improvviso.
|
||||
|
||||
Mentre gira
|
||||
-----------
|
||||
Usalo come vuoi. Se il computer va in sospensione, il rapporto lo vedrà come
|
||||
un silenzio: va bene, ma per una prova pulita conviene lasciarlo acceso.
|
||||
|
||||
Come mandare i dati
|
||||
-------------------
|
||||
Quando hai finito (anche con il bot ancora acceso):
|
||||
- fai doppio clic su "Prepara i dati da incollare.cmd": si apre il Blocco
|
||||
note con il rapporto. Seleziona tutto (Ctrl+A), copia (Ctrl+C) e incolla
|
||||
il testo nella chat;
|
||||
- oppure, dall'interfaccia: Diario e sistema, pulsante "Scarica i dati per
|
||||
l'analisi".
|
||||
|
||||
Il rapporto copre tutto ciò che è stato raccolto, fino a 30 giorni. Non
|
||||
contiene chiavi, password né il tuo nome utente.
|
||||
@@ -1,10 +0,0 @@
|
||||
@echo off
|
||||
rem Writes the diagnostics report (issue #95) next to this file and opens it, ready to copy. It only reads.
|
||||
cd /d "%~dp0"
|
||||
"%~dp0Anubis.Server.exe" diagnostics --platform desktop --out "%~dp0anubis-diagnostica.md" >nul
|
||||
if errorlevel 1 (
|
||||
echo Non riuscito: avvia prima Anubis almeno una volta.
|
||||
pause
|
||||
exit /b 1
|
||||
)
|
||||
start "" notepad "%~dp0anubis-diagnostica.md"
|
||||
Reference in new issue
Block a user