{"action":"created","comment":{"url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/comments/79498651","id":79498651,"diff_hunk":"@@ -0,0 +1,99 @@\n+# Windows-specific Container Configuration\n+\n+This document describes the schema for the [Windows-specific section](config.md#platform-specific-configuration) of the [container configuration](config.md).\n+The Windows container specification uses APIs provided by the Windows Host Compute Service (HCS) to fulfill the spec.\n+\n+## Resources\n+\n+You can configure a container's resource limits via the OPTIONAL `resources` field of the Windows configuration.\n+\n+### Memory\n+\n+`memory` is an OPTIONAL configuration for the container's memory usage.\n+\n+The following parameters can be specified:\n+\n+* **`limit`** *(uint64, optional)* - sets limit of memory usage in bytes.\n+\n+* **`reservation`** *(uint64, optional)* - sets the guaranteed minimum amount of memory for a container in bytes.\n+\n+#### Example\n+\n+```json\n+    \"windows\": {\n+        \"resources\": {\n+            \"memory\": {\n+                \"limit\": 2097152,\n+                \"reservation\": 524288\n+            }\n+        }\n+    }\n+```\n+\n+### CPU\n+\n+`cpu` is an OPTIONAL configuration for the container's CPU usage.\n+\n+The following parameters can be specified:\n+\n+* **`count`** *(uint64, optional)* - specifies the number of CPUs available to the container.\n+\n+* **`shares`** *(uint64, optional)* - specifies the relative weight to other containers with CPU shares. The range is from 1 to 10000.\n+\n+* **`percent`** *(uint, optional)* - specifies the percentage of available CPUs usable by the container.","path":"config-windows.md","position":43,"original_position":43,"commit_id":"40bf0b7619e079700d0c9c232264e8f7cbf9f71f","original_commit_id":"40bf0b7619e079700d0c9c232264e8f7cbf9f71f","user":{"login":"jhowardmsft","id":10522484,"avatar_url":"https://avatars.githubusercontent.com/u/10522484?v=3","gravatar_id":"","url":"https://api.github.com/users/jhowardmsft","html_url":"https://github.com/jhowardmsft","followers_url":"https://api.github.com/users/jhowardmsft/followers","following_url":"https://api.github.com/users/jhowardmsft/following{/other_user}","gists_url":"https://api.github.com/users/jhowardmsft/gists{/gist_id}","starred_url":"https://api.github.com/users/jhowardmsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhowardmsft/subscriptions","organizations_url":"https://api.github.com/users/jhowardmsft/orgs","repos_url":"https://api.github.com/users/jhowardmsft/repos","events_url":"https://api.github.com/users/jhowardmsft/events{/privacy}","received_events_url":"https://api.github.com/users/jhowardmsft/received_events","type":"User","site_admin":false},"body":"@vishh Well yes, but bearing in mind any or all of them are optional.","created_at":"2016-09-19T21:57:27Z","updated_at":"2016-09-19T21:57:27Z","html_url":"https://github.com/opencontainers/runtime-spec/pull/573#discussion_r79498651","pull_request_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/573","_links":{"self":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/comments/79498651"},"html":{"href":"https://github.com/opencontainers/runtime-spec/pull/573#discussion_r79498651"},"pull_request":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/573"}}},"pull_request":{"url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/573","id":85689812,"html_url":"https://github.com/opencontainers/runtime-spec/pull/573","diff_url":"https://github.com/opencontainers/runtime-spec/pull/573.diff","patch_url":"https://github.com/opencontainers/runtime-spec/pull/573.patch","issue_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues/573","number":573,"state":"open","locked":false,"title":"Add support for Windows based containers","user":{"login":"jhowardmsft","id":10522484,"avatar_url":"https://avatars.githubusercontent.com/u/10522484?v=3","gravatar_id":"","url":"https://api.github.com/users/jhowardmsft","html_url":"https://github.com/jhowardmsft","followers_url":"https://api.github.com/users/jhowardmsft/followers","following_url":"https://api.github.com/users/jhowardmsft/following{/other_user}","gists_url":"https://api.github.com/users/jhowardmsft/gists{/gist_id}","starred_url":"https://api.github.com/users/jhowardmsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhowardmsft/subscriptions","organizations_url":"https://api.github.com/users/jhowardmsft/orgs","repos_url":"https://api.github.com/users/jhowardmsft/repos","events_url":"https://api.github.com/users/jhowardmsft/events{/privacy}","received_events_url":"https://api.github.com/users/jhowardmsft/received_events","type":"User","site_admin":false},"body":"Signed-off-by: John Howard <jhoward@microsoft.com>\r\n\r\nThis adds Windows support to the OCI runtime-spec: code, JSON schema and markdown documentation. Note that the support has been added using 'aggressive namespacing', the matching changes of which for Linux and Solaris being currently out for review in https://github.com/opencontainers/runtime-spec/pull/567.\r\n\r\nThis is a formal follow-on the the previous proof-of-concept PR to add support for Windows, https://github.com/opencontainers/runtime-spec/pull/504\r\n","created_at":"2016-09-17T22:49:08Z","updated_at":"2016-09-19T21:57:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"25fa44c95c7bdc478815ba2456b540ca3cf3f88e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/573/commits","review_comments_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/573/comments","review_comment_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues/573/comments","statuses_url":"https://api.github.com/repos/opencontainers/runtime-spec/statuses/40bf0b7619e079700d0c9c232264e8f7cbf9f71f","head":{"label":"jhowardmsft:jjh/addwindows","ref":"jjh/addwindows","sha":"40bf0b7619e079700d0c9c232264e8f7cbf9f71f","user":{"login":"jhowardmsft","id":10522484,"avatar_url":"https://avatars.githubusercontent.com/u/10522484?v=3","gravatar_id":"","url":"https://api.github.com/users/jhowardmsft","html_url":"https://github.com/jhowardmsft","followers_url":"https://api.github.com/users/jhowardmsft/followers","following_url":"https://api.github.com/users/jhowardmsft/following{/other_user}","gists_url":"https://api.github.com/users/jhowardmsft/gists{/gist_id}","starred_url":"https://api.github.com/users/jhowardmsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhowardmsft/subscriptions","organizations_url":"https://api.github.com/users/jhowardmsft/orgs","repos_url":"https://api.github.com/users/jhowardmsft/repos","events_url":"https://api.github.com/users/jhowardmsft/events{/privacy}","received_events_url":"https://api.github.com/users/jhowardmsft/received_events","type":"User","site_admin":false},"repo":{"id":52493266,"name":"specs","full_name":"jhowardmsft/specs","owner":{"login":"jhowardmsft","id":10522484,"avatar_url":"https://avatars.githubusercontent.com/u/10522484?v=3","gravatar_id":"","url":"https://api.github.com/users/jhowardmsft","html_url":"https://github.com/jhowardmsft","followers_url":"https://api.github.com/users/jhowardmsft/followers","following_url":"https://api.github.com/users/jhowardmsft/following{/other_user}","gists_url":"https://api.github.com/users/jhowardmsft/gists{/gist_id}","starred_url":"https://api.github.com/users/jhowardmsft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhowardmsft/subscriptions","organizations_url":"https://api.github.com/users/jhowardmsft/orgs","repos_url":"https://api.github.com/users/jhowardmsft/repos","events_url":"https://api.github.com/users/jhowardmsft/events{/privacy}","received_events_url":"https://api.github.com/users/jhowardmsft/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhowardmsft/specs","description":"Open Container Specifications","fork":true,"url":"https://api.github.com/repos/jhowardmsft/specs","forks_url":"https://api.github.com/repos/jhowardmsft/specs/forks","keys_url":"https://api.github.com/repos/jhowardmsft/specs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhowardmsft/specs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhowardmsft/specs/teams","hooks_url":"https://api.github.com/repos/jhowardmsft/specs/hooks","issue_events_url":"https://api.github.com/repos/jhowardmsft/specs/issues/events{/number}","events_url":"https://api.github.com/repos/jhowardmsft/specs/events","assignees_url":"https://api.github.com/repos/jhowardmsft/specs/assignees{/user}","branches_url":"https://api.github.com/repos/jhowardmsft/specs/branches{/branch}","tags_url":"https://api.github.com/repos/jhowardmsft/specs/tags","blobs_url":"https://api.github.com/repos/jhowardmsft/specs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhowardmsft/specs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhowardmsft/specs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhowardmsft/specs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhowardmsft/specs/statuses/{sha}","languages_url":"https://api.github.com/repos/jhowardmsft/specs/languages","stargazers_url":"https://api.github.com/repos/jhowardmsft/specs/stargazers","contributors_url":"https://api.github.com/repos/jhowardmsft/specs/contributors","subscribers_url":"https://api.github.com/repos/jhowardmsft/specs/subscribers","subscription_url":"https://api.github.com/repos/jhowardmsft/specs/subscription","commits_url":"https://api.github.com/repos/jhowardmsft/specs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhowardmsft/specs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhowardmsft/specs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhowardmsft/specs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhowardmsft/specs/contents/{+path}","compare_url":"https://api.github.com/repos/jhowardmsft/specs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhowardmsft/specs/merges","archive_url":"https://api.github.com/repos/jhowardmsft/specs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhowardmsft/specs/downloads","issues_url":"https://api.github.com/repos/jhowardmsft/specs/issues{/number}","pulls_url":"https://api.github.com/repos/jhowardmsft/specs/pulls{/number}","milestones_url":"https://api.github.com/repos/jhowardmsft/specs/milestones{/number}","notifications_url":"https://api.github.com/repos/jhowardmsft/specs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhowardmsft/specs/labels{/name}","releases_url":"https://api.github.com/repos/jhowardmsft/specs/releases{/id}","deployments_url":"https://api.github.com/repos/jhowardmsft/specs/deployments","created_at":"2016-02-25T03:16:01Z","updated_at":"2016-02-25T03:16:02Z","pushed_at":"2016-09-19T21:30:36Z","git_url":"git://github.com/jhowardmsft/specs.git","ssh_url":"git@github.com:jhowardmsft/specs.git","clone_url":"https://github.com/jhowardmsft/specs.git","svn_url":"https://github.com/jhowardmsft/specs","homepage":"http://www.opencontainers.org","size":651,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"opencontainers:master","ref":"master","sha":"2239827079478fbc7448f5fafaf32c0316e01999","user":{"login":"opencontainers","id":12563465,"avatar_url":"https://avatars.githubusercontent.com/u/12563465?v=3","gravatar_id":"","url":"https://api.github.com/users/opencontainers","html_url":"https://github.com/opencontainers","followers_url":"https://api.github.com/users/opencontainers/followers","following_url":"https://api.github.com/users/opencontainers/following{/other_user}","gists_url":"https://api.github.com/users/opencontainers/gists{/gist_id}","starred_url":"https://api.github.com/users/opencontainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencontainers/subscriptions","organizations_url":"https://api.github.com/users/opencontainers/orgs","repos_url":"https://api.github.com/users/opencontainers/repos","events_url":"https://api.github.com/users/opencontainers/events{/privacy}","received_events_url":"https://api.github.com/users/opencontainers/received_events","type":"Organization","site_admin":false},"repo":{"id":36960293,"name":"runtime-spec","full_name":"opencontainers/runtime-spec","owner":{"login":"opencontainers","id":12563465,"avatar_url":"https://avatars.githubusercontent.com/u/12563465?v=3","gravatar_id":"","url":"https://api.github.com/users/opencontainers","html_url":"https://github.com/opencontainers","followers_url":"https://api.github.com/users/opencontainers/followers","following_url":"https://api.github.com/users/opencontainers/following{/other_user}","gists_url":"https://api.github.com/users/opencontainers/gists{/gist_id}","starred_url":"https://api.github.com/users/opencontainers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opencontainers/subscriptions","organizations_url":"https://api.github.com/users/opencontainers/orgs","repos_url":"https://api.github.com/users/opencontainers/repos","events_url":"https://api.github.com/users/opencontainers/events{/privacy}","received_events_url":"https://api.github.com/users/opencontainers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opencontainers/runtime-spec","description":"OCI Runtime Specification","fork":false,"url":"https://api.github.com/repos/opencontainers/runtime-spec","forks_url":"https://api.github.com/repos/opencontainers/runtime-spec/forks","keys_url":"https://api.github.com/repos/opencontainers/runtime-spec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opencontainers/runtime-spec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opencontainers/runtime-spec/teams","hooks_url":"https://api.github.com/repos/opencontainers/runtime-spec/hooks","issue_events_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues/events{/number}","events_url":"https://api.github.com/repos/opencontainers/runtime-spec/events","assignees_url":"https://api.github.com/repos/opencontainers/runtime-spec/assignees{/user}","branches_url":"https://api.github.com/repos/opencontainers/runtime-spec/branches{/branch}","tags_url":"https://api.github.com/repos/opencontainers/runtime-spec/tags","blobs_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/refs{/sha}","trees_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opencontainers/runtime-spec/statuses/{sha}","languages_url":"https://api.github.com/repos/opencontainers/runtime-spec/languages","stargazers_url":"https://api.github.com/repos/opencontainers/runtime-spec/stargazers","contributors_url":"https://api.github.com/repos/opencontainers/runtime-spec/contributors","subscribers_url":"https://api.github.com/repos/opencontainers/runtime-spec/subscribers","subscription_url":"https://api.github.com/repos/opencontainers/runtime-spec/subscription","commits_url":"https://api.github.com/repos/opencontainers/runtime-spec/commits{/sha}","git_commits_url":"https://api.github.com/repos/opencontainers/runtime-spec/git/commits{/sha}","comments_url":"https://api.github.com/repos/opencontainers/runtime-spec/comments{/number}","issue_comment_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues/comments{/number}","contents_url":"https://api.github.com/repos/opencontainers/runtime-spec/contents/{+path}","compare_url":"https://api.github.com/repos/opencontainers/runtime-spec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opencontainers/runtime-spec/merges","archive_url":"https://api.github.com/repos/opencontainers/runtime-spec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opencontainers/runtime-spec/downloads","issues_url":"https://api.github.com/repos/opencontainers/runtime-spec/issues{/number}","pulls_url":"https://api.github.com/repos/opencontainers/runtime-spec/pulls{/number}","milestones_url":"https://api.github.com/repos/opencontainers/runtime-spec/milestones{/number}","notifications_url":"https://api.github.com/repos/opencontainers/runtime-spec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opencontainers/runtime-spec/labels{/name}","releases_url":"https://api.github.com/repos/opencontainers/runtime-spec/releases{/id}","deployments_url":"https://api.github.com/repos/opencontainers/runtime-spec/deployments","created_at":"2015-06-05T23:30:10Z","updated_at":"2016-09-19T13:37:31Z","pushed_at":"2016-09-19T21:30:36Z","git_url":"git://github.com/opencontainers/runtime-spec.git","ssh_url":"git@github.com:opencontainers/runtime-spec.git","clone_url":"https://github.com/opencontainers/runtime-spec.git","svn_url":"https://github.com/opencontainers/runtime-spec","homepage":"http://www.opencontainers.org","size":2118,"stargazers_count":760,"watchers_count":760,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":133,"mirror_url":null,"open_issues_count":56,"forks":133,"open_issues":56,"watchers":760,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/573"},"html":{"href":"https://github.com/opencontainers/runtime-spec/pull/573"},"issue":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/issues/573"},"comments":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/issues/573/comments"},"review_comments":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/573/comments"},"review_comment":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/pulls/573/commits"},"statuses":{"href":"https://api.github.com/repos/opencontainers/runtime-spec/statuses/40bf0b7619e079700d0c9c232264e8f7cbf9f71f"}}}}
{"actor":{"display_login":"jhowardmsft"}}