In this segment, we will discuss containers. Containerization is another innovation that numerous ASP.NET engineers may not yet have a great deal of involvement with. Docker is the most well known containerization tool today. I’ll clarify how Docker functions at high level and why it’s a decent decision for deploying ASP.NET Core applications. When you set up a server or virtual machine to host your application, think about all the stuff that you need to do. Install dependencies like .NET and third-party libraries, configure things like IIS and NGINX, add environment variables and so on. If you have multiple servers, you have to do this setup manually on each one.
In this section, i will demonstrate how to publish your ASP.NET APP on Linux VM using Docker extension of Visual Studio 2015. So, before we begin, we must need VS 2015 RC candidate installed on our machine. Then, we do need Docker extension for visual studio installed on our machine. You can install the same from Extension and Updates as shown below in the screen shot.
Then, I need to create new ASP.NET 5 website as shown below in the screen shot.
Once, site got created successfully; then simply rt-click on the website and say Publish as shown below.
Then, It will provide the below options.
Now, if you don’t have any subscription, then you need to create one and provide the details in the next screen. For privacy reason, my details are hidden.
Then, it will give the below confirmation message.
When you say ok here, it will build the app and prepare for hosting. You can check the status of the same in the output window when Azure is provisioning things for you. This process will take some time.
Once, its completed. It will show the confirmation message as shown below.
Now, I will come to and say publish, this time it will come in connections tab with below VM credentials.
Then you can click on validate Connection for confirming every thing is correct. once verified, then you can go ahead and click next and publish the app.
while building the app, you can check the status in the output window.
Once done. It will launch the same in the browser. Also, it launched in my new Project Spartan browser as i’m running on windows 10 machine.
Thanks for Joining me.
5,082 total views, no views today
Subscribe For Latest Updates!
Signup for My View newsletter and get notified when I publish new articles for free!