├── src
├── VstsDockerBuild.WebApp
│ ├── wwwroot
│ │ ├── js
│ │ │ ├── site.min.js
│ │ │ └── site.js
│ │ ├── favicon.ico
│ │ ├── lib
│ │ │ ├── bootstrap
│ │ │ │ ├── dist
│ │ │ │ │ ├── fonts
│ │ │ │ │ │ ├── glyphicons-halflings-regular.eot
│ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf
│ │ │ │ │ │ ├── glyphicons-halflings-regular.woff
│ │ │ │ │ │ └── glyphicons-halflings-regular.woff2
│ │ │ │ │ ├── js
│ │ │ │ │ │ └── npm.js
│ │ │ │ │ └── css
│ │ │ │ │ │ ├── bootstrap-theme.min.css.map
│ │ │ │ │ │ └── bootstrap-theme.css
│ │ │ │ ├── .bower.json
│ │ │ │ └── LICENSE
│ │ │ ├── jquery
│ │ │ │ ├── .bower.json
│ │ │ │ └── LICENSE.txt
│ │ │ ├── jquery-validation
│ │ │ │ ├── .bower.json
│ │ │ │ ├── LICENSE.md
│ │ │ │ └── dist
│ │ │ │ │ └── additional-methods.js
│ │ │ └── jquery-validation-unobtrusive
│ │ │ │ ├── .bower.json
│ │ │ │ ├── jquery.validate.unobtrusive.min.js
│ │ │ │ └── jquery.validate.unobtrusive.js
│ │ ├── css
│ │ │ ├── site.min.css
│ │ │ └── site.css
│ │ └── images
│ │ │ ├── banner2.svg
│ │ │ ├── banner1.svg
│ │ │ ├── banner3.svg
│ │ │ └── banner4.svg
│ ├── Pages
│ │ ├── _ViewStart.cshtml
│ │ ├── _ViewImports.cshtml
│ │ ├── About.cshtml
│ │ ├── Index.cshtml.cs
│ │ ├── About.cshtml.cs
│ │ ├── Contact.cshtml
│ │ ├── Error.cshtml.cs
│ │ ├── Contact.cshtml.cs
│ │ ├── Error.cshtml
│ │ ├── _ValidationScriptsPartial.cshtml
│ │ ├── _Layout.cshtml
│ │ └── Index.cshtml
│ ├── appsettings.json
│ ├── appsettings.Development.json
│ ├── Dockerfile
│ ├── Controllers
│ │ └── StatusController.cs
│ ├── VstsDockerBuild.WebApp.csproj
│ ├── bundleconfig.json
│ ├── Program.cs
│ └── Startup.cs
├── VstsDockerBuild.Shared
│ ├── VstsDockerBuild.Shared.csproj
│ └── Foo.cs
└── VstsDockerBuild.PongService
│ ├── VstsDockerBuild.PongService.csproj
│ ├── Dockerfile
│ ├── Program.cs
│ └── Startup.cs
├── .gitattributes
├── tests
├── VstsDockerBuild.Tests
│ ├── Dockerfile
│ ├── UnitTest1.cs
│ └── VstsDockerBuild.Tests.csproj
└── VstsDockerBuild.IntegrationTests
│ ├── Dockerfile
│ ├── VstsDockerBuild.IntegrationTests.csproj
│ ├── PongServiceIntegrationTests.cs
│ └── WebAppIntegrationTests.cs
├── .dockerignore
├── docker-compose.ci.build.yml
├── docker-compose.tests.yml
├── docker-compose.yml
├── docker-compose.integration-tests-vsts.yml
├── docker-compose.override.yml
├── docker-compose.dcproj
├── docker-compose.integration-tests.yml
├── LICENSE
├── README.md
├── VstsDockerBuild.sln
└── .gitignore
/src/VstsDockerBuild.WebApp/wwwroot/js/site.min.js:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/src/VstsDockerBuild.WebApp/wwwroot/js/site.js:
--------------------------------------------------------------------------------
1 | // Write your Javascript code.
2 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | # Auto detect text files and perform LF normalization
2 | * text=auto
3 |
--------------------------------------------------------------------------------
/src/VstsDockerBuild.WebApp/Pages/_ViewStart.cshtml:
--------------------------------------------------------------------------------
1 | @{
2 | Layout = "_Layout";
3 | }
4 |
--------------------------------------------------------------------------------
/src/VstsDockerBuild.WebApp/wwwroot/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/christiansparre/VstsDockerBuild/HEAD/src/VstsDockerBuild.WebApp/wwwroot/favicon.ico
--------------------------------------------------------------------------------
/tests/VstsDockerBuild.Tests/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM microsoft/dotnet:2.0-sdk-jessie AS build
2 |
3 | COPY . ./app
4 | WORKDIR /app/tests/VstsDockerBuild.Tests
5 | RUN dotnet restore
--------------------------------------------------------------------------------
/src/VstsDockerBuild.WebApp/Pages/_ViewImports.cshtml:
--------------------------------------------------------------------------------
1 | @using VstsDockerBuild.WebApp
2 | @namespace VstsDockerBuild.WebApp.Pages
3 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
4 |
--------------------------------------------------------------------------------
/tests/VstsDockerBuild.IntegrationTests/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM microsoft/dotnet:2.0-sdk-jessie AS build
2 |
3 | COPY . ./app
4 | WORKDIR /app/tests/VstsDockerBuild.IntegrationTests
5 | RUN dotnet restore
--------------------------------------------------------------------------------
/.dockerignore:
--------------------------------------------------------------------------------
1 | .dockerignore
2 | .env
3 | .git
4 | .gitignore
5 | .vs
6 | .vscode
7 | docker-compose.yml
8 | docker-compose.*.yml
9 | */bin
10 | */obj
11 | !obj/Docker/publish/*
12 | !obj/Docker/empty/
13 |
--------------------------------------------------------------------------------
/src/VstsDockerBuild.Shared/VstsDockerBuild.Shared.csproj:
--------------------------------------------------------------------------------
1 |
Use this area to provide additional information.
10 | -------------------------------------------------------------------------------- /src/VstsDockerBuild.WebApp/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "IncludeScopes": false, 4 | "LogLevel": { 5 | "Default": "Debug", 6 | "System": "Information", 7 | "Microsoft": "Information" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/VstsDockerBuild.WebApp/wwwroot/css/site.min.css: -------------------------------------------------------------------------------- 1 | body{padding-top:50px;padding-bottom:20px}.body-content{padding-left:15px;padding-right:15px}.carousel-caption p{font-size:20px;line-height:1.4}.carousel-inner .item img[src$=".svg"]{width:100%}#qrCode{margin:15px}@media screen and (max-width:767px){.carousel-caption{display:none}} -------------------------------------------------------------------------------- /docker-compose.ci.build.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | ci-build: 5 | image: microsoft/aspnetcore-build:1.0-2.0 6 | volumes: 7 | - .:/src 8 | working_dir: /src 9 | command: /bin/bash -c "dotnet restore ./VstsDockerBuild.sln && dotnet publish ./VstsDockerBuild.sln -c Release -o ./obj/Docker/publish" 10 | -------------------------------------------------------------------------------- /docker-compose.tests.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | vstsdockerbuild.tests: 5 | environment: 6 | - BLOWUP 7 | image: vstsdockerbuild.tests 8 | build: 9 | context: . 10 | dockerfile: tests/VstsDockerBuild.Tests/Dockerfile 11 | entrypoint: dotnet test --logger trx --results-directory /var/temp 12 | volumes: 13 | - /opt/vsts/work/_temp:/var/temp -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | vstsdockerbuild.webapp: 5 | image: vstsdockerbuild.webapp 6 | build: 7 | context: . 8 | dockerfile: src/VstsDockerBuild.WebApp/Dockerfile 9 | 10 | vstsdockerbuild.pongservice: 11 | image: vstsdockerbuild.pongservice 12 | build: 13 | context: . 14 | dockerfile: src/VstsDockerBuild.PongService/Dockerfile 15 | 16 | -------------------------------------------------------------------------------- /src/VstsDockerBuild.WebApp/Pages/Index.cshtml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc; 6 | using Microsoft.AspNetCore.Mvc.RazorPages; 7 | 8 | namespace VstsDockerBuild.WebApp.Pages 9 | { 10 | public class IndexModel : PageModel 11 | { 12 | public void OnGet() 13 | { 14 | 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /docker-compose.integration-tests-vsts.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | vstsdockerbuild.webapp: 5 | image: sparreio.azurecr.io/vstsdockerbuild.webapp 6 | 7 | vstsdockerbuild.pongservice: 8 | image: sparreio.azurecr.io/vstsdockerbuild.pongservice 9 | 10 | vstsdockerbuild.integrationtests: 11 | entrypoint: dotnet test --logger trx --results-directory /var/temp 12 | volumes: 13 | - /opt/vsts/work/_temp:/var/temp 14 | -------------------------------------------------------------------------------- /docker-compose.override.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | vstsdockerbuild.webapp: 5 | environment: 6 | - ASPNETCORE_ENVIRONMENT=Development 7 | - PongService=http://vstsdockerbuild.pongservice 8 | ports: 9 | - "8080:80" 10 | depends_on: 11 | - vstsdockerbuild.pongservice 12 | 13 | vstsdockerbuild.pongservice: 14 | environment: 15 | - ASPNETCORE_ENVIRONMENT=Development 16 | ports: 17 | - "80" 18 | 19 | -------------------------------------------------------------------------------- /src/VstsDockerBuild.WebApp/Pages/About.cshtml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Threading.Tasks; 5 | using Microsoft.AspNetCore.Mvc.RazorPages; 6 | 7 | namespace VstsDockerBuild.WebApp.Pages 8 | { 9 | public class AboutModel : PageModel 10 | { 11 | public string Message { get; set; } 12 | 13 | public void OnGet() 14 | { 15 | Message = "Your application description page."; 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /src/VstsDockerBuild.PongService/VstsDockerBuild.PongService.csproj: -------------------------------------------------------------------------------- 1 |
13 | Request ID: @Model.RequestId
14 |
19 | Swapping to Development environment will display more detailed information about the error that occurred. 20 |
21 |22 | Development environment should not be enabled in deployed applications, as it can result in sensitive information from exceptions being displayed to end users. For local debugging, development environment can be enabled by setting the ASPNETCORE_ENVIRONMENT environment variable to Development, and restarting the application. 23 |
24 | -------------------------------------------------------------------------------- /docker-compose.integration-tests.yml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | 3 | services: 4 | vstsdockerbuild.webapp: 5 | image: vstsdockerbuild.webapp 6 | environment: 7 | - ASPNETCORE_ENVIRONMENT=Development 8 | - PongService=http://vstsdockerbuild.pongservice 9 | - BLOWUP 10 | ports: 11 | - "80" 12 | depends_on: 13 | - vstsdockerbuild.pongservice 14 | logging: 15 | driver: "none" 16 | 17 | vstsdockerbuild.pongservice: 18 | image: vstsdockerbuild.pongservice 19 | environment: 20 | - ASPNETCORE_ENVIRONMENT=Development 21 | ports: 22 | - "80" 23 | logging: 24 | driver: "none" 25 | 26 | vstsdockerbuild.integrationtests: 27 | image: vstsdockerbuild.integrationtests 28 | build: 29 | context: . 30 | dockerfile: tests/VstsDockerBuild.IntegrationTests/Dockerfile 31 | entrypoint: dotnet test 32 | environment: 33 | - PongService=http://vstsdockerbuild.pongservice 34 | - WebApp=http://vstsdockerbuild.webapp 35 | depends_on: 36 | - vstsdockerbuild.pongservice 37 | - vstsdockerbuild.webapp 38 | 39 | -------------------------------------------------------------------------------- /src/VstsDockerBuild.WebApp/wwwroot/lib/jquery-validation/.bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jquery-validation", 3 | "homepage": "http://jqueryvalidation.org/", 4 | "repository": { 5 | "type": "git", 6 | "url": "git://github.com/jzaefferer/jquery-validation.git" 7 | }, 8 | "authors": [ 9 | "Jörn Zaefferer@bar46 | @RenderBody() 47 |