Skip to content

Port to asp.net core of DockerCon 2016 Docker for Developers

Notifications You must be signed in to change notification settings

g7ed6e/dockercon16

 
 

Repository files navigation

Cadavres Exquis from "DockerCon 2016 edition" port to AspNetCore 1.1.0

Default usage

Setup (build and run AspNetCore app within docker)

docker-compose build

Start

docker-compose up -d

Open a browser on http://localhost. Refresh. It should always be the same random sentence.

Scale the backend

docker-compose scale words-api=20

Open a browser on http://localhost. Refresh. It should be a new random sentence each time.

Alternate usage

Please see https://blogs.msdn.microsoft.com/stevelasker/2016/09/29/building-optimized-docker-images-with-asp-net-core/

Setup (build AspNetCore in a dedicated container then use optimized aspnetcore image)

docker-compose -f docker-compose-build.yml up
docker-compose -f docker-compose-optimized.yml build

Start

docker-compose -f docker-compose-optimized.yml up -d

Open a browser on http://localhost. Refresh. It should always be the same random sentence.

Scale the backend

docker-compose -f docker-compose-optimized.yml scale words-api=20

Open a browser on http://localhost. Refresh. It should be a new random sentence each time.

About

Port to asp.net core of DockerCon 2016 Docker for Developers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 37.8%
  • JavaScript 21.9%
  • HTML 17.4%
  • CSS 16.4%
  • Nginx 3.8%
  • Shell 1.9%
  • PostScript 0.8%