Compare commits

..

19 Commits

Author SHA1 Message Date
henrik
97459ccd1d Updated Dockerfile 2024-12-16 22:09:23 +01:00
henrik
f554b52024 Updated Dockerfile 2024-12-13 21:55:33 +01:00
henrik
adc86c0e96 Updated Dockerfile 2024-12-13 21:49:55 +01:00
henrik
547413787a Updated Dockerfile 2024-12-13 21:41:44 +01:00
henrik
fb3f5f36f1 Updated Procfile 2024-12-13 21:35:03 +01:00
henrik
65bd4e69df Updated Procfile 2024-12-13 21:30:30 +01:00
henrik
226d590890 Updated Procfile 2024-12-13 20:26:22 +01:00
henrik
ffbe6d9c04 Updated Procfile 2024-12-13 20:14:32 +01:00
henrik
5586d29a20 Updated Procfile 2024-12-13 20:07:52 +01:00
henrik
8999be2b8a Updated Procfile 2024-12-13 20:01:07 +01:00
henrik
d99ec3f0b7 Updated Procfile 2024-12-13 19:54:38 +01:00
henrik
8108e5c7ea removed git version 2024-12-13 19:33:51 +01:00
henrik
d1ae132076 Reverted gitversion config 2024-12-13 19:14:03 +01:00
henrik
1fb196bce1 Added gitversion config 2024-12-13 19:06:55 +01:00
henrik
bf89d63aec Re-added explicit copy 2024-12-13 18:30:34 +01:00
henrik
f9c7e69ca2 Removed explicit copy 2024-12-13 18:28:28 +01:00
henrik
8a22f1e159 undid explicit .git copy to whole folder copying 2024-12-13 18:20:31 +01:00
henrik
a816f99118 Include .git 2024-12-13 18:17:18 +01:00
henrik
2525790303 Initial split migration 2024-12-13 18:04:00 +01:00
17 changed files with 20 additions and 55 deletions

View File

@@ -1,2 +1,2 @@
web: run-web.sh web: dotnet /app/pushy/Pushy.dll
silo: run-silo.sh silo: silo/Pushy.Silo.dll

View File

@@ -1,11 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="CommitMessageInspectionProfile">
<profile version="1.0">
<inspection_tool class="CommitFormat" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="CommitNamingConvention" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" /> <mapping directory="$PROJECT_DIR$" vcs="Git" />
</component> </component>

View File

