{"action":"created","comment":{"url":"https://api.github.com/repos/alphagov/gds-way/pulls/comments/149436516","pull_request_review_id":74828737,"id":149436516,"diff_hunk":"@@ -0,0 +1,51 @@\n+---\n+title: Running services as containers\n+expires: 2018-05-02\n+---\n+# <%= current_page.data.title %>\n+\n+<%= partial :expires %>\n+\n+## Principles\n+\n+This guidance should not be applied to development environments using containers.\n+\n+Where possible, web applications should use the PaaS as per the [hosting guidance](standards/hosting.html).\n+\n+It is not recommended to run bare containers on the PaaS, as provided by the [documentation](https://docs.cloud.service.gov.uk/#deploy-a-docker-image-experimental).\n+\n+If it is not possible to use the PaaS, or the service is not appropriate (such as when an amount of state is required), then guidance should be followed to ensure best practice when running your service as a container.","path":"source/standards/running-services-as-containers.html.md.erb","position":17,"original_position":17,"commit_id":"5a926166794f40a29788fd977087d56b9de454a6","original_commit_id":"5a926166794f40a29788fd977087d56b9de454a6","user":{"login":"dcarley","id":260438,"avatar_url":"https://avatars0.githubusercontent.com/u/260438?v=4","gravatar_id":"","url":"https://api.github.com/users/dcarley","html_url":"https://github.com/dcarley","followers_url":"https://api.github.com/users/dcarley/followers","following_url":"https://api.github.com/users/dcarley/following{/other_user}","gists_url":"https://api.github.com/users/dcarley/gists{/gist_id}","starred_url":"https://api.github.com/users/dcarley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcarley/subscriptions","organizations_url":"https://api.github.com/users/dcarley/orgs","repos_url":"https://api.github.com/users/dcarley/repos","events_url":"https://api.github.com/users/dcarley/events{/privacy}","received_events_url":"https://api.github.com/users/dcarley/received_events","type":"User","site_admin":false},"body":"Are containers the right solution to host somewhere else if state is required? I don't think they are. It might be better to omit the part about state altogether.","created_at":"2017-11-07T16:59:16Z","updated_at":"2017-11-07T16:59:16Z","html_url":"https://github.com/alphagov/gds-way/pull/89#discussion_r149436516","pull_request_url":"https://api.github.com/repos/alphagov/gds-way/pulls/89","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/alphagov/gds-way/pulls/comments/149436516"},"html":{"href":"https://github.com/alphagov/gds-way/pull/89#discussion_r149436516"},"pull_request":{"href":"https://api.github.com/repos/alphagov/gds-way/pulls/89"}},"in_reply_to_id":149341644},"pull_request":{"url":"https://api.github.com/repos/alphagov/gds-way/pulls/89","id":150263236,"html_url":"https://github.com/alphagov/gds-way/pull/89","diff_url":"https://github.com/alphagov/gds-way/pull/89.diff","patch_url":"https://github.com/alphagov/gds-way/pull/89.patch","issue_url":"https://api.github.com/repos/alphagov/gds-way/issues/89","number":89,"state":"open","locked":false,"title":"Running Services as containers","user":{"login":"surminus","id":5610276,"avatar_url":"https://avatars0.githubusercontent.com/u/5610276?v=4","gravatar_id":"","url":"https://api.github.com/users/surminus","html_url":"https://github.com/surminus","followers_url":"https://api.github.com/users/surminus/followers","following_url":"https://api.github.com/users/surminus/following{/other_user}","gists_url":"https://api.github.com/users/surminus/gists{/gist_id}","starred_url":"https://api.github.com/users/surminus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/surminus/subscriptions","organizations_url":"https://api.github.com/users/surminus/orgs","repos_url":"https://api.github.com/users/surminus/repos","events_url":"https://api.github.com/users/surminus/events{/privacy}","received_events_url":"https://api.github.com/users/surminus/received_events","type":"User","site_admin":false},"body":"This is intended as a conversation starter to discuss GDS guidance on running containers.\n\nContainers are being used to run lots of different types of services, and there are often times when these services are not appropriate to run on the PaaS (as a GOV.UK example, we run Gemstash and etcd as containers to reduce Puppet code), or where the PaaS is currently not suitable for the service (ie GOV.UK Pay).\n\nThis commit serves to lay down some princibles for running your service in this way. I have made some assumptions which I hope starts some further discussion on the guidance we want to provide (especially concerning the use of ECS).\n\nIt is explictly not related to development princibles on containers, which should be a separate set of guidance.","created_at":"2017-11-02T11:15:02Z","updated_at":"2017-11-07T16:59:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8db53cfa5275af1e3e896f81fe621357fd892f0c","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/alphagov/gds-way/pulls/89/commits","review_comments_url":"https://api.github.com/repos/alphagov/gds-way/pulls/89/comments","review_comment_url":"https://api.github.com/repos/alphagov/gds-way/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alphagov/gds-way/issues/89/comments","statuses_url":"https://api.github.com/repos/alphagov/gds-way/statuses/5a926166794f40a29788fd977087d56b9de454a6","head":{"label":"alphagov:running-services-as-containers","ref":"running-services-as-containers","sha":"5a926166794f40a29788fd977087d56b9de454a6","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":81935990,"name":"gds-way","full_name":"alphagov/gds-way","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/gds-way","description":"How we build and operate products at GDS","fork":false,"url":"https://api.github.com/repos/alphagov/gds-way","forks_url":"https://api.github.com/repos/alphagov/gds-way/forks","keys_url":"https://api.github.com/repos/alphagov/gds-way/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/gds-way/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/gds-way/teams","hooks_url":"https://api.github.com/repos/alphagov/gds-way/hooks","issue_events_url":"https://api.github.com/repos/alphagov/gds-way/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/gds-way/events","assignees_url":"https://api.github.com/repos/alphagov/gds-way/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/gds-way/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/gds-way/tags","blobs_url":"https://api.github.com/repos/alphagov/gds-way/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/gds-way/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/gds-way/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/gds-way/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/gds-way/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/gds-way/languages","stargazers_url":"https://api.github.com/repos/alphagov/gds-way/stargazers","contributors_url":"https://api.github.com/repos/alphagov/gds-way/contributors","subscribers_url":"https://api.github.com/repos/alphagov/gds-way/subscribers","subscription_url":"https://api.github.com/repos/alphagov/gds-way/subscription","commits_url":"https://api.github.com/repos/alphagov/gds-way/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/gds-way/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/gds-way/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/gds-way/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/gds-way/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/gds-way/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/gds-way/merges","archive_url":"https://api.github.com/repos/alphagov/gds-way/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/gds-way/downloads","issues_url":"https://api.github.com/repos/alphagov/gds-way/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/gds-way/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/gds-way/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/gds-way/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/gds-way/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/gds-way/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/gds-way/deployments","created_at":"2017-02-14T10:54:42Z","updated_at":"2017-11-05T18:25:18Z","pushed_at":"2017-11-06T14:52:43Z","git_url":"git://github.com/alphagov/gds-way.git","ssh_url":"git@github.com:alphagov/gds-way.git","clone_url":"https://github.com/alphagov/gds-way.git","svn_url":"https://github.com/alphagov/gds-way","homepage":"https://gds-way.cloudapps.digital","size":513,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":25,"forks":8,"open_issues":25,"watchers":4,"default_branch":"master"}},"base":{"label":"alphagov:master","ref":"master","sha":"a6dcba683f7a54bb01836b62df28111a5ddeb2c1","user":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"repo":{"id":81935990,"name":"gds-way","full_name":"alphagov/gds-way","owner":{"login":"alphagov","id":596977,"avatar_url":"https://avatars0.githubusercontent.com/u/596977?v=4","gravatar_id":"","url":"https://api.github.com/users/alphagov","html_url":"https://github.com/alphagov","followers_url":"https://api.github.com/users/alphagov/followers","following_url":"https://api.github.com/users/alphagov/following{/other_user}","gists_url":"https://api.github.com/users/alphagov/gists{/gist_id}","starred_url":"https://api.github.com/users/alphagov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alphagov/subscriptions","organizations_url":"https://api.github.com/users/alphagov/orgs","repos_url":"https://api.github.com/users/alphagov/repos","events_url":"https://api.github.com/users/alphagov/events{/privacy}","received_events_url":"https://api.github.com/users/alphagov/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alphagov/gds-way","description":"How we build and operate products at GDS","fork":false,"url":"https://api.github.com/repos/alphagov/gds-way","forks_url":"https://api.github.com/repos/alphagov/gds-way/forks","keys_url":"https://api.github.com/repos/alphagov/gds-way/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alphagov/gds-way/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alphagov/gds-way/teams","hooks_url":"https://api.github.com/repos/alphagov/gds-way/hooks","issue_events_url":"https://api.github.com/repos/alphagov/gds-way/issues/events{/number}","events_url":"https://api.github.com/repos/alphagov/gds-way/events","assignees_url":"https://api.github.com/repos/alphagov/gds-way/assignees{/user}","branches_url":"https://api.github.com/repos/alphagov/gds-way/branches{/branch}","tags_url":"https://api.github.com/repos/alphagov/gds-way/tags","blobs_url":"https://api.github.com/repos/alphagov/gds-way/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alphagov/gds-way/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alphagov/gds-way/git/refs{/sha}","trees_url":"https://api.github.com/repos/alphagov/gds-way/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alphagov/gds-way/statuses/{sha}","languages_url":"https://api.github.com/repos/alphagov/gds-way/languages","stargazers_url":"https://api.github.com/repos/alphagov/gds-way/stargazers","contributors_url":"https://api.github.com/repos/alphagov/gds-way/contributors","subscribers_url":"https://api.github.com/repos/alphagov/gds-way/subscribers","subscription_url":"https://api.github.com/repos/alphagov/gds-way/subscription","commits_url":"https://api.github.com/repos/alphagov/gds-way/commits{/sha}","git_commits_url":"https://api.github.com/repos/alphagov/gds-way/git/commits{/sha}","comments_url":"https://api.github.com/repos/alphagov/gds-way/comments{/number}","issue_comment_url":"https://api.github.com/repos/alphagov/gds-way/issues/comments{/number}","contents_url":"https://api.github.com/repos/alphagov/gds-way/contents/{+path}","compare_url":"https://api.github.com/repos/alphagov/gds-way/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alphagov/gds-way/merges","archive_url":"https://api.github.com/repos/alphagov/gds-way/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alphagov/gds-way/downloads","issues_url":"https://api.github.com/repos/alphagov/gds-way/issues{/number}","pulls_url":"https://api.github.com/repos/alphagov/gds-way/pulls{/number}","milestones_url":"https://api.github.com/repos/alphagov/gds-way/milestones{/number}","notifications_url":"https://api.github.com/repos/alphagov/gds-way/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alphagov/gds-way/labels{/name}","releases_url":"https://api.github.com/repos/alphagov/gds-way/releases{/id}","deployments_url":"https://api.github.com/repos/alphagov/gds-way/deployments","created_at":"2017-02-14T10:54:42Z","updated_at":"2017-11-05T18:25:18Z","pushed_at":"2017-11-06T14:52:43Z","git_url":"git://github.com/alphagov/gds-way.git","ssh_url":"git@github.com:alphagov/gds-way.git","clone_url":"https://github.com/alphagov/gds-way.git","svn_url":"https://github.com/alphagov/gds-way","homepage":"https://gds-way.cloudapps.digital","size":513,"stargazers_count":4,"watchers_count":4,"language":"CSS","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":25,"forks":8,"open_issues":25,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alphagov/gds-way/pulls/89"},"html":{"href":"https://github.com/alphagov/gds-way/pull/89"},"issue":{"href":"https://api.github.com/repos/alphagov/gds-way/issues/89"},"comments":{"href":"https://api.github.com/repos/alphagov/gds-way/issues/89/comments"},"review_comments":{"href":"https://api.github.com/repos/alphagov/gds-way/pulls/89/comments"},"review_comment":{"href":"https://api.github.com/repos/alphagov/gds-way/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alphagov/gds-way/pulls/89/commits"},"statuses":{"href":"https://api.github.com/repos/alphagov/gds-way/statuses/5a926166794f40a29788fd977087d56b9de454a6"}},"author_association":"NONE"}}
{"actor":{"display_login":"dcarley"}}