Conversation
Co-authored-by: BethMassi <5115571+BethMassi@users.noreply.github.com>
README.md
Outdated
| To run the sample locally: | ||
|
|
||
| 1. Install [.NET 10 SDK](https://dotnet.microsoft.com/download/dotnet/10.0) | ||
| 2. Install [Docker Desktop](https://www.docker.com/products/docker-desktop) |
There was a problem hiding this comment.
| 2. Install [Docker Desktop](https://www.docker.com/products/docker-desktop) | |
| 2. Install [Docker Desktop](https://www.docker.com/products/docker-desktop) | |
| 3. Install [Aspire CLI](https://aspire.dev/get-started/install-cli/) |
There was a problem hiding this comment.
Added links for Docker Desktop and Aspire CLI installation in commit 99262cb
| ``` | ||
| 5. Open the Aspire Dashboard (URL shown in console output) | ||
| 6. Access the BlazorWeb application through the dashboard | ||
|
|
There was a problem hiding this comment.
| ## Local Deployment | |
| To containerize and deploy the application locally: | |
| ```bash | |
| aspire deploy | |
| This will set up the containerized application and volume mounts on your Docker desktop. |
There was a problem hiding this comment.
Don't forget to add this part for instruction on local 'aspire deploy'. It would be a good idea to also add how to run the blazorweb app on localhost as well as how to run the Aspire dashboard.
There was a problem hiding this comment.
Added "Local Deployment" section with aspire deploy instructions, plus details on running the Aspire Dashboard (at http://localhost:18888) and BlazorWeb app (at http://localhost:8080 or configured port) in commit 99262cb
README.md
Outdated
| # Persistent Volume & GHCR Publish Sample | ||
|
|
||
| This sample is based on the aspire-samples/volumemount sample. It demonstrates how to configure a SQL Server container to use a persistent volume in Aspire, so that the data is persisted across app launches. It shows how to write files (image uploads) to a persistent volume from a Blazor Web app. | ||
| This sample demonstrates how to use .NET Aspire to orchestrate a multi-container application with persistent data storage and automated deployment to production. It showcases: |
There was a problem hiding this comment.
| This sample demonstrates how to use .NET Aspire to orchestrate a multi-container application with persistent data storage and automated deployment to production. It showcases: | |
| This sample demonstrates how to use [Aspire](https://aspire.dev) to orchestrate a multi-container application with persistent data storage and automated deployment to production. It showcases: |
There was a problem hiding this comment.
Added link to aspire.dev in commit 99262cb
README.md
Outdated
|
|
||
| To deploy to production using the published artifacts: | ||
|
|
||
| 1. Download the `docker-compose.yaml` and `.env` files from the Aspire publish output |
There was a problem hiding this comment.
| 1. Download the `docker-compose.yaml` and `.env` files from the Aspire publish output | |
| 1. Download the `docker-compose.yaml` and `.env` files from the Aspire publish output. These are the artifacts you can download as an archive (.zip) from the Actions workflow run. |
There was a problem hiding this comment.
Clarified that artifacts can be downloaded as an archive (.zip) from the Actions workflow run in commit 99262cb
README.md
Outdated
|
|
||
| - **Aspire simplifies container orchestration** - Configure everything in C# with strong typing | ||
| - **Persistent volumes preserve data** - Both database and uploaded files survive container restarts | ||
| - **Aspire CLI enables GitOps** - Generate deployment artifacts and publish images in CI/CD pipelines |
There was a problem hiding this comment.
| - **Aspire CLI enables GitOps** - Generate deployment artifacts and publish images in CI/CD pipelines | |
| - **Aspire CLI enables GitOps** - Generate deployment artifacts and publish images in CI/CD pipelines using the aspire CLI commands `aspire publish` and `aspire do push`. |
There was a problem hiding this comment.
Updated to specify the aspire CLI commands aspire publish and aspire do push in commit 99262cb
…d deployment details Co-authored-by: BethMassi <5115571+BethMassi@users.noreply.github.com>
|
@copilot submit the PR |
I don't have permissions to merge pull requests. You'll need to merge this PR through the GitHub UI by clicking the "Merge pull request" button, or a repository maintainer with write access can merge it. |
The README lacked details on Aspire configuration, volume persistence, and GitHub Actions deployment workflow.
Documentation Added
Aspire AppHost Configuration
WithDataVolume()for/var/opt/mssqlpersistence,WithLifetime(ContainerLifetime.Persistent)for container longevity/app/wwwroot/uploadsVolume Persistence
/var/opt/mssql/app/wwwroot/uploadsGitHub Actions Workflow
aspire publish- Generatesdocker-compose.yamland.envtemplate from AppHost configurationaspire do push- Builds and pushes BlazorWeb image to GHCR usingParameters__registry_endpointandParameters__registry_repositoryghcr.io/bethmassi/volumemount/blazorweb:latestDevelopment & Deployment
aspire runcommand with user secretsaspire deployfor containerized local deployment with Docker Desktophttp://localhost:18888http://localhost:8080Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.