{"action":"closed","number":70,"pull_request":{"url":"https://api.github.com/repos/coralproject/sponge/pulls/70","id":68747471,"html_url":"https://github.com/coralproject/sponge/pull/70","diff_url":"https://github.com/coralproject/sponge/pull/70.diff","patch_url":"https://github.com/coralproject/sponge/pull/70.patch","issue_url":"https://api.github.com/repos/coralproject/sponge/issues/70","number":70,"state":"closed","locked":false,"title":"Provide an entrypoint for the Sponge binary","user":{"login":"MixedMessages","id":13422477,"avatar_url":"https://avatars.githubusercontent.com/u/13422477?v=3","gravatar_id":"","url":"https://api.github.com/users/MixedMessages","html_url":"https://github.com/MixedMessages","followers_url":"https://api.github.com/users/MixedMessages/followers","following_url":"https://api.github.com/users/MixedMessages/following{/other_user}","gists_url":"https://api.github.com/users/MixedMessages/gists{/gist_id}","starred_url":"https://api.github.com/users/MixedMessages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MixedMessages/subscriptions","organizations_url":"https://api.github.com/users/MixedMessages/orgs","repos_url":"https://api.github.com/users/MixedMessages/repos","events_url":"https://api.github.com/users/MixedMessages/events{/privacy}","received_events_url":"https://api.github.com/users/MixedMessages/received_events","type":"User","site_admin":false},"body":"## What does this PR do?\r\n\r\nMakes the entrypoint for the dockerized sponge container the `sponge` binary and the default parameter to be the import command.\r\n\r\nIt maintains backwards compatibility with previous documentation that indicates running \r\n`docker run --env-file env.list -d sponge` will run the equivalent of `./sponge import`.\r\n\r\nExposes the rest of the binary's functionality by allowing users to pass other parameters besides import.\r\n\r\nThis PR allows us to run more than `sponge import` using the same command.\r\n\r\n## How do I test this PR?\r\nBuild the docker image:\r\n`docker build -t \"sponge:latest\" -f Dockerfile ./`\r\n\r\nRun it to see the default behavior has not changed:\r\n`docker run --env-file env.list -d sponge`\r\n\r\nNow run it using different any of the allowed parameters:\r\n`docker run --env-file env.list -d sponge import --limit=1000 --offset=20`\r\n`docker run --env-file env.list -d sponge -h`\r\n\r\n@coralproject/backend\r\n","created_at":"2016-05-03T17:56:18Z","updated_at":"2016-05-03T18:07:42Z","closed_at":"2016-05-03T18:07:42Z","merged_at":"2016-05-03T18:07:42Z","merge_commit_sha":"612263444b34f00aad930e2cbc2359311a865eb0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coralproject/sponge/pulls/70/commits","review_comments_url":"https://api.github.com/repos/coralproject/sponge/pulls/70/comments","review_comment_url":"https://api.github.com/repos/coralproject/sponge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/coralproject/sponge/issues/70/comments","statuses_url":"https://api.github.com/repos/coralproject/sponge/statuses/4a0cae4521eeda24cb38a036eadf33fb3b6e2e9e","head":{"label":"MixedMessages:updated_dockerfile_sponge_binary","ref":"updated_dockerfile_sponge_binary","sha":"4a0cae4521eeda24cb38a036eadf33fb3b6e2e9e","user":{"login":"MixedMessages","id":13422477,"avatar_url":"https://avatars.githubusercontent.com/u/13422477?v=3","gravatar_id":"","url":"https://api.github.com/users/MixedMessages","html_url":"https://github.com/MixedMessages","followers_url":"https://api.github.com/users/MixedMessages/followers","following_url":"https://api.github.com/users/MixedMessages/following{/other_user}","gists_url":"https://api.github.com/users/MixedMessages/gists{/gist_id}","starred_url":"https://api.github.com/users/MixedMessages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MixedMessages/subscriptions","organizations_url":"https://api.github.com/users/MixedMessages/orgs","repos_url":"https://api.github.com/users/MixedMessages/repos","events_url":"https://api.github.com/users/MixedMessages/events{/privacy}","received_events_url":"https://api.github.com/users/MixedMessages/received_events","type":"User","site_admin":false},"repo":{"id":57184915,"name":"sponge","full_name":"MixedMessages/sponge","owner":{"login":"MixedMessages","id":13422477,"avatar_url":"https://avatars.githubusercontent.com/u/13422477?v=3","gravatar_id":"","url":"https://api.github.com/users/MixedMessages","html_url":"https://github.com/MixedMessages","followers_url":"https://api.github.com/users/MixedMessages/followers","following_url":"https://api.github.com/users/MixedMessages/following{/other_user}","gists_url":"https://api.github.com/users/MixedMessages/gists{/gist_id}","starred_url":"https://api.github.com/users/MixedMessages/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MixedMessages/subscriptions","organizations_url":"https://api.github.com/users/MixedMessages/orgs","repos_url":"https://api.github.com/users/MixedMessages/repos","events_url":"https://api.github.com/users/MixedMessages/events{/privacy}","received_events_url":"https://api.github.com/users/MixedMessages/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MixedMessages/sponge","description":"The import layer will contain strategies for pulling data from existing systems into Coral.","fork":true,"url":"https://api.github.com/repos/MixedMessages/sponge","forks_url":"https://api.github.com/repos/MixedMessages/sponge/forks","keys_url":"https://api.github.com/repos/MixedMessages/sponge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MixedMessages/sponge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MixedMessages/sponge/teams","hooks_url":"https://api.github.com/repos/MixedMessages/sponge/hooks","issue_events_url":"https://api.github.com/repos/MixedMessages/sponge/issues/events{/number}","events_url":"https://api.github.com/repos/MixedMessages/sponge/events","assignees_url":"https://api.github.com/repos/MixedMessages/sponge/assignees{/user}","branches_url":"https://api.github.com/repos/MixedMessages/sponge/branches{/branch}","tags_url":"https://api.github.com/repos/MixedMessages/sponge/tags","blobs_url":"https://api.github.com/repos/MixedMessages/sponge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MixedMessages/sponge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MixedMessages/sponge/git/refs{/sha}","trees_url":"https://api.github.com/repos/MixedMessages/sponge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MixedMessages/sponge/statuses/{sha}","languages_url":"https://api.github.com/repos/MixedMessages/sponge/languages","stargazers_url":"https://api.github.com/repos/MixedMessages/sponge/stargazers","contributors_url":"https://api.github.com/repos/MixedMessages/sponge/contributors","subscribers_url":"https://api.github.com/repos/MixedMessages/sponge/subscribers","subscription_url":"https://api.github.com/repos/MixedMessages/sponge/subscription","commits_url":"https://api.github.com/repos/MixedMessages/sponge/commits{/sha}","git_commits_url":"https://api.github.com/repos/MixedMessages/sponge/git/commits{/sha}","comments_url":"https://api.github.com/repos/MixedMessages/sponge/comments{/number}","issue_comment_url":"https://api.github.com/repos/MixedMessages/sponge/issues/comments{/number}","contents_url":"https://api.github.com/repos/MixedMessages/sponge/contents/{+path}","compare_url":"https://api.github.com/repos/MixedMessages/sponge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MixedMessages/sponge/merges","archive_url":"https://api.github.com/repos/MixedMessages/sponge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MixedMessages/sponge/downloads","issues_url":"https://api.github.com/repos/MixedMessages/sponge/issues{/number}","pulls_url":"https://api.github.com/repos/MixedMessages/sponge/pulls{/number}","milestones_url":"https://api.github.com/repos/MixedMessages/sponge/milestones{/number}","notifications_url":"https://api.github.com/repos/MixedMessages/sponge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MixedMessages/sponge/labels{/name}","releases_url":"https://api.github.com/repos/MixedMessages/sponge/releases{/id}","deployments_url":"https://api.github.com/repos/MixedMessages/sponge/deployments","created_at":"2016-04-27T05:05:41Z","updated_at":"2016-04-27T05:05:42Z","pushed_at":"2016-05-03T17:54:00Z","git_url":"git://github.com/MixedMessages/sponge.git","ssh_url":"git@github.com:MixedMessages/sponge.git","clone_url":"https://github.com/MixedMessages/sponge.git","svn_url":"https://github.com/MixedMessages/sponge","homepage":null,"size":5581,"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":"coralproject:master","ref":"master","sha":"584bbf98207ebf131b56f3c3bf3bfe7948e0df25","user":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"repo":{"id":43971760,"name":"sponge","full_name":"coralproject/sponge","owner":{"login":"coralproject","id":9255912,"avatar_url":"https://avatars.githubusercontent.com/u/9255912?v=3","gravatar_id":"","url":"https://api.github.com/users/coralproject","html_url":"https://github.com/coralproject","followers_url":"https://api.github.com/users/coralproject/followers","following_url":"https://api.github.com/users/coralproject/following{/other_user}","gists_url":"https://api.github.com/users/coralproject/gists{/gist_id}","starred_url":"https://api.github.com/users/coralproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coralproject/subscriptions","organizations_url":"https://api.github.com/users/coralproject/orgs","repos_url":"https://api.github.com/users/coralproject/repos","events_url":"https://api.github.com/users/coralproject/events{/privacy}","received_events_url":"https://api.github.com/users/coralproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coralproject/sponge","description":"The import layer will contain strategies for pulling data from existing systems into Coral.","fork":false,"url":"https://api.github.com/repos/coralproject/sponge","forks_url":"https://api.github.com/repos/coralproject/sponge/forks","keys_url":"https://api.github.com/repos/coralproject/sponge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coralproject/sponge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coralproject/sponge/teams","hooks_url":"https://api.github.com/repos/coralproject/sponge/hooks","issue_events_url":"https://api.github.com/repos/coralproject/sponge/issues/events{/number}","events_url":"https://api.github.com/repos/coralproject/sponge/events","assignees_url":"https://api.github.com/repos/coralproject/sponge/assignees{/user}","branches_url":"https://api.github.com/repos/coralproject/sponge/branches{/branch}","tags_url":"https://api.github.com/repos/coralproject/sponge/tags","blobs_url":"https://api.github.com/repos/coralproject/sponge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coralproject/sponge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coralproject/sponge/git/refs{/sha}","trees_url":"https://api.github.com/repos/coralproject/sponge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coralproject/sponge/statuses/{sha}","languages_url":"https://api.github.com/repos/coralproject/sponge/languages","stargazers_url":"https://api.github.com/repos/coralproject/sponge/stargazers","contributors_url":"https://api.github.com/repos/coralproject/sponge/contributors","subscribers_url":"https://api.github.com/repos/coralproject/sponge/subscribers","subscription_url":"https://api.github.com/repos/coralproject/sponge/subscription","commits_url":"https://api.github.com/repos/coralproject/sponge/commits{/sha}","git_commits_url":"https://api.github.com/repos/coralproject/sponge/git/commits{/sha}","comments_url":"https://api.github.com/repos/coralproject/sponge/comments{/number}","issue_comment_url":"https://api.github.com/repos/coralproject/sponge/issues/comments{/number}","contents_url":"https://api.github.com/repos/coralproject/sponge/contents/{+path}","compare_url":"https://api.github.com/repos/coralproject/sponge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coralproject/sponge/merges","archive_url":"https://api.github.com/repos/coralproject/sponge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coralproject/sponge/downloads","issues_url":"https://api.github.com/repos/coralproject/sponge/issues{/number}","pulls_url":"https://api.github.com/repos/coralproject/sponge/pulls{/number}","milestones_url":"https://api.github.com/repos/coralproject/sponge/milestones{/number}","notifications_url":"https://api.github.com/repos/coralproject/sponge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coralproject/sponge/labels{/name}","releases_url":"https://api.github.com/repos/coralproject/sponge/releases{/id}","deployments_url":"https://api.github.com/repos/coralproject/sponge/deployments","created_at":"2015-10-09T18:01:39Z","updated_at":"2016-04-05T07:26:15Z","pushed_at":"2016-05-03T18:07:42Z","git_url":"git://github.com/coralproject/sponge.git","ssh_url":"git@github.com:coralproject/sponge.git","clone_url":"https://github.com/coralproject/sponge.git","svn_url":"https://github.com/coralproject/sponge","homepage":null,"size":5580,"stargazers_count":2,"watchers_count":2,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":13,"forks":2,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coralproject/sponge/pulls/70"},"html":{"href":"https://github.com/coralproject/sponge/pull/70"},"issue":{"href":"https://api.github.com/repos/coralproject/sponge/issues/70"},"comments":{"href":"https://api.github.com/repos/coralproject/sponge/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/coralproject/sponge/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/coralproject/sponge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/coralproject/sponge/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/coralproject/sponge/statuses/4a0cae4521eeda24cb38a036eadf33fb3b6e2e9e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"gabelula","id":28330,"avatar_url":"https://avatars.githubusercontent.com/u/28330?v=3","gravatar_id":"","url":"https://api.github.com/users/gabelula","html_url":"https://github.com/gabelula","followers_url":"https://api.github.com/users/gabelula/followers","following_url":"https://api.github.com/users/gabelula/following{/other_user}","gists_url":"https://api.github.com/users/gabelula/gists{/gist_id}","starred_url":"https://api.github.com/users/gabelula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabelula/subscriptions","organizations_url":"https://api.github.com/users/gabelula/orgs","repos_url":"https://api.github.com/users/gabelula/repos","events_url":"https://api.github.com/users/gabelula/events{/privacy}","received_events_url":"https://api.github.com/users/gabelula/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":4,"deletions":2,"changed_files":1}}