{"id":9293,"date":"2017-09-01T17:28:23","date_gmt":"2017-09-01T17:28:23","guid":{"rendered":"https:\/\/www.cloudiqtech.com\/?p=6426"},"modified":"2019-09-19T06:35:28","modified_gmt":"2019-09-19T06:35:28","slug":"image2docker-asp-net-websites-part-1","status":"publish","type":"post","link":"https:\/\/www.cloudiqtech.com\/image2docker-asp-net-websites-part-1\/","title":{"rendered":"Image2docker for ASP.NET Websites: Part 1"},"content":{"rendered":"\n
This is a continuation of the blog post that covers how to setup and run Image2Docker on local machines.<\/span><\/p>\n When it completes, the cmdlet generates a Dockerfile which turns that web server into a Docker image. The Dockerfile has instructions to install IIS and ASP.NET, copy in the website content, and create the sites in IIS.<\/span><\/p>\n The qa-webserver-01.vhd contains Two websites. One is AspNet MVC app and another one is the WEB API.<\/span><\/p>\n When the docker commandlet completes, the cmdlet generates a Dockerfile which turns that web server into a Docker image. The Dockerfile has instructions to install IIS and ASP.NET, copy in the website content, and create the sites in IIS.<\/span><\/p>\n The Image2Docker creates the website contents for ASPNET MVC app & WEB API and extract the dockerfile containing the websites configured on the image file.<\/span><\/p>\n \n <\/div>\n","protected":false},"excerpt":{"rendered":" This is a continuation of the blog post that covers how to setup and run Image2Docker on local machines. Local Machines This mode looks for the IIS installed on the local machine and converts the IIS sites \/virtual directories\/ applications to docker files associate artifacts. Run the following command ConvertTo-Dockerfile ` -Local ` -OutputPath {{OutputPath}} […]<\/p>\n","protected":false},"author":3,"featured_media":9756,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"brizy-blank-template.php","format":"standard","meta":{"inline_featured_image":false},"categories":[65],"tags":[],"yoast_head":"\nLocal Machines<\/h5>\n
\n
\n
\n ConvertTo-Dockerfile `\n -Local `\n -OutputPath {{OutputPath}} `\n -Artifact IIS `\t\n -Verbose<\/code> <\/pre>\n <\/li>\n
\n
\n ConvertTo-Dockerfile -Local -OutputPath c:\\docker_repo\\iis -Artifact IIS -Verbose<\/code> <\/pre>\n <\/li>\n <\/ul>\n
Disk Images<\/h5>\n
\n
\n
\n ConvertTo-Dockerfile `\n -ImagePath {{ImagePath}} `\n -OutputPath {{OutputPath}} `\n -Artifact IIS `\t\n -Verbose<\/code> <\/pre>\n <\/li>\n
\n
\n ConvertTo-Dockerfile -ImagePath C:\\vhds\\qa-webserver-01.vhd -OutputPath \n c:\\docker_repo\\iis -Artifact IIS -Verbose<\/code> <\/pre>\n <\/li>\n <\/ul>\n