{"id":5867,"date":"2017-10-24T18:07:50","date_gmt":"2017-10-25T01:07:50","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/heaths\/?p=3875"},"modified":"2019-02-17T15:29:14","modified_gmt":"2019-02-17T22:29:14","slug":"how-to-install-builds-tools-in-a-docker-container","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/setup\/how-to-install-builds-tools-in-a-docker-container\/","title":{"rendered":"How to install Builds Tools in a Docker container"},"content":{"rendered":"<p>After working through a few issues, we have posted <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/install\/build-tools-container\">how to install Visual Studio Build Tools 2017 into a Docker container<\/a>. A Build Tools container can be very useful for continuous integration \/ continuous delivery (CI\/CD) scenarios. You can also use these same steps for Visual Studio if Build Tools does not currently have everything you need.<\/p>\n<p>Of <a href=\"https:\/\/docs.microsoft.com\/visualstudio\/install\/build-tools-container-issues\">note<\/a>:<\/p>\n<ul>\n<li>You can&#8217;t install on a base image using microsoft\/windowsservercore:10.0.14393.1593. There was a bug preventing the bootstrapper from launching in a container. Older and newer images tested worked fine.<\/li>\n<li>You can only install Windows SDK v10.0.14393 or newer, which means some projects may need to be retargeted if you want to use a container for CI\/CD.<\/li>\n<li>You&#8217;ll need to reconfigure Docker for Windows to allow larger disk sizes. To your daemon configuration file you&#8217;ll need to add: <code>\"storage-opts\": [ \"size=120GB\" ]<\/code> (or less; the space itself isn&#8217;t consumed unless actually used).<\/li>\n<li>You&#8217;ll need to install using more than the default 1GB of memory: <code>docker build -m 2GB<\/code>. You don&#8217;t necessarily need to <code>docker run<\/code> like that unless building your code requires it.<\/li>\n<\/ul>\n<p>This is only the beginning! Be sure to file new issues on the <a href=\"https:\/\/developercommunity.visualstudio.com\">Developer Community<\/a> web site if you don&#8217;t see any existing ones. We&#8217;ll keep working to make this process better.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Preview new documentation for how to install Build Tools for Visual Studio 2017 into a Docker container.<\/p>\n","protected":false},"author":389,"featured_media":15107,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[8,16,20,45,57],"class_list":["post-5867","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-containerization","tag-docker","tag-installation","tag-visual-studio","tag-vs2017"],"acf":[],"blog_post_summary":"<p>Preview new documentation for how to install Build Tools for Visual Studio 2017 into a Docker container.<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/5867","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/users\/389"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/comments?post=5867"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/posts\/5867\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media\/15107"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/media?parent=5867"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/categories?post=5867"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/setup\/wp-json\/wp\/v2\/tags?post=5867"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}