Publishing your ASP.NET App to Linux in 5 minutes with Docker


Hi Friends,

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.

1st

Then, I need to create new ASP.NET 5 website as shown below in the screen shot.

1st

2nd

3rd

Once, site got created successfully; then simply rt-click on the website and say Publish as shown below.

2nd

Then, It will provide the below options.

3rd

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.

4th

5th

Then, it will give the below confirmation message.

6th

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.

7th

Once, its completed. It will show the confirmation message as shown below.

8th

Now, I will come to and say publish, this time it will come in connections tab with below VM credentials.

9th

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.

10th

11th

while building the app, you can check the status in the output window.

12th

13th

14th

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.

15th

Thanks for Joining me.

Rahul Sahay
Happy Coding

4,029 total views, 3 views today