Slide 1

Slide 1 text

.NET Core on Linux within Docker Container ! 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 1

Slide 2

Slide 2 text

Quotes https://docs.microsoft.com/en-us/ dotnet/articles/core/docker/ building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 2

Slide 3

Slide 3 text

Building Docker Images for .NET Core Applications1 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 3

Slide 4

Slide 4 text

When building Docker images for developers, we focused on three main scenarios:1 » Images used to develop .NET Core apps » Images used to build .NET Core apps » Images used to run .NET Core apps Why three images? 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 4

Slide 5

Slide 5 text

Images used to develop .NET Core apps1 Development How fast can you iterate changes, and the ability to debug the changes. The size of the image isn't as important, rather can you make changes to your code and see them quickly. Some of our tools, like yo docker for use in VS Code use this image during development time. 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 5

Slide 6

Slide 6 text

Images used to build .NET Core apps1 Build What's needed to compile your app. This includes the compiler and any other dependencies to optimize the binaries. This image isn't the image you deploy, rather it's an image you use to build the content you place into a production image. This image would be used in your continuous integration, or build environment. For instance, rather than installing all the dependencies directly on a build agent, the build agent would instance a build image to 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 6

Slide 7

Slide 7 text

Images used to run .NET Core apps1 Production How fast you can deploy and start your image. This image is small so it can quickly travel across the network from your Docker Registry to your Docker hosts. The contents are ready to run enabling the fastest time from Docker run to processing results. In the immutable Docker model, there's no need for dynamic compilation of code. The content you place in this image would be limited to the binaries and content needed to run 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 7

Slide 8

Slide 8 text

Docker image variations1 To achieve the goals above, we provide image variants under microsoft/dotnet. » microsoft/dotnet:-sdk » microsoft/dotnet:-core 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 8

Slide 9

Slide 9 text

microsoft/dotnet:-sdk1 that is microsoft/dotnet:1.0.0-preview2-sdk, this image contains the .NET Core SDK which includes the .NET Core and Command Line Tools (CLI). This image maps to the development scenario. You would use this image for local development, debugging and unit testing. For example, all the development you do, before you check in your code. This image can also be used for your build scenarios. 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 9

Slide 10

Slide 10 text

microsoft/dotnet:-core1 that is microsoft/dotnet:1.0.0-core, image which runs portable .NET Core applications and it is optimized for running your application in production. It does not contain the SDK, and is meant to take the optimized output of dotnet publish. The portable runtime is well suited for Docker container scenarios as running multiple containers benefit from shared image layers. 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 10

Slide 11

Slide 11 text

Alternative images1 In addition to the optimized scenarios of development, build and production, we provide additional images: » microsoft/dotnet:-onbuild » microsoft/dotnet:-core-deps 1 https://docs.microsoft.com/en-us/dotnet/articles/core/docker/building-net-docker-images 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 11

Slide 12

Slide 12 text

Docker images » microsoft/dotnet:-sdk » microsoft/dotnet:-core » microsoft/dotnet:-onbuild » microsoft/dotnet:-core-deps 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 12

Slide 13

Slide 13 text

REPOSITORY TAG IMAGE ID SIZE microsoft/dotnet 1.0.0-preview2-onbuild 19b6a6c4b1db 540.4 MB microsoft/dotnet onbuild 19b6a6c4b1db 540.4 MB microsoft/dotnet 1.0.0-preview2-sdk a92c3d9ad0e7 540.4 MB microsoft/dotnet core 5224a9f2a2aa 253.2 MB microsoft/dotnet 1.0.0-core-deps c981a2eebe0e 166.2 MB microsoft/dotnet core-deps c981a2eebe0e 166.2 MB microsoft/dotnet latest 03c10abbd08a 540.4 MB microsoft/dotnet 1.0.0-core b8da4a1fd280 253.2 MB 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 13

Slide 14

Slide 14 text

1.0.0 GA » 1.0.0-preview2-sdk » 1.0.0-core 1.0.1 GA » 1.0.0-preview2-sdk » 1.0.1-core 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 14

Slide 15

Slide 15 text

1.1 Preview 12 2016/10/25 2 https://blogs.msdn.microsoft.com/webdev/2016/10/25/announcing-asp-net-core-1-1-preview-1/ 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 15

Slide 16

Slide 16 text

1.1 Preview 1 » 1.0.0-preview2.1-sdk » 1.1.0-preview1-runtime, runtime 1.0.1 GA » 1.0.0-preview2-sdk, latest » 1.0.1-core, core 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 16

Slide 17

Slide 17 text

Base Image $ cat /etc/issue Debian GNU/Linux 8 \n \l 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 17

Slide 18

Slide 18 text

Kunihiro Morita @morita92hiro morita92hiro http://hawaku.hateblo.jp AlterBooth,inc. Solutions Architect 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 18

Slide 19

Slide 19 text

Microsoft Tech Summit 11/1-2 http://microsoft-events.jp/mstechsummit/ 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 19

Slide 20

Slide 20 text

Happy Halloween! 2016/10/31 Fukuoka.NET (Fukuten) #4 ʙ.NET Core Partyʙ 20