Upload
mark-rendle
View
3.396
Download
1
Embed Size (px)
Citation preview
ASP.NET in Docker,on Linux, in Azure
[email protected] – twitter.com/markrendle – blog.rendle.io
Caveat Observator
ASP.NET Core
In case you hadn’t heard…
ASP.NET Core history 1990s: “Classic” ASP
2000s: ASP.NET WebForms
2010s: ASP.NET MVC & WebAPI
2014: “Project K” 2015: ASP.NET 5 2016: ASP.NET Core, on .NET Core
.NET Core
CoreCLRCoreFX
SDK ASP.NET Core Apps
CoreRT
.NET Core is… Cross-Platform: Windows, Linux, MacOS Open Source: MIT licenses, on GitHub, accepting pull
requests Distributed as small, focused packages via NuGet
Including the CLR, the tools and the compiler
.NET Core is not… A huge runtime to install and maintain A desktop application framework Finished yet
.NET Core today ASP.NET Core: 1.0.0-rc2-final .NET Core:
Runtime: CoreCLR: 1.0.0-rc2 Core FX: 1.0.0-rc2
SDK: CLI: 1.0.0-rc2-preview1 VS Tools: 1.0.0-rc2-preview1
.NET Core “RTM” “End of June” Runtime will be 1.0 RTM SDKs will still be “Preview” More APIs to come
GET ON WITH IT
Editors
Docker
About Docker Linux Containers Like very, very small Virtual Machines
Run on host kernel Sandboxed Own file-system with Linux root
Different distros on same host
Docker Words Container (n):
A running process managed by the Docker Engine Image (n):
A file-system in a file; what a Container is run from Dockerfile (n):
The recipe to create an Image Registry (n):
A place to keep Images
Docker for Windows(BETA)
Docker for Windows Runs a Linux host on Hyper-V Docker command-line tools:
docker docker-compose
Not for running Windows Containers (yet)
Docker Tools for VS 2015(You’ll like this)
Linux in Azure
To Do List: Create Azure RM Resource Group Set up networking:
Subnet NIC IP address and DNS Open port 80 inbound
Create Storage Account and Container for VHD Create Ubuntu 16.04 VM Install Docker
Terraforming
To Do List:
terraform apply
Docker Registry
Steps to publish
$ docker login
$ docker tag my_image repository/name
$ docker push repository/name
Steps to deploy
$ docker pull repository/name
# -d runs "detached" like a service# -p binds the container port to the host port$ docker run –d –p 80:80 repository/name
Docker EcosystemSwarm:
Manage Docker host clusters
Docker Subscription:Mini-PaaS in public Cloud
Docker Trusted RegistryUniversal Control Plane
Azure Container Service
http://dot.net/
http://docker.com/
http://azure.microsoft.com/
http://terraform.io/
RED PILL?
[email protected] – twitter.com/markrendle – blog.rendle.io