Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ejsmith committed Apr 9, 2024
1 parent bd4fd97 commit 95966c7
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 27 deletions.
8 changes: 1 addition & 7 deletions Exceptionless.sln
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Exceptionless.Tests", "test
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Exceptionless.Job", "src\Exceptionless.Job\Exceptionless.Job.csproj", "{788BA00C-FFBE-42A9-92A3-89E24FC137B5}"
EndProject
Project("{E53339B2-1760-4266-BCC7-CA923CBCF16C}") = "docker-compose", "docker\docker-compose.dcproj", "{9F933018-9E8B-4649-8C9A-D217B5E1C184}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "http", "http", "{97ED03A0-8C49-4B15-8D93-C56AF4DDC30F}"
ProjectSection(SolutionItems) = preProject
tests\http\admin.http = tests\http\admin.http
Expand All @@ -45,7 +43,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "http", "http", "{97ED03A0-8
tests\http\webhooks.http = tests\http\webhooks.http
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Exceptionless.AppHost", "src\Exceptionless.AppHost\Exceptionless.AppHost.csproj", "{E730BF07-50D3-48C4-9C39-45D8BCB2A35A}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Exceptionless.AppHost", "src\Exceptionless.AppHost\Exceptionless.AppHost.csproj", "{E730BF07-50D3-48C4-9C39-45D8BCB2A35A}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down Expand Up @@ -73,10 +71,6 @@ Global
{788BA00C-FFBE-42A9-92A3-89E24FC137B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{788BA00C-FFBE-42A9-92A3-89E24FC137B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{788BA00C-FFBE-42A9-92A3-89E24FC137B5}.Release|Any CPU.Build.0 = Release|Any CPU
{9F933018-9E8B-4649-8C9A-D217B5E1C184}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9F933018-9E8B-4649-8C9A-D217B5E1C184}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9F933018-9E8B-4649-8C9A-D217B5E1C184}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9F933018-9E8B-4649-8C9A-D217B5E1C184}.Release|Any CPU.Build.0 = Release|Any CPU
{E730BF07-50D3-48C4-9C39-45D8BCB2A35A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E730BF07-50D3-48C4-9C39-45D8BCB2A35A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E730BF07-50D3-48C4-9C39-45D8BCB2A35A}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
7 changes: 4 additions & 3 deletions src/Exceptionless.AppHost/ElasticsearchExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Text;
using Aspire.Hosting.Lifecycle;
using Aspire.Hosting.Utils;
using Microsoft.Extensions.Configuration;

namespace Aspire.Hosting;
Expand All @@ -21,7 +20,7 @@ public static IResourceBuilder<ElasticsearchResource> AddElasticsearch(this IDis
{
var elasticsearch = new ElasticsearchResource(name);
return builder.AddResource(elasticsearch)
.WithHttpEndpoint(containerPort: 9200, hostPort: port, name: "http")
.WithHttpEndpoint(port: 9200, targetPort: port, name: "http")
.WithAnnotation(new ContainerImageAnnotation { Image = "docker.elastic.co/elasticsearch/elasticsearch", Tag = "8.12.2" })
.WithEnvironment("discovery.type", "single-node")
.WithEnvironment("xpack.security.enabled", "false")
Expand Down Expand Up @@ -52,7 +51,7 @@ public static IResourceBuilder<ElasticsearchResource> WithKibana(this IResourceB
builder.ApplicationBuilder.AddResource(resource)
.WithAnnotation(new ContainerImageAnnotation { Image = "docker.elastic.co/kibana/kibana", Tag = "8.12.2" })
.WithEnvironment("XPACK_SECURITY_ENABLED", "false")
.WithHttpEndpoint(containerPort: 5601, hostPort: hostPort, name: containerName)
.WithHttpEndpoint(targetPort: 5601, port: hostPort, name: containerName)
.ExcludeFromManifest();

return builder;
Expand Down Expand Up @@ -81,6 +80,8 @@ public string? ConnectionStringExpression
}
}

ReferenceExpression IResourceWithConnectionString.ConnectionStringExpression => throw new NotImplementedException();

/// <summary>
/// Gets the connection string for the Elasticsearch server.
/// </summary>
Expand Down
14 changes: 6 additions & 8 deletions src/Exceptionless.AppHost/Exceptionless.AppHost.csproj
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsAspireHost>true</IsAspireHost>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspire.Hosting" Version="8.0.0-preview.4.24156.9" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Exceptionless.Job\Exceptionless.Job.csproj" />
<ProjectReference Include="..\Exceptionless.Web\Exceptionless.Web.csproj" />
</ItemGroup>

</Project>
<ItemGroup>
<PackageReference Include="Aspire.Hosting.Redis" Version="8.0.0-preview.5.24201.12" />
<PackageReference Include="Aspire.Hosting.AppHost" Version="8.0.0-preview.5.24201.12" />
<PackageReference Include="Aspire.Hosting.NodeJs" Version="8.0.0-preview.5.24201.12" />
</ItemGroup>
</Project>
12 changes: 5 additions & 7 deletions src/Exceptionless.AppHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@
var cache = builder.AddRedis("Redis")
.WithRedisCommander();

var job = builder.AddProject<Projects.Exceptionless_Job>("Jobs")
var job = builder.AddProject<Projects.Exceptionless_Job>("Jobs", "AllJobs")
.WithReference(cache)
.WithReference(elastic)
.WithLaunchProfile("AllJobs");
.WithReference(elastic);

var api = builder.AddProject<Projects.Exceptionless_Web>("Api")
var api = builder.AddProject<Projects.Exceptionless_Web>("Api", "Exceptionless API")
.WithReference(cache)
.WithReference(elastic)
.WithLaunchProfile("Exceptionless API");
.WithReference(elastic);

builder.AddNpmApp("Web", "../../src/Exceptionless.Web/ClientApp", "dev")
.WithReference(api)
.WithEndpoint(containerPort: 5173, scheme: "http", env: "PORT");
.WithEndpoint(port: 5173, scheme: "http", env: "PORT");

builder.Build().Run();
17 changes: 15 additions & 2 deletions src/Exceptionless.AppHost/Properties/launchSettings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"profiles": {
"https": {
"commandName": "Project",
"dotnetRunMessages": true,
"launchBrowser": true,
"applicationUrl": "https://localhost:17224;http://localhost:15212",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "https://localhost:21224",
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "https://localhost:22224"
}
},
"http": {
"commandName": "Project",
"dotnetRunMessages": true,
Expand All @@ -9,8 +21,9 @@
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"DOTNET_ENVIRONMENT": "Development",
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:16298"
"DOTNET_DASHBOARD_OTLP_ENDPOINT_URL": "http://localhost:16298",
"DOTNET_RESOURCE_SERVICE_ENDPOINT_URL": "http://localhost:22077"
}
}
}
}
}

0 comments on commit 95966c7

Please sign in to comment.