Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using docker containers

Similar presentations


Presentation on theme: "Using docker containers"— Presentation transcript:

1 Using docker containers
for your solution Sergii Bielskyi

2 Introduce myself Sergii Bielskyi Cloud Solution Architect
Azure, IoT, ACS, Microservices qiio.com

3 Discussion about Using containers New infrastructure needed for app
Overview of azure services (AKS, ACS, ACR, ….) Advantage or disadvantage using containers Building own solution that oriented on containers Demo

4 New infrastructure needed for application
Microservices provide a flexible approach to developing and deploying modern applications. Instead of one large monolithic application, microservices break down applications into smaller components with key features and functions that all communicate with each other. These services are developed and deployed independently by small, focused teams. This approach results in less dependency among components, making it easier for developers to build, improve, and scale specific parts of an app without risking the whole application. Teams can focus on developing or refining specific capabilities rather than the entire app, opening the door to daily (or even more frequent) updates and additions to an application. This also makes developing and testing software faster and easier.

5 Overview of Azure services
ACI offer significant startup benefits over virtual machines. Azure Container Instances can start containers in Azure in seconds, without the need to provision and manage VMs Azure Kubernetes Service (AKS) manages your hosted Kubernetes environment, making it quick and easy to deploy and manage containerized applications without container orchestration expertise. It also eliminates the burden of ongoing operations and maintenance by provisioning, upgrading, and scaling resources on demand, without taking your applications offline. Azure Container Registry allows you to store images for all types of container deployments including DC/OS, Docker Swarm, Kubernetes, and Azure services such as App Service, Batch, Service Fabric, and others. Your DevOps team can manage the configuration of apps isolated from the configuration of the hosting environment. Microservices provide a flexible approach to developing and deploying modern applications. Instead of one large monolithic application, microservices break down applications into smaller components with key features and functions that all communicate with each other. These services are developed and deployed independently by small, focused teams. This approach results in less dependency among components, making it easier for developers to build, improve, and scale specific parts of an app without risking the whole application. Teams can focus on developing or refining specific capabilities rather than the entire app, opening the door to daily (or even more frequent) updates and additions to an application. This also makes developing and testing software faster and easier. Azure App Service Web Apps (or just Web Apps) is a service for hosting web applications, REST APIs, and mobile back ends. You can develop in your favorite language, be it .NET, .NET Core, Java, Ruby, Node.js, PHP, or Python.

6 Advantage or disadvantage
Price + +++ ++ ++ +++ ++ Scale + ++ +++ Monitor ++ +++ ++ Resources Microservices provide a flexible approach to developing and deploying modern applications. Instead of one large monolithic application, microservices break down applications into smaller components with key features and functions that all communicate with each other. These services are developed and deployed independently by small, focused teams. This approach results in less dependency among components, making it easier for developers to build, improve, and scale specific parts of an app without risking the whole application. Teams can focus on developing or refining specific capabilities rather than the entire app, opening the door to daily (or even more frequent) updates and additions to an application. This also makes developing and testing software faster and easier. + ++ +++ Schedule

7 Building own solution that oriented on containers
Create web api core using VS code dotnet new webapi Create docker file FROM microsoft/dotnet:latest COPY . /api_test WORKDIR /api_test RUN ["dotnet", "restore"] RUN ["dotnet", "build"] ENV ASPNETCORE_URLS EXPOSE 5000/tcp ENTRYPOINT ["dotnet", "run"] Build container image docker build --rm -f Dockerfile -t api_test:dev .

8 Building own solution that oriented on containers
Tag to ACR docker tag acrhub.azurecr.io/api_test:dev Push to ACR docker push acrhub.azurecr.io/api_test:dev Testing container image locally, in ACI, in Web app for containers Deploy multi-container solution az group deployment create --resource-group API-TEST --template-file deploy.json

9 Building own solution that oriented on containers
A container group is a collection of containers that get scheduled on the same host machine. The containers in a container group share a lifecycle, local network, and storage volumes

10 Building own solution that oriented on containers
"resources": [ { "name": "apitest", "type": "Microsoft.ContainerInstance/containerGroups", "apiVersion": " preview", "location": "[resourceGroup().location]", "properties": { "containers": [ "image": "acrhub.azurecr.io/api_test:dev", "resources": { "requests": { "cpu": 1, "memoryInGb": 1.5 } }, "ports": [ "port": 5000 ] "osType": "Linux", "ipAddress": { "type": "Public", "ports": [ { "protocol": "tcp", "port": "5000" } ] }, "imageRegistryCredentials": [ "server": "acrhub.azurecr.io", "username": ”……", "password": ”…….."

11 Additional resources Azure.com service overviews Microsoft Docs - Documentation for container related services MSDN Channel 9 – Videos covering Azure and Containers Microsoft Virtual academy – online training courses

12 Thank you Q/A


Download ppt "Using docker containers"

Similar presentations


Ads by Google