Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development Environment with Aspire #479

Open
gingters opened this issue Jun 14, 2024 · 0 comments
Open

Development Environment with Aspire #479

gingters opened this issue Jun 14, 2024 · 0 comments
Assignees

Comments

@gingters
Copy link
Member

This relates to RelayServer v3, which is currently still in the feature/dotnet-core branch.

.NET Aspire could be a good enhancement for our Dev-environment.
The dev- and test environment is defined in src/docker, with a docker-compose.yml file.

This currently spins up:

  • 2 RabbitMQ nodes, clustered
  • 1 PostgreSQL database
    optional: 1 MSSQL Server, as we also support this
  • 1 Keycloak identity provider
  • 1 Seq server for viewing logs from all of our services
  • 1 startup-container that performs DB migrations (same docker image as RelayServer, just run with additional parameters, and shuts down after migration)
  • 1 Management API (ASP.NET Core project)
  • 1 startup-container that performs seeding of data via the management api (makes HTTP request and shuts down)
  • 2 RelayServer instances
  • 4 Connector instances, that connect to the relayserver

The Database -> Migration (needs db) -> Management API (needs migrated db) -> seed (needs management API) steps for initial setup were tricky to set up with compose; maybe this is easier with Aspire, too.

RelayServer, Management API and Connectors are all ASP.NET projects with their own dockerfile (a bit adjusted from the template).

The Aspire Dashboard could replace the Seq instance and also provide additional overview over Rabbit, the database and maybe even Keycloak if that supports OTel).

We currently don't have OTel gathering enabled in our example RelayServer, Management API and Connector projects, but this could hopefully be added too.

@thomashilzendegen thomashilzendegen changed the title Dev-environment with Aspire Development Environment with Aspire Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants