Skip to content

Fun project for learning asp.net core build for containers.

Notifications You must be signed in to change notification settings

dlargen/aspnetcore-docker

Repository files navigation

aspnetcore-docker

Fun project for learning asp.net core built for containers.

  1. Install .NET Core SDK 2.1 Currently: https://www.microsoft.com/net/download/thank-you/dotnet-sdk-2.1.402-windows-x64-installer
  2. Configure Powershell to allow script execution:
    1. set-executionpolicy remotesigned
    2. get-executionpolicy
  3. Visual Studio Code Setup (Or your editor flavor of choice)
    1. Extensions:
      1. Powershell
      2. C#
      3. Docker (Installed with Code)
      4. NuGet Package Manager
    2. Update Visual Studio Code Preferences
      1. Find the omnisharp.path property and add it to your user settings and configure it as follows:
        1. "omnisharp.path": "latest"
  4. Clone this REPO in Visual Studio Code
  5. Create a container to build the .netcore application and optionally run a local test of the app. Can be skipped because we will be running the application in a container.
    1. .\scripts\build.ci.ps1
    2. Test (Optional)
      1. dotnet run --project .\src\webui\webui.csproj
      2. Navigate to http://localhost:5000
      3. Ctrl - C
  6. Create a container to run your webui and a container to run the db
    1. .\scripts\build.ps1
  7. Run the webui container and the db container
    1. .\scripts\run.ps1
  8. Test your container application
    1. Navigate to http://localhost:5000

About

Fun project for learning asp.net core build for containers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published