Provision US-16 dependencies credentials HTTPS and native service configurations
This commit is contained in:
1 parent
950f67d8b7
commit
eedf2a941b
34 files changed
+1703
-373
No files matched your search
@@ -4,4 +4,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.12" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -12,6 +12,7 @@ public class Program
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Host.UseWindowsService(options => options.ServiceName = "healthapp-api-gateway");
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddProblemDetails();
|
||||
builder.Services.AddSingleton<PrototypeAccounts>();
|
||||
|
||||
@@ -4,4 +4,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.12" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -10,6 +10,7 @@ public class Program
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Host.UseWindowsService(options => options.ServiceName = "healthapp-health-overview");
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddProblemDetails();
|
||||
builder.Services.AddScoped<HealthOverviewApplicationService>();
|
||||
|
||||
@@ -4,4 +4,7 @@
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.12" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
@@ -11,6 +11,7 @@ public class Program
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Host.UseWindowsService(options => options.ServiceName = "healthapp-insights");
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddProblemDetails();
|
||||
builder.Services.AddScoped<InsightsApplicationService>();
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.12" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.12" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.12" PrivateAssets="all" />
|
||||
|
||||
@@ -11,6 +11,7 @@ public class Program
|
||||
public static async Task Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Host.UseWindowsService(options => options.ServiceName = "healthapp-observation");
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddProblemDetails();
|
||||
builder.Services.AddDbContext<ObservationDbContext>((services, options) =>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting.WindowsServices" Version="10.0.12" />
|
||||
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="10.0.3" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Relational" Version="10.0.12" />
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="10.0.12" PrivateAssets="all" />
|
||||
|
||||
@@ -11,6 +11,7 @@ public class Program
|
||||
public static async Task Main(string[] args)
|
||||
{
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
builder.Host.UseWindowsService(options => options.ServiceName = "healthapp-patient-profile");
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddProblemDetails();
|
||||
builder.Services.AddDbContext<PatientDbContext>((services, options) =>
|
||||
|
||||
+13
-13
@@ -295,21 +295,21 @@ US-04 tests use real HTTP between the hosts and separate temporary patient and o
|
||||
|
||||
Dependencies: Npgsql's EF Core PostgreSQL provider supplies persistence; EF Core Relational is pinned to the same patch as EF Core Design to keep runtime/tooling versions aligned; EF Core Design supports migration maintenance. xUnit, its Visual Studio runner, Microsoft.NET.Test.Sdk, and ASP.NET Core MVC Testing are used only for automated tests. The gateway uses the platform's HttpClient and has no extra package dependency.
|
||||
|
||||
## Linux installer (US-16)
|
||||
## Provisioning installer (US-16)
|
||||
|
||||
Use `bash deploy/build-release.sh --output NEW_DIRECTORY` to create an independent
|
||||
release bundle, then its `install.sh --services all|NAME[,NAME] --config-dir DIRECTORY`
|
||||
on a Linux/systemd host. Single, subset and complete installs retain separate
|
||||
applications, configurations and units. Optional `--migrate` and `--start` explicitly
|
||||
apply selected service migrations/startup. Existing installations are never overwritten.
|
||||
See [INSTALLATION.md](../deploy/INSTALLATION.md) for prerequisites, service selections,
|
||||
external configuration, offline staging, verification and independent management.
|
||||
Build a portable release using `bash deploy/build-release.sh --output NEW_DIRECTORY`.
|
||||
A normal supported Linux installation is `sudo bash install.sh --services all --host
|
||||
DNS_OR_IP`; it provisions missing runtime/PostgreSQL dependencies, separate databases
|
||||
and roles, generated service/account credentials, HTTPS/trust, independent configuration,
|
||||
migrations, service registration/startup and installation verification. No prepared env
|
||||
files, service passwords or prototype certificates are required.
|
||||
|
||||
US-16 adds xUnit deployment tests that launch installed executables as separate OS
|
||||
processes and exercise the authenticated complete-system workflow and independent
|
||||
stop/restart. Live systemd/HTTPS verification uses the supplied target-host verifier.
|
||||
The earlier test-alignment suggestions remain deferred except where US-16 itself
|
||||
requires independent-process installation verification.
|
||||
Shared C# provisioning also generates Windows/macOS configuration. Native adapters use
|
||||
Windows Services or launchd without changing application binaries/service boundaries.
|
||||
See [INSTALLATION.md](../deploy/INSTALLATION.md) for supported hosts, native commands,
|
||||
automatic SSH topology distribution, generated credentials and test evidence/limitations.
|
||||
The existing `deploy/*.env.example` files remain useful for advanced/manual development;
|
||||
they are no longer prerequisites for the normal installer.
|
||||
|
||||
## Linux deployment
|
||||
|
||||
|
||||
Reference in new issue
Block a user