-
Notifications
You must be signed in to change notification settings - Fork 152
Content for .NET Aspire - Release 8.1 #1384
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
d7e7faa
Initial placeholder bits, to let other's help out
IEvangelist 3d1b0b9
Fix MD lint
IEvangelist 92fc076
Add elasticsearch bits
IEvangelist 62c943a
Add Redis host includes
IEvangelist d52b45c
Fix hosting packages
IEvangelist 69beee2
Fix the host toggles for zones
IEvangelist 51db798
Dockerfile docs.
mitchdenny e1d4c07
Add note for event hubs emulator.
mitchdenny 9d8d147
WIP: Python.
mitchdenny 0dcf2b9
Update the zone name
IEvangelist 4c395ae
Fix the 'missed one' :P
IEvangelist c098966
Sync Elasticsearch
IEvangelist 17908d7
Edit pass on withdockerfile content
IEvangelist 0ccb22d
Add Milvus
IEvangelist bcbbf72
Add Milvus to TOC
IEvangelist d557f53
A bit of clean for python
IEvangelist 67af292
Apply suggestions from code review
IEvangelist c4b6436
Added logos and overview entries
IEvangelist 73eeb56
Fix image
IEvangelist 240bcc0
Add snippets and address https://github.com/dotnet/docs-aspire/issues…
IEvangelist b479a5b
Lots of updates
IEvangelist 0f179f9
Getting closer but still broken
IEvangelist e61b938
Rename a bit
IEvangelist 757340d
A few more updates
IEvangelist 084dba8
Finialize python doc with screenshot.
mitchdenny 2742988
Apply suggestions from code review
IEvangelist f2bfa44
Let's go, looking good
IEvangelist b77c406
Add a section in the overview detailing RESP
IEvangelist d26b01b
Add Keycloak
IEvangelist e6db24d
A quick edit pass
IEvangelist 3eee16d
Added resource types
IEvangelist 45adb30
Add Azure Web PubSub component
IEvangelist a8a3545
Touch dates
IEvangelist 28b3dab
Bump all versions
IEvangelist 6c66e02
Fix alt-text
IEvangelist 074e36b
A few API fixes
IEvangelist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -149,6 +149,7 @@ | |
"Docker", | ||
"Dockerfile", | ||
"EF Core", | ||
"Elasticsearch", | ||
"Entity Framework Core", | ||
"Git", | ||
"GitHub", | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Add Dockerfiles to your .NET app model | ||
description: Learn how to add Dockerfiles to your .NET app model. | ||
ms.date: 07/19/2024 | ||
--- | ||
|
||
# Add Dockerfiles to your .NET app model | ||
|
||
<!-- | ||
https://github.com/dotnet/docs-aspire/issues/1063 | ||
|
||
We are adding a new extension method called WithDockerfile which allows .NET Aspire to dynamically build a container image from a Dockerfile and run it. | ||
|
||
Article abstract | ||
Needs to cover these things: | ||
|
||
Basics of getting it working. | ||
Using build arguments | ||
Using build secrets | ||
Using to augment existing custom container resources (e.g. AddSqlServer(...)). | ||
Troubleshooting (example of images not being rebuilt) | ||
--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!-- | ||
https://github.com/dotnet/docs-aspire/issues/1049 | ||
|
||
We are introducing support for Garnet in this PR: | ||
|
||
dotnet/aspire#4324 | ||
|
||
It is presently a drop in alternative for Redis. We probably need an article that sites right alongside the Redis articles so that folks who might be looking for Redis content to understand how Garnet works can find it. | ||
|
||
The article should cover: | ||
|
||
AddGarnet | ||
WithDataVolume/WithBindMount | ||
WithPersistence | ||
It can probably cover off the client side pieces by just referring back to the Redis article although the Redis article might need to more clearly call out which is service code and which is app host code. | ||
|
||
Configuring Garnet using AddGarnet and using the data volume and persistence extension methods. | ||
|
||
Include links to: | ||
- https://github.com/microsoft/Garnet | ||
- https://microsoft.github.io/garnet/docs | ||
--> | ||
|
||
To model the Garnet resource in the app host, install the [Aspire.Hosting.Garnet](https://www.nuget.org/packages/Aspire.Hosting.Garnet) NuGet package in the [app host](xref:aspire/app-host) project. | ||
|
||
### [.NET CLI](#tab/dotnet-cli) | ||
|
||
```dotnetcli | ||
dotnet add package Aspire.Hosting.Garnet | ||
``` | ||
|
||
### [PackageReference](#tab/package-reference) | ||
|
||
```xml | ||
<PackageReference Include="Aspire.Hosting.Garnet" | ||
Version="[SelectVersion]" /> | ||
``` | ||
|
||
--- | ||
|
||
In your app host project, register the .NET Aspire Garnet as a resource using the `AddGarnet` method and consume the service using the following methods: | ||
IEvangelist marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```csharp | ||
var builder = DistributedApplication.CreateBuilder(args); | ||
|
||
var cache = builder.AddGarnet("cache"); | ||
|
||
builder.AddProject<Projects.ExampleProject>() | ||
.WithReference(cache) | ||
``` | ||
|
||
The <xref:Aspire.Hosting.ResourceBuilderExtensions.WithReference%2A> method configures a connection in the `ExampleProject` project named `cache`. In the _:::no-loc text="Program.cs":::_ file of `ExampleProject`, the Garnet connection can be consumed using: | ||
|
||
```csharp | ||
builder.AddGarnet("cache"); | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<!-- | ||
https://github.com/dotnet/docs-aspire/issues/1049 | ||
|
||
We are introducing support for Valkey in this PR: | ||
|
||
dotnet/aspire#4324 | ||
|
||
It is presently a drop in alternative for Redis. We probably need an article that sites right alongside the Redis articles so that folks who might be looking for Redis content to understand how Valkey works can find it. | ||
|
||
The article should cover: | ||
|
||
AddValkey | ||
WithDataVolume/WithBindMount | ||
WithPersistence | ||
It can probably cover off the client side pieces by just referring back to the Redis article although the Redis article might need to more clearly call out which is service code and which is app host code. | ||
|
||
Configuring Valkey using AddValkey and using the data volume and persistence extension methods. | ||
|
||
Include links to: | ||
- https://github.com/valkey-io/valkey | ||
- https://valkey.io/docs/ | ||
--> | ||
|
||
To model the Valkey resource in the app host, install the [Aspire.Hosting.Valkey](https://www.nuget.org/packages/Aspire.Hosting.Valkey) NuGet package in the [app host](xref:aspire/app-host) project. | ||
|
||
### [.NET CLI](#tab/dotnet-cli) | ||
|
||
```dotnetcli | ||
dotnet add package Aspire.Hosting.Valkey | ||
``` | ||
|
||
### [PackageReference](#tab/package-reference) | ||
|
||
```xml | ||
<PackageReference Include="Aspire.Hosting.Valkey" | ||
Version="[SelectVersion]" /> | ||
``` | ||
|
||
--- | ||
|
||
In your app host project, register the .NET Aspire Valkey as a resource using the `AddValkey` method and consume the service using the following methods: | ||
|
||
```csharp | ||
var builder = DistributedApplication.CreateBuilder(args); | ||
|
||
var cache = builder.AddValkey("cache"); | ||
|
||
builder.AddProject<Projects.ExampleProject>() | ||
.WithReference(cache) | ||
``` | ||
|
||
The <xref:Aspire.Hosting.ResourceBuilderExtensions.WithReference%2A> method configures a connection in the `ExampleProject` project named `cache`. In the _:::no-loc text="Program.cs":::_ file of `ExampleProject`, the Valkey connection can be consumed using: | ||
|
||
```csharp | ||
builder.AddValkey("cache"); | ||
``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: .NET Aspire Milvus database component | ||
description: This article describes the .NET Aspire Milvus database component. | ||
ms.topic: how-to | ||
ms.date: 07/19/2024 | ||
--- | ||
|
||
# .NET Aspire Milvus database component | ||
mitchdenny marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
<!-- | ||
https://github.com/dotnet/docs-aspire/issues/1039 | ||
|
||
We added a new Aspire.Milvus.Client component and Aspire.Hosting.Milvus hosting library in main. See: | ||
|
||
Add Milvus Aspire Component aspire#796 | ||
Adds Milvus to the Aspire hosting/component packages aspire#4179 | ||
https://github.com/dotnet/aspire/tree/main/src/Components/Aspire.Milvus.Client | ||
|
||
Include links to: | ||
- https://milvus.io/ | ||
- https://github.com/milvus-io/milvus | ||
--> |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.