@@ -24,10 +24,6 @@ RUN dotnet build "Pushy.Silo.csproj" --no-restore -c $BUILD_CONFIGURATION -o /ap
WORKDIR "/src/Pushy/Pushy" WORKDIR "/src/Pushy/Pushy"
RUN dotnet build "Pushy.csproj" --no-restore -c $BUILD_CONFIGURATION -o /app/pushy RUN dotnet build "Pushy.csproj" --no-restore -c $BUILD_CONFIGURATION -o /app/pushy
COPY .dokku/Procfile /app/.dokku/Procfile
COPY run-silo.sh /app/run-silo.sh
COPY run-web.sh /app/run-web.sh
FROM build AS publish FROM build AS publish
ARG BUILD_CONFIGURATION=Release ARG BUILD_CONFIGURATION=Release
@@ -41,7 +37,9 @@ RUN dotnet publish "Pushy.csproj" -c $BUILD_CONFIGURATION -o /app/publish/pushy
FROM base AS final FROM base AS final
WORKDIR /app WORKDIR /app
COPY --from=publish /app/publish . COPY --from=publish /app/publish .
COPY --from=publish /app/.dokku /app/.dokku
COPY --from=publish /app/*.sh /app/
ENTRYPOINT ["sh"] RUN pwd
RUN ls /app/pushy/Pushy.dll
RUN ls -la
RUN ls -la silo
RUN ls -la pushy

View File

@@ -2,6 +2,3 @@ branches:
main: main:
regex: ^master$|^main$ regex: ^master$|^main$
mode: ContinuousDelivery mode: ContinuousDelivery
develop:
regex: ^develop$
mode: ContinuousDelivery

View File

@@ -22,7 +22,5 @@ builder.UseOrleans(silo =>
}); });
}); });
builder.Services.AddAllElasticApm();
var host = builder.Build(); var host = builder.Build();
host.Run(); host.Run();

View File

@@ -6,12 +6,9 @@
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<UserSecretsId>dotnet-Pushy.Silo-607fe096-6d3f-44f4-8e5d-8a2c875f8758</UserSecretsId> <UserSecretsId>dotnet-Pushy.Silo-607fe096-6d3f-44f4-8e5d-8a2c875f8758</UserSecretsId>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<Title>Pushy Silo</Title>
<Authors>Henrik Lassen</Authors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Elastic.Apm.NetCoreAll" Version="1.31.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0"/> <PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0"/>
<PackageReference Include="Microsoft.Orleans.Clustering.Redis" Version="9.0.1" /> <PackageReference Include="Microsoft.Orleans.Clustering.Redis" Version="9.0.1" />
<PackageReference Include="Microsoft.Orleans.Persistence.Redis" Version="9.0.1" /> <PackageReference Include="Microsoft.Orleans.Persistence.Redis" Version="9.0.1" />

View File

@@ -4,8 +4,5 @@
"Default": "Information", "Default": "Information",
"Microsoft.Hosting.Lifetime": "Information" "Microsoft.Hosting.Lifetime": "Information"
} }
},
"ElasticApm": {
"ServerUrl": "http://apm.home.local:8200"
} }
} }

View File

@@ -1,8 +1,4 @@
<Solution> <Solution>
<Folder Name="/Frontend/">
<Project Path="Pushy\Pushy.Client\Pushy.Client.csproj" Type="Classic C#" /> <Project Path="Pushy\Pushy.Client\Pushy.Client.csproj" Type="Classic C#" />
<Project Path="Pushy\Pushy\Pushy.csproj" Type="Classic C#" /> <Project Path="Pushy\Pushy\Pushy.csproj" Type="Classic C#" />
</Folder>
<Project Path="Pushy.Domain\Pushy.Domain.csproj" Type="Classic C#" />
<Project Path="Pushy.Silo\Pushy.Silo.csproj" Type="Classic C#" />
</Solution> </Solution>

View File

@@ -7,11 +7,12 @@
<NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile> <NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile>
<StaticWebAssetProjectMode>Default</StaticWebAssetProjectMode> <StaticWebAssetProjectMode>Default</StaticWebAssetProjectMode>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS> <DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<LangVersion>13</LangVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="9.0.0" />
<PackageReference Include="UnitsNet" Version="5.61.0" /> <PackageReference Include="UnitsNet" Version="5.60.0" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -14,12 +14,11 @@
<link rel="stylesheet" href="@Assets["app.tailwind.css"]"/> <link rel="stylesheet" href="@Assets["app.tailwind.css"]"/>
<link rel="stylesheet" href="@Assets["Pushy.styles.css"]"/> <link rel="stylesheet" href="@Assets["Pushy.styles.css"]"/>
<HeadOutlet/> <HeadOutlet/>
<ImportMap/>
</head> </head>
<body> <body>
<Routes/> <Routes/>
<script src="_framework/blazor.web.js"></script> <script src="@Assets["_framework/blazor.web.js"]"></script>
@if (Agent.Configuration.Enabled && Environment.IsProduction()) @if (Agent.Configuration.Enabled && Environment.IsProduction())
{ {
<script src="@Assets["elastic-apm-rum.umd.min.js"]"></script> <script src="@Assets["elastic-apm-rum.umd.min.js"]"></script>

View File

@@ -51,11 +51,11 @@ if (builder.Environment.IsProduction())
opt.Transport = new DistributedTransport(transport); opt.Transport = new DistributedTransport(transport);
}); });
} }
builder.Services.AddAllElasticApm();
builder.Services.AddScoped(service => builder.Services.AddScoped(service =>
service.GetRequiredService<IClusterClient>().GetGrain<ILinkGenerator>(Guid.Empty) service.GetRequiredService<IClusterClient>().GetGrain<ILinkGenerator>(Guid.Empty)
); );
builder.Services.AddAllElasticApm();
builder.Services.AddHealthChecks(); builder.Services.AddHealthChecks();
builder.Services.AddCors(policy => builder.Services.AddCors(policy =>

View File

@@ -22,10 +22,14 @@
<PackageReference Include="Microsoft.Orleans.Persistence.Redis" Version="9.0.1" /> <PackageReference Include="Microsoft.Orleans.Persistence.Redis" Version="9.0.1" />
<PackageReference Include="Microsoft.Orleans.Reminders.Redis" Version="9.0.1" /> <PackageReference Include="Microsoft.Orleans.Reminders.Redis" Version="9.0.1" />
<PackageReference Include="System.Text.Json" Version="9.0.0" /> <PackageReference Include="System.Text.Json" Version="9.0.0" />
<PackageReference Include="UnitsNet" Version="5.61.0" /> <PackageReference Include="UnitsNet" Version="5.60.0" />
<ProjectReference Include="..\..\Pushy.Domain\Pushy.Domain.csproj" /> <ProjectReference Include="..\..\Pushy.Domain\Pushy.Domain.csproj" />
<ProjectReference Include="..\Pushy.Client\Pushy.Client.csproj"/> <ProjectReference Include="..\Pushy.Client\Pushy.Client.csproj"/>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.0" /> <PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly.Server" Version="9.0.0" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="Grains\" />
</ItemGroup>
</Project> </Project>

View File

@@ -1,3 +0,0 @@
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
<s:String x:Key="/Default/CodeInspection/WebPathMapping/MappedPaths/=WWWROOT_005C_005FFRAMEWORK_005CBLAZOR_002EWEB_002EJS/@EntryIndexedValue"></s:String>
<s:String x:Key="/Default/CodeInspection/WebPathMapping/PathsInCorrectCasing/=WWWROOT_005C_005FFRAMEWORK_005CBLAZOR_002EWEB_002EJS/@EntryIndexedValue">wwwroot\_framework\blazor.web.js</s:String></wpf:ResourceDictionary>

View File

@@ -7,7 +7,8 @@
} }
}, },
"AllowedHosts": "*", "AllowedHosts": "*",
"ElasticApm": { "ElasticApm":
{
"ServerUrl": "http://apm.home.local:8200", "ServerUrl": "http://apm.home.local:8200",
"TransactionNameGroups": "GET /t/*" "TransactionNameGroups": "GET /t/*"
} }

View File

@@ -1,12 +1,4 @@
{ {
"formation": {
"web": {
"quantity": 1
},
"silo": {
"quantity": 2
}
},
"healthchecks": { "healthchecks": {
"web": [ "web": [
{ {

View File

@@ -1,3 +0,0 @@
#!/usr/bin/env bash
cd /app/silo
dotnet Pushy.Silo.dll

View File

@@ -1,3 +0,0 @@
#!/usr/bin/env bash
cd /app/pushy
dotnet Pushy.dll