{"action":"created","comment":{"url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/comments/90718093","pull_request_review_id":11238670,"id":90718093,"diff_hunk":"@@ -124,3 +126,19 @@ EOF\n 23 0 * * * /home/centos/gh-snap/run_as_cronjob snap\n 46 4 * * * /home/centos/gh-snap/run_as_cronjob purge\n ```\n+\n+### Docker\n+\n+Build a container from the included `Dockerfile`.\n+\n+You may want to specify some or all of the following environment\n+variables with -e when you do a `docker run`:\n+\n+`AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN`, \n+`AWS_DEFAULT_REGION`, `GITHUB_ORGS`, `GITHUB_TOKEN`, `S3_BACKUP_BUCKET`\n+\n+The default command is to take a snapshot; use `snapshot-purger` as an\n+appended command on the docker run command line to run a purge instead.\n+\n+You can also just pull the image with `docker pull\n+lsstsqre/github-snapshot`.","path":"README.md","position":28,"original_position":28,"commit_id":"dbfd618d51d8c71328e254ae8991917e95db7288","original_commit_id":"dbfd618d51d8c71328e254ae8991917e95db7288","user":{"login":"jhoblitt","id":948901,"avatar_url":"https://avatars.githubusercontent.com/u/948901?v=3","gravatar_id":"","url":"https://api.github.com/users/jhoblitt","html_url":"https://github.com/jhoblitt","followers_url":"https://api.github.com/users/jhoblitt/followers","following_url":"https://api.github.com/users/jhoblitt/following{/other_user}","gists_url":"https://api.github.com/users/jhoblitt/gists{/gist_id}","starred_url":"https://api.github.com/users/jhoblitt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhoblitt/subscriptions","organizations_url":"https://api.github.com/users/jhoblitt/orgs","repos_url":"https://api.github.com/users/jhoblitt/repos","events_url":"https://api.github.com/users/jhoblitt/events{/privacy}","received_events_url":"https://api.github.com/users/jhoblitt/received_events","type":"User","site_admin":false},"body":"Might be useful to add an example of running the container with an arg.","created_at":"2016-12-02T20:56:18Z","updated_at":"2016-12-02T20:56:18Z","html_url":"https://github.com/lsst-sqre/sqre-git-snapshot/pull/2#discussion_r90718093","pull_request_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/comments/90718093"},"html":{"href":"https://github.com/lsst-sqre/sqre-git-snapshot/pull/2#discussion_r90718093"},"pull_request":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/2","id":96340813,"html_url":"https://github.com/lsst-sqre/sqre-git-snapshot/pull/2","diff_url":"https://github.com/lsst-sqre/sqre-git-snapshot/pull/2.diff","patch_url":"https://github.com/lsst-sqre/sqre-git-snapshot/pull/2.patch","issue_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues/2","number":2,"state":"open","locked":false,"title":"Dockerize","user":{"login":"athornton","id":2453165,"avatar_url":"https://avatars.githubusercontent.com/u/2453165?v=3","gravatar_id":"","url":"https://api.github.com/users/athornton","html_url":"https://github.com/athornton","followers_url":"https://api.github.com/users/athornton/followers","following_url":"https://api.github.com/users/athornton/following{/other_user}","gists_url":"https://api.github.com/users/athornton/gists{/gist_id}","starred_url":"https://api.github.com/users/athornton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athornton/subscriptions","organizations_url":"https://api.github.com/users/athornton/orgs","repos_url":"https://api.github.com/users/athornton/repos","events_url":"https://api.github.com/users/athornton/events{/privacy}","received_events_url":"https://api.github.com/users/athornton/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-02T19:45:42Z","updated_at":"2016-12-02T20:56:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fe3cfc87a33a3b24caf1140fd8c227cef86be243","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/2/commits","review_comments_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/2/comments","review_comment_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues/2/comments","statuses_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/statuses/dbfd618d51d8c71328e254ae8991917e95db7288","head":{"label":"lsst-sqre:dockerize","ref":"dockerize","sha":"dbfd618d51d8c71328e254ae8991917e95db7288","user":{"login":"lsst-sqre","id":10158560,"avatar_url":"https://avatars.githubusercontent.com/u/10158560?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-sqre","html_url":"https://github.com/lsst-sqre","followers_url":"https://api.github.com/users/lsst-sqre/followers","following_url":"https://api.github.com/users/lsst-sqre/following{/other_user}","gists_url":"https://api.github.com/users/lsst-sqre/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-sqre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-sqre/subscriptions","organizations_url":"https://api.github.com/users/lsst-sqre/orgs","repos_url":"https://api.github.com/users/lsst-sqre/repos","events_url":"https://api.github.com/users/lsst-sqre/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-sqre/received_events","type":"Organization","site_admin":false},"repo":{"id":74603245,"name":"sqre-git-snapshot","full_name":"lsst-sqre/sqre-git-snapshot","owner":{"login":"lsst-sqre","id":10158560,"avatar_url":"https://avatars.githubusercontent.com/u/10158560?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-sqre","html_url":"https://github.com/lsst-sqre","followers_url":"https://api.github.com/users/lsst-sqre/followers","following_url":"https://api.github.com/users/lsst-sqre/following{/other_user}","gists_url":"https://api.github.com/users/lsst-sqre/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-sqre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-sqre/subscriptions","organizations_url":"https://api.github.com/users/lsst-sqre/orgs","repos_url":"https://api.github.com/users/lsst-sqre/repos","events_url":"https://api.github.com/users/lsst-sqre/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-sqre/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lsst-sqre/sqre-git-snapshot","description":"Scripts for snapshotting GH repos and managing snapshots","fork":false,"url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot","forks_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/forks","keys_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/teams","hooks_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/hooks","issue_events_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues/events{/number}","events_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/events","assignees_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/assignees{/user}","branches_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/branches{/branch}","tags_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/tags","blobs_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/languages","stargazers_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/stargazers","contributors_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/contributors","subscribers_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/subscribers","subscription_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/subscription","commits_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/contents/{+path}","compare_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/merges","archive_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/downloads","issues_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues{/number}","pulls_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/labels{/name}","releases_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/releases{/id}","deployments_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/deployments","created_at":"2016-11-23T18:23:43Z","updated_at":"2016-11-23T18:24:34Z","pushed_at":"2016-12-02T19:45:42Z","git_url":"git://github.com/lsst-sqre/sqre-git-snapshot.git","ssh_url":"git@github.com:lsst-sqre/sqre-git-snapshot.git","clone_url":"https://github.com/lsst-sqre/sqre-git-snapshot.git","svn_url":"https://github.com/lsst-sqre/sqre-git-snapshot","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lsst-sqre:master","ref":"master","sha":"72b3399166aa3e25e32cf8f63252d02a3831740f","user":{"login":"lsst-sqre","id":10158560,"avatar_url":"https://avatars.githubusercontent.com/u/10158560?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-sqre","html_url":"https://github.com/lsst-sqre","followers_url":"https://api.github.com/users/lsst-sqre/followers","following_url":"https://api.github.com/users/lsst-sqre/following{/other_user}","gists_url":"https://api.github.com/users/lsst-sqre/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-sqre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-sqre/subscriptions","organizations_url":"https://api.github.com/users/lsst-sqre/orgs","repos_url":"https://api.github.com/users/lsst-sqre/repos","events_url":"https://api.github.com/users/lsst-sqre/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-sqre/received_events","type":"Organization","site_admin":false},"repo":{"id":74603245,"name":"sqre-git-snapshot","full_name":"lsst-sqre/sqre-git-snapshot","owner":{"login":"lsst-sqre","id":10158560,"avatar_url":"https://avatars.githubusercontent.com/u/10158560?v=3","gravatar_id":"","url":"https://api.github.com/users/lsst-sqre","html_url":"https://github.com/lsst-sqre","followers_url":"https://api.github.com/users/lsst-sqre/followers","following_url":"https://api.github.com/users/lsst-sqre/following{/other_user}","gists_url":"https://api.github.com/users/lsst-sqre/gists{/gist_id}","starred_url":"https://api.github.com/users/lsst-sqre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lsst-sqre/subscriptions","organizations_url":"https://api.github.com/users/lsst-sqre/orgs","repos_url":"https://api.github.com/users/lsst-sqre/repos","events_url":"https://api.github.com/users/lsst-sqre/events{/privacy}","received_events_url":"https://api.github.com/users/lsst-sqre/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lsst-sqre/sqre-git-snapshot","description":"Scripts for snapshotting GH repos and managing snapshots","fork":false,"url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot","forks_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/forks","keys_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/teams","hooks_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/hooks","issue_events_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues/events{/number}","events_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/events","assignees_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/assignees{/user}","branches_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/branches{/branch}","tags_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/tags","blobs_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/refs{/sha}","trees_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/statuses/{sha}","languages_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/languages","stargazers_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/stargazers","contributors_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/contributors","subscribers_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/subscribers","subscription_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/subscription","commits_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/commits{/sha}","git_commits_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/git/commits{/sha}","comments_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/comments{/number}","issue_comment_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues/comments{/number}","contents_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/contents/{+path}","compare_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/merges","archive_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/downloads","issues_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues{/number}","pulls_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls{/number}","milestones_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/milestones{/number}","notifications_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/labels{/name}","releases_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/releases{/id}","deployments_url":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/deployments","created_at":"2016-11-23T18:23:43Z","updated_at":"2016-11-23T18:24:34Z","pushed_at":"2016-12-02T19:45:42Z","git_url":"git://github.com/lsst-sqre/sqre-git-snapshot.git","ssh_url":"git@github.com:lsst-sqre/sqre-git-snapshot.git","clone_url":"https://github.com/lsst-sqre/sqre-git-snapshot.git","svn_url":"https://github.com/lsst-sqre/sqre-git-snapshot","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/2"},"html":{"href":"https://github.com/lsst-sqre/sqre-git-snapshot/pull/2"},"issue":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues/2"},"comments":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/lsst-sqre/sqre-git-snapshot/statuses/dbfd618d51d8c71328e254ae8991917e95db7288"}}}}
{"actor":{"display_login":"jhoblitt"}}