{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/core-docs/pulls/comments/57495220","id":57495220,"diff_hunk":"@@ -0,0 +1,443 @@\n+#Introduction\n+\n+This tutorial details the tasks necessary to build and deploy\n+an ASP.NET Core microservice in a Docker container. During the course\n+of this tutorial, you'll learn:\n+\n+* How to generate an ASP.NET Core application using Yeoman\n+* How to create a development Docker environment\n+* How to build a Docker image based on an existing image.\n+* How to deploy your service into a Docker container.\n+\n+Along the way, you'll also see some C# language features:\n+\n+* How to convert C# objects into JSON payloads.\n+* Build immutable Data Transfer Objects\n+* Process incoming HTTP Requests and generate the HTTP Response\n+* Work with nullable value types\n+\n+## Why Docker?\n+\n+Docker makes it easy to create standard machine images to\n+host your services in a data center, or the public cloud. Docker\n+enables you to configure the image, and replicate it as needed to\n+scale the installation of your application.\n+\n+All the code in this tutorial will work in any .NET Core environment.\n+The additional tasks for a Docker installation will work for an ASP.NET\n+Core application. \n+\n+# Prerequisites\n+You’ll need to setup your machine to run .NET core. Instructions are\n+[here](http://dotnet.github.io/getting-started/). You can run this\n+application on Windows, Ubuntu Linux, OS X or in a Docker container. \n+You’ll need to install your favorite code editor. The descriptions below\n+use [Visual Studio Code](https://code.visualstudio.com/) which is an open\n+source, cross platform editor. However, you can use whatever tools you are\n+comfortable with.\n+\n+You'll also need to install the Docker engine. Instructions for that are\n+located [here](https://docs.docker.com/engine/installation/). Docker can\n+be installed in many Linux distributions, Mac OS, or Windows. The page\n+referenced above contains links to each of the available installations.\n+\n+You'll also need to install a number of command line tools that support\n+asp.net core development. The command line templates use yeoman, bower,\n+grunt, and gulp. You may already have many of these tools, but if not,\n+run the following command in your favorite shell:\n+\n+`npm install -g yo bower grunt-cli gulp`\n+\n+This instructs the node package manager (npm) to install the needed tools.\n+The '-g' option indicates that it is a global install, and those tools are\n+available system wide. (A local install scopes the package to a single\n+project). Once you've installed those core tools, you need to install\n+the yeoman asp.net template generators:\n+\n+Then, you can install ASP.NET template generator:\n+\n+`npm install -g generator-aspnet`\n+\n+# Create the Application\n+\n+Now that you've installed all the tools, create a new asp.net core\n+application. To use the command line generator, execute the following\n+yeoman command in your favorite shell:\n+\n+`yo aspnet`\n+\n+This command prompts you to select what type of application you want to\n+create. For this microservice, you want the simplest, most light weight\n+web application possible, so select 'Empty Application'. The template\n+will prompt you for a name. Select 'WeatherMicroservice'. \n+\n+The template creates six files for you:\n+\n+* A .gitignore, customized for asp.net core applications.\n+* A Startup.cs file. This contains the basis of the application.\n+* A project.json file. This is the build file for the application.\n+* A Dockerfile. This script creates a Docker image for the application.\n+* A wwwroot/readme.md. This contains links to other asp.net core resources.\n+* A wwwroot/web.config file. This contains basic configuration information.\n+\n+Let's run the template generated application. That's done using a series","path":"docs/tutorials/getting-started-with-csharp/microservices.md","position":83,"original_position":83,"commit_id":"58cfb55fece2991d0b9ce29a7fe5107ab210f592","original_commit_id":"58cfb55fece2991d0b9ce29a7fe5107ab210f592","user":{"login":"stevehoag","id":13489215,"avatar_url":"https://avatars.githubusercontent.com/u/13489215?v=3","gravatar_id":"","url":"https://api.github.com/users/stevehoag","html_url":"https://github.com/stevehoag","followers_url":"https://api.github.com/users/stevehoag/followers","following_url":"https://api.github.com/users/stevehoag/following{/other_user}","gists_url":"https://api.github.com/users/stevehoag/gists{/gist_id}","starred_url":"https://api.github.com/users/stevehoag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevehoag/subscriptions","organizations_url":"https://api.github.com/users/stevehoag/orgs","repos_url":"https://api.github.com/users/stevehoag/repos","events_url":"https://api.github.com/users/stevehoag/events{/privacy}","received_events_url":"https://api.github.com/users/stevehoag/received_events","type":"User","site_admin":false},"body":"We typically don't use \"we\" or \"let's\" - instead use \"Now you can run...\"","created_at":"2016-03-25T21:49:46Z","updated_at":"2016-03-25T21:49:46Z","html_url":"https://github.com/dotnet/core-docs/pull/365#discussion_r57495220","pull_request_url":"https://api.github.com/repos/dotnet/core-docs/pulls/365","_links":{"self":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/comments/57495220"},"html":{"href":"https://github.com/dotnet/core-docs/pull/365#discussion_r57495220"},"pull_request":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/365"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/core-docs/pulls/365","id":64204726,"html_url":"https://github.com/dotnet/core-docs/pull/365","diff_url":"https://github.com/dotnet/core-docs/pull/365.diff","patch_url":"https://github.com/dotnet/core-docs/pull/365.patch","issue_url":"https://api.github.com/repos/dotnet/core-docs/issues/365","number":365,"state":"open","locked":false,"title":"Create the docker server tutorial.","user":{"login":"BillWagner","id":493969,"avatar_url":"https://avatars.githubusercontent.com/u/493969?v=3","gravatar_id":"","url":"https://api.github.com/users/BillWagner","html_url":"https://github.com/BillWagner","followers_url":"https://api.github.com/users/BillWagner/followers","following_url":"https://api.github.com/users/BillWagner/following{/other_user}","gists_url":"https://api.github.com/users/BillWagner/gists{/gist_id}","starred_url":"https://api.github.com/users/BillWagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BillWagner/subscriptions","organizations_url":"https://api.github.com/users/BillWagner/orgs","repos_url":"https://api.github.com/users/BillWagner/repos","events_url":"https://api.github.com/users/BillWagner/events{/privacy}","received_events_url":"https://api.github.com/users/BillWagner/received_events","type":"User","site_admin":false},"body":"This tutorial creates a basic asp.net microservice, and installs it in a docker container.\r\n\r\n/cc @BethMassi, @shoag","created_at":"2016-03-25T20:36:45Z","updated_at":"2016-03-25T21:49:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"535eb6e7a9db5cee5a584a52822324b8ac2f3026","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/core-docs/pulls/365/commits","review_comments_url":"https://api.github.com/repos/dotnet/core-docs/pulls/365/comments","review_comment_url":"https://api.github.com/repos/dotnet/core-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/core-docs/issues/365/comments","statuses_url":"https://api.github.com/repos/dotnet/core-docs/statuses/58cfb55fece2991d0b9ce29a7fe5107ab210f592","head":{"label":"BillWagner:GettingStartedTutorialFour","ref":"GettingStartedTutorialFour","sha":"58cfb55fece2991d0b9ce29a7fe5107ab210f592","user":{"login":"BillWagner","id":493969,"avatar_url":"https://avatars.githubusercontent.com/u/493969?v=3","gravatar_id":"","url":"https://api.github.com/users/BillWagner","html_url":"https://github.com/BillWagner","followers_url":"https://api.github.com/users/BillWagner/followers","following_url":"https://api.github.com/users/BillWagner/following{/other_user}","gists_url":"https://api.github.com/users/BillWagner/gists{/gist_id}","starred_url":"https://api.github.com/users/BillWagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BillWagner/subscriptions","organizations_url":"https://api.github.com/users/BillWagner/orgs","repos_url":"https://api.github.com/users/BillWagner/repos","events_url":"https://api.github.com/users/BillWagner/events{/privacy}","received_events_url":"https://api.github.com/users/BillWagner/received_events","type":"User","site_admin":false},"repo":{"id":45638874,"name":"core-docs","full_name":"BillWagner/core-docs","owner":{"login":"BillWagner","id":493969,"avatar_url":"https://avatars.githubusercontent.com/u/493969?v=3","gravatar_id":"","url":"https://api.github.com/users/BillWagner","html_url":"https://github.com/BillWagner","followers_url":"https://api.github.com/users/BillWagner/followers","following_url":"https://api.github.com/users/BillWagner/following{/other_user}","gists_url":"https://api.github.com/users/BillWagner/gists{/gist_id}","starred_url":"https://api.github.com/users/BillWagner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BillWagner/subscriptions","organizations_url":"https://api.github.com/users/BillWagner/orgs","repos_url":"https://api.github.com/users/BillWagner/repos","events_url":"https://api.github.com/users/BillWagner/events{/privacy}","received_events_url":"https://api.github.com/users/BillWagner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BillWagner/core-docs","description":".NET Core documentation (work in progress).","fork":true,"url":"https://api.github.com/repos/BillWagner/core-docs","forks_url":"https://api.github.com/repos/BillWagner/core-docs/forks","keys_url":"https://api.github.com/repos/BillWagner/core-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BillWagner/core-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BillWagner/core-docs/teams","hooks_url":"https://api.github.com/repos/BillWagner/core-docs/hooks","issue_events_url":"https://api.github.com/repos/BillWagner/core-docs/issues/events{/number}","events_url":"https://api.github.com/repos/BillWagner/core-docs/events","assignees_url":"https://api.github.com/repos/BillWagner/core-docs/assignees{/user}","branches_url":"https://api.github.com/repos/BillWagner/core-docs/branches{/branch}","tags_url":"https://api.github.com/repos/BillWagner/core-docs/tags","blobs_url":"https://api.github.com/repos/BillWagner/core-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BillWagner/core-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BillWagner/core-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/BillWagner/core-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BillWagner/core-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/BillWagner/core-docs/languages","stargazers_url":"https://api.github.com/repos/BillWagner/core-docs/stargazers","contributors_url":"https://api.github.com/repos/BillWagner/core-docs/contributors","subscribers_url":"https://api.github.com/repos/BillWagner/core-docs/subscribers","subscription_url":"https://api.github.com/repos/BillWagner/core-docs/subscription","commits_url":"https://api.github.com/repos/BillWagner/core-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/BillWagner/core-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/BillWagner/core-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/BillWagner/core-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/BillWagner/core-docs/contents/{+path}","compare_url":"https://api.github.com/repos/BillWagner/core-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BillWagner/core-docs/merges","archive_url":"https://api.github.com/repos/BillWagner/core-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BillWagner/core-docs/downloads","issues_url":"https://api.github.com/repos/BillWagner/core-docs/issues{/number}","pulls_url":"https://api.github.com/repos/BillWagner/core-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/BillWagner/core-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/BillWagner/core-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BillWagner/core-docs/labels{/name}","releases_url":"https://api.github.com/repos/BillWagner/core-docs/releases{/id}","deployments_url":"https://api.github.com/repos/BillWagner/core-docs/deployments","created_at":"2015-11-05T20:57:32Z","updated_at":"2016-02-08T15:51:57Z","pushed_at":"2016-03-25T20:35:53Z","git_url":"git://github.com/BillWagner/core-docs.git","ssh_url":"git@github.com:BillWagner/core-docs.git","clone_url":"https://github.com/BillWagner/core-docs.git","svn_url":"https://github.com/BillWagner/core-docs","homepage":"http://dotnet.readthedocs.org","size":10259,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"50b5b1000364f366beb2fa73296d37c653d1e10a","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":35890081,"name":"core-docs","full_name":"dotnet/core-docs","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/core-docs","description":".NET Core documentation (work in progress).","fork":false,"url":"https://api.github.com/repos/dotnet/core-docs","forks_url":"https://api.github.com/repos/dotnet/core-docs/forks","keys_url":"https://api.github.com/repos/dotnet/core-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/core-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/core-docs/teams","hooks_url":"https://api.github.com/repos/dotnet/core-docs/hooks","issue_events_url":"https://api.github.com/repos/dotnet/core-docs/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/core-docs/events","assignees_url":"https://api.github.com/repos/dotnet/core-docs/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/core-docs/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/core-docs/tags","blobs_url":"https://api.github.com/repos/dotnet/core-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/core-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/core-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/core-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/core-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/core-docs/languages","stargazers_url":"https://api.github.com/repos/dotnet/core-docs/stargazers","contributors_url":"https://api.github.com/repos/dotnet/core-docs/contributors","subscribers_url":"https://api.github.com/repos/dotnet/core-docs/subscribers","subscription_url":"https://api.github.com/repos/dotnet/core-docs/subscription","commits_url":"https://api.github.com/repos/dotnet/core-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/core-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/core-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/core-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/core-docs/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/core-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/core-docs/merges","archive_url":"https://api.github.com/repos/dotnet/core-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/core-docs/downloads","issues_url":"https://api.github.com/repos/dotnet/core-docs/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/core-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/core-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/core-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/core-docs/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/core-docs/releases{/id}","deployments_url":"https://api.github.com/repos/dotnet/core-docs/deployments","created_at":"2015-05-19T15:13:32Z","updated_at":"2016-03-21T14:38:35Z","pushed_at":"2016-03-25T20:36:45Z","git_url":"git://github.com/dotnet/core-docs.git","ssh_url":"git@github.com:dotnet/core-docs.git","clone_url":"https://github.com/dotnet/core-docs.git","svn_url":"https://github.com/dotnet/core-docs","homepage":"http://dotnet.github.io/docs/index.html","size":14064,"stargazers_count":62,"watchers_count":62,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":74,"mirror_url":null,"open_issues_count":153,"forks":74,"open_issues":153,"watchers":62,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/365"},"html":{"href":"https://github.com/dotnet/core-docs/pull/365"},"issue":{"href":"https://api.github.com/repos/dotnet/core-docs/issues/365"},"comments":{"href":"https://api.github.com/repos/dotnet/core-docs/issues/365/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/365/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/core-docs/pulls/365/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/core-docs/statuses/58cfb55fece2991d0b9ce29a7fe5107ab210f592"}}}}