You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include Docker configuration in the solution for the corresponding projects.
Context
This will help to offer the possibility of support containers such as Docker straight from the solution generation, without the developers having to implement it on their own afterwards.
It might also be very useful for later implementing the .NET Aspire integration from #55.
## Description
Add the required configurations for dockerizing the project and be able
to both publish it into a container image and run it and debug it in a
container.
## Related Issue
Closes#26
## Motivation and Context
As explained in #26, this will help offering support for containers,
publish images and debugging capabilities on them out-of-the-box.
## How Has This Been Tested?
API project can now be ran and debugged on a container straight from VS
and an image be built straight from the dotnet CLI due to the SDK
Container configuration.
A note to consider: current mechanism (SDK Container) is only supported
for debugging from VS 2022 v17.9 (currently in Preview).
For publishing the project into an image is enough to run the following
command:
```
dotnet publish /p:PublishProfile=DefaultContainer
```
This of course does not depend on VS versions.
## Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [X] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
## Checklist:
- [X] My code follows the code style of this project.
- [X] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [X] I have read the **CONTRIBUTING** document.
- [ ] I have added tests to cover my changes.
- [X] All new and existing tests passed.
Detailed Description
Include Docker configuration in the solution for the corresponding projects.
Context
This will help to offer the possibility of support containers such as Docker straight from the solution generation, without the developers having to implement it on their own afterwards.
It might also be very useful for later implementing the .NET Aspire integration from #55.
Possible Implementation
We can leverage the newly added native support for Containers by the .NET team: https://github.com/dotnet/sdk-container-builds/blob/main/README.md.
The text was updated successfully, but these errors were encountered: