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
| name: Build Windows Container Image | |
| on: | |
| push: | |
| branches: [ deploy-to-k8s ] | |
| pull_request: | |
| branches: [ deploy-to-k8s ] | |
| workflow_dispatch: | |
| env: |
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
| # Default values for mvcmusicstoreweb. | |
| # This is a YAML-formatted file. | |
| # Declare variables to be passed into your templates. | |
| replicaCount: 1 | |
| image: | |
| repository: your_repo.azurecr.io/mvcmusicstoreweb | |
| pullPolicy: Always | |
| # Overrides the image tag whose default is the chart appVersion. |
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
| apiVersion: v2 | |
| name: mvcmusicstoreweb | |
| description: MVC Music Store web application | |
| # A chart can be either an 'application' or a 'library' chart. | |
| # | |
| # Application charts are a collection of templates that can be packaged into versioned archives | |
| # to be deployed. | |
| # | |
| # Library charts provide useful utilities or functions for the chart developer. They're included as |
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
| name: Build Windows Container Image | |
| on: | |
| push: | |
| branches: [ post-containerisation ] | |
| pull_request: | |
| branches: [ post-containerisation ] | |
| workflow_dispatch: | |
| env: |
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
| FROM mcr.microsoft.com/dotnet/framework/sdk:4.8 AS build | |
| WORKDIR /app | |
| # copy csproj and restore as distinct layers | |
| COPY MvcMusicStore-Completed/*.sln . | |
| COPY MvcMusicStore-Completed/MvcMusicStore/*.csproj ./MvcMusicStore/ | |
| COPY MvcMusicStore-Completed/MvcMusicStore/*.config ./MvcMusicStore/ | |
| RUN nuget restore | |
| # copy everything else and build app |
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
| #Depending on the operating system of the host machines(s) that will build or run the containers, the image specified in the FROM statement may need to be changed. | |
| #For more information, please see https://aka.ms/containercompat | |
| FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019 | |
| ARG source | |
| WORKDIR /inetpub/wwwroot | |
| COPY ${source:-obj/Docker/publish} . |
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
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: dbconnection | |
| type: Opaque | |
| data: | |
| connstring: U2Vy_NOT_A_VALID_BASE_64_sdoinsdcoin= |
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
| <sessionState mode="Custom" customProvider="DefaultSessionProvider"> | |
| <providers> | |
| <add name="DefaultSessionProvider" | |
| type="System.Web.Providers.DefaultSessionStateProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" | |
| connectionStringName="MusicStoreEntities" /> | |
| </providers> | |
| </sessionState> |
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
| <connectionStrings configBuilders="Environment"> | |
| <add name="MusicStoreEntities" | |
| connectionString="ignored" | |
| providerName="System.Data.SqlClient" /> | |
| </connectionStrings> |
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
| <connectionStrings> | |
| <add name="MusicStoreEntities" | |
| connectionString="Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;" | |
| providerName="System.Data.SqlClient" /> | |
| </connectionStrings> |