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
@@ -13,7 +13,18 @@ if (args is ["drill", ..])
|
||||
|
||||
var environment = Environment.GetEnvironmentVariables().Cast<DictionaryEntry>()
|
||||
.ToDictionary(e => (string)e.Key, e => e.Value as string, StringComparer.Ordinal);
|
||||
var paths = new GuardPaths(DataRoot(args, environment));
|
||||
string root;
|
||||
try
|
||||
{
|
||||
root = DataRoot(args, environment);
|
||||
}
|
||||
catch (StartupRefusedException refused)
|
||||
{
|
||||
await Console.Error.WriteLineAsync(refused.Message).ConfigureAwait(false);
|
||||
return 2;
|
||||
}
|
||||
|
||||
var paths = new GuardPaths(root);
|
||||
var logger = new LineLogger(Console.Out.WriteLine);
|
||||
using var http = Anubis.Brokers.Outgoing.KeyedClient();
|
||||
http.Timeout = TimeSpan.FromSeconds(20);
|
||||
@@ -36,15 +47,11 @@ void Stop(PosixSignalContext context)
|
||||
shutdown.Cancel();
|
||||
}
|
||||
|
||||
// The engine's data folder: --data-dir when given, /data in Docker, the user's folder on desktop (SPEC 15.2, 15.6).
|
||||
// The engine's data folder, with the rule of the server (ADR 0022): --data-dir when given, /data inside a container.
|
||||
// A refused --platform ends here, with the server's message, instead of an engine restarted again and again.
|
||||
static string DataRoot(string[] args, Dictionary<string, string?> environment)
|
||||
{
|
||||
DataDirectory.RefuseOtherPlatforms(args);
|
||||
var index = Array.IndexOf(args, "--data-dir");
|
||||
if (index >= 0 && index + 1 < args.Length)
|
||||
{
|
||||
return Path.GetFullPath(args[index + 1]);
|
||||
}
|
||||
|
||||
var platform = Array.IndexOf(args, "--platform") is var p and >= 0 && p + 1 < args.Length ? args[p + 1] : environment.GetValueOrDefault("ANUBIS_PLATFORM");
|
||||
return platform == "docker" ? "/data" : DataDirectory.ForCurrentUser().Root;
|
||||
return DataDirectory.Locate(index >= 0 && index + 1 < args.Length ? args[index + 1] : null, environment);
|
||||
}
|
||||
Reference in new issue
Block a user