Edition 0 Updated to asp. Net core 0


FROM mcr.microsoft.com/windows/servercore  LABEL



Yüklə 11,82 Mb.
Pdf görüntüsü
səhifə87/288
tarix12.07.2023
ölçüsü11,82 Mb.
#136458
1   ...   83   84   85   86   87   88   89   90   ...   288
NET-Microservices-Architecture-for-Containerized-NET-Applications

FROM
mcr.microsoft.com/windows/servercore 
LABEL
Description=
"IIS"
Vendor=
"Microsoft"
Version=
"10"
RUN
powershell -Command Add-WindowsFeature Web-Server 
CMD

"ping"

"localhost"

"-t"

In this case, we are using a Windows Server Core base image (the FROM setting) and installing IIS with 
a PowerShell command (the RUN setting). In a similar way, you could also use PowerShell commands 
to set up additional components like ASP.NET 4.x, .NET Framework 4.6, or any other Windows 
software. For example, the following command in a Dockerfile sets up ASP.NET 4.5: 
RUN
powershell add-windowsfeature web-asp-net45 
Additional resources 

aspnet-docker/Dockerfile.
Example PowerShell commands to run from dockerfiles to include 
Windows features. 


92 
CHAPTER 4 | Development process for Docker-based applications 
https://github.com/Microsoft/aspnet-docker/blob/master/4.7.1-windowsservercore-
ltsc2016/runtime/Dockerfile
 


93 
CHAPTER 5 | Designing and Developing Multi-Container and Microservice-Based .NET Applications 
CHAPTER 

Designing and Developing 
Multi-Container and 
Microservice-Based .NET 
Applications 
Developing containerized microservice applications means you are building multi-container 
applications. However, a multi-container application could also be simpler

for example, a three-tier 
application

and might not be built using a microservice architecture.
Earlier we raised the question “Is Docker necessary when building a microservice architecture?” The 
answer is a clear no. Docker is an enabler and can provide significant benefits, but containers and 
Docker are not a hard requirement for microservices. As an example, you could create a 
microservices-based application with or without Docker when using Azure Service Fabric, which 
supports microservices running as simple processes or as Docker containers. 
However, if you know how to design and develop a microservices-based application that is also based 
on Docker containers, you will be able to design and develop any other, simpler application model. 
For example, you might design a three-tier application that also requires a multi-container approach. 
Because of that, and because microservice architectures are an important trend within the container 
world, this section focuses on a microservice architecture implementation using Docker containers. 
Design a microservice-oriented application 
This section focuses on developing a hypothetical server-side enterprise application. 

Yüklə 11,82 Mb.

Dostları ilə paylaş:
1   ...   83   84   85   86   87   88   89   90   ...   288




Verilənlər bazası müəlliflik hüququ ilə müdafiə olunur ©azkurs.org 2024
rəhbərliyinə müraciət

gir | qeydiyyatdan keç
    Ana səhifə


yükləyin