Hoppa till huvudinnehåll
Megafonikon

GitHub Universe on the Road

GitHub Universe is going on the road. Find a stop near you and join the experience.

Creating a Containerized .NET Application

september 22, 2021 | 12:00 - 1:00 fm (UTC) Koordinerad universell tid

Är du redo att komma igång med AI och de senaste teknikerna? Microsoft Reactor tillhandahåller evenemang, utbildning och communityresurser som hjälper utvecklare, entreprenörer och nystartade företag att bygga vidare på AI-teknik med mera. Följ med!

Creating a Containerized .NET Application

september 22, 2021 | 12:00 - 1:00 fm (UTC) Koordinerad universell tid

Är du redo att komma igång med AI och de senaste teknikerna? Microsoft Reactor tillhandahåller evenemang, utbildning och communityresurser som hjälper utvecklare, entreprenörer och nystartade företag att bygga vidare på AI-teknik med mera. Följ med!

Gå tillbaka

Creating a Containerized .NET Application

september 22, 2021 | 12:00 - 1:00 fm (UTC) Koordinerad universell tid

  • Format:
  • alt##LivestreamLivestream

Område: DevSecOps och utvecklarverktyg

Språk: Engelska

Containers are a tool that allows you to execute your applications inside of a lightweight, isolated environment built on top of a shared kernel. This allows you to create reproducible environments that can be relocated and redeployed quickly with similar results meaning that a container can be built once and then run on your local machine or in the cloud. This session is intended to introduce some of the concepts behind containers and how you can interact with them. We'll also be building our own local container using Docker that is able to run a .NET application for us. You will learn what a container is, some of the common use cases and the steps you need to take to build, run and interact with your containers.

A container image is a blueprint that represents the filesystem structure and configuration needed to create a container. These images are typically built in a series of layers describing the other images it is based on or the steps required to create the initial image. These steps might COPY files from your local filesystem into the image, RUN code or scripts or a number of other tasks.

Containers themselves are instances of the containers image. Multiple containers of the same image can be created and run simultaneously, in environments that are isolated from one another. Each container instance will have its own filesystem, memory and network interface that can be configured uniquely for that container.

We'll be creating a quick .NET application in C# and then building a Dockerfile that describes the image we will be creating. Using that image we'll build and run a container that executes our app. The code we'll write will be able to be run on your own machine but will require .NET and Docker.

Speaker:
Sam Wronski, Cloud Advocate, Microsoft

Förutsättningar

You should have a working copy of .NET installed. This means you should be able to run dotnet in your terminal of choice successfully.
Some familiarity with writing C# code is expected. Installation instructions for .NET are located here at https://aka.ms/DotNetHelloWorldTutorial

You should have a working copy of Docker running. This means you should be able to run docker run hello-world in your terminal of choice successfully, docker will pull this image for you if it is not already on your local machine. Installation instructions for Docker are located here at https://aka.ms/GetDocker

Troubleshooting: on Docker for Windows you have the option to choose between Linux and Windows containers. We will be using Linux based containers.

You'll also want your code editor of choice.
We'll be using Visual Studio Code (https://code.visualstudio.com/) with the C# (https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp) and Docker Extension (https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker)

Talare

Relaterade evenemang

Händelserna nedan kan också vara av intresse för dig. Se till att besöka vår Reaktorns hemsida för att se alla tillgängliga evenemang.

Delar av denna sida kan vara maskin- eller AI-översatta.