{"action":"created","comment":{"url":"https://api.github.com/repos/sclorg/mongodb-container/pulls/comments/85773021","pull_request_review_id":6468350,"id":85773021,"diff_hunk":"@@ -0,0 +1,81 @@\n+# MongoDB Replication Example Using a Docker\n+\n+This [MongoDB replication](https://docs.mongodb.com/manual/replication/) example\n+uses a [Docker engine](http://docker.com) to run replica set members. This platform\n+do not provide any deployment automation and it is used mainly for developing and testing.","path":"examples/replset-docker/README.md","position":5,"original_position":5,"commit_id":"f5664e07c195db48de02140813d34b0ec6d9f7d7","original_commit_id":"f5664e07c195db48de02140813d34b0ec6d9f7d7","user":{"login":"omron93","id":3758789,"avatar_url":"https://avatars.githubusercontent.com/u/3758789?v=3","gravatar_id":"","url":"https://api.github.com/users/omron93","html_url":"https://github.com/omron93","followers_url":"https://api.github.com/users/omron93/followers","following_url":"https://api.github.com/users/omron93/following{/other_user}","gists_url":"https://api.github.com/users/omron93/gists{/gist_id}","starred_url":"https://api.github.com/users/omron93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omron93/subscriptions","organizations_url":"https://api.github.com/users/omron93/orgs","repos_url":"https://api.github.com/users/omron93/repos","events_url":"https://api.github.com/users/omron93/events{/privacy}","received_events_url":"https://api.github.com/users/omron93/received_events","type":"User","site_admin":false},"body":"> Why would one use Docker and not use at least Docker Compose?!\r\n\r\n@rhcarvalho Because docker is IMPOV \"standard\" for developers, Docker Compose requires another program to install and things to read about.\r\nIt definitely would be good to mention Docker Compose and ideally prepare configuration for it to be able to easily start replication.\r\n\r\nI would like to prepare same way for deploying replication as other database containers offers (mariadb, mysql, postgresql).","created_at":"2016-10-31T16:11:18Z","updated_at":"2016-10-31T16:11:18Z","html_url":"https://github.com/sclorg/mongodb-container/pull/178#discussion_r85773021","pull_request_url":"https://api.github.com/repos/sclorg/mongodb-container/pulls/178","_links":{"self":{"href":"https://api.github.com/repos/sclorg/mongodb-container/pulls/comments/85773021"},"html":{"href":"https://github.com/sclorg/mongodb-container/pull/178#discussion_r85773021"},"pull_request":{"href":"https://api.github.com/repos/sclorg/mongodb-container/pulls/178"}}},"pull_request":{"url":"https://api.github.com/repos/sclorg/mongodb-container/pulls/178","id":85001496,"html_url":"https://github.com/sclorg/mongodb-container/pull/178","diff_url":"https://github.com/sclorg/mongodb-container/pull/178.diff","patch_url":"https://github.com/sclorg/mongodb-container/pull/178.patch","issue_url":"https://api.github.com/repos/sclorg/mongodb-container/issues/178","number":178,"state":"open","locked":false,"title":"[WIP] Allow local replicaset without kubernetes.","user":{"login":"omron93","id":3758789,"avatar_url":"https://avatars.githubusercontent.com/u/3758789?v=3","gravatar_id":"","url":"https://api.github.com/users/omron93","html_url":"https://github.com/omron93","followers_url":"https://api.github.com/users/omron93/followers","following_url":"https://api.github.com/users/omron93/following{/other_user}","gists_url":"https://api.github.com/users/omron93/gists{/gist_id}","starred_url":"https://api.github.com/users/omron93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omron93/subscriptions","organizations_url":"https://api.github.com/users/omron93/orgs","repos_url":"https://api.github.com/users/omron93/repos","events_url":"https://api.github.com/users/omron93/events{/privacy}","received_events_url":"https://api.github.com/users/omron93/received_events","type":"User","site_admin":false},"body":"This PR allows user to create replset using only local docker.\n\nIf variable  `MONGODB_REPLICA_MEMBERS` is specified (it could be even empty) run-mongod does not use kubernetes to obtain pods IP addresses and read IPs from this environmental variable.\n\nSo creating replset:\n\n```\ndocker run ... -e MONGODB_REPLICA_NAME=rs0 -e MONGODB_KEYFILE_VALUE=... -e MONGODB_REPLICA_MEMBERS=\"\" centos/mongodb-24-centos7\ndocker run ... -e MONGODB_REPLICA_NAME=rs0 -e MONGODB_KEYFILE_VALUE=... -e MONGODB_REPLICA_MEMBERS=\"MEMBER1_IP\" centos/mongodb-24-centos7\ndocker run ... -e MONGODB_REPLICA_NAME=rs0 -e MONGODB_KEYFILE_VALUE=... -e MONGODB_REPLICA_MEMBERS=\"MEMBER1_IP,MEMBER2_IP\" centos/mongodb-24-centos7\ndocker run ... -e MONGODB_REPLICA_NAME=rs0 -e MONGODB_KEYFILE_VALUE=... -e MONGODB_REPLICA_MEMBERS=\"MAMBER1_IP,MEMBER2_IP,MEMBER3_IP\" centos/mongodb-24-centos7 run-mongod initialize\n```\n\nOnly initializing member requires IPs of all members, other does not require this (they know own IP) but more IPs members know the better (more robust in case of some problems).\n\nAlso test for testing local replset was added.\n\n@php-coder Please, do you remember why did you add `grep -v \"$(container_addr)\"` to `mongo_primary_member_addr()` in #130 ? (why local mongod IP is excluded?)\n","created_at":"2016-09-13T08:01:03Z","updated_at":"2016-10-31T16:11:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd245f1a79967f01b4506f94bd96a01bb55b2687","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sclorg/mongodb-container/pulls/178/commits","review_comments_url":"https://api.github.com/repos/sclorg/mongodb-container/pulls/178/comments","review_comment_url":"https://api.github.com/repos/sclorg/mongodb-container/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sclorg/mongodb-container/issues/178/comments","statuses_url":"https://api.github.com/repos/sclorg/mongodb-container/statuses/f5664e07c195db48de02140813d34b0ec6d9f7d7","head":{"label":"omron93:localhost-replset","ref":"localhost-replset","sha":"f5664e07c195db48de02140813d34b0ec6d9f7d7","user":{"login":"omron93","id":3758789,"avatar_url":"https://avatars.githubusercontent.com/u/3758789?v=3","gravatar_id":"","url":"https://api.github.com/users/omron93","html_url":"https://github.com/omron93","followers_url":"https://api.github.com/users/omron93/followers","following_url":"https://api.github.com/users/omron93/following{/other_user}","gists_url":"https://api.github.com/users/omron93/gists{/gist_id}","starred_url":"https://api.github.com/users/omron93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omron93/subscriptions","organizations_url":"https://api.github.com/users/omron93/orgs","repos_url":"https://api.github.com/users/omron93/repos","events_url":"https://api.github.com/users/omron93/events{/privacy}","received_events_url":"https://api.github.com/users/omron93/received_events","type":"User","site_admin":false},"repo":{"id":36733508,"name":"mongodb-container","full_name":"omron93/mongodb-container","owner":{"login":"omron93","id":3758789,"avatar_url":"https://avatars.githubusercontent.com/u/3758789?v=3","gravatar_id":"","url":"https://api.github.com/users/omron93","html_url":"https://github.com/omron93","followers_url":"https://api.github.com/users/omron93/followers","following_url":"https://api.github.com/users/omron93/following{/other_user}","gists_url":"https://api.github.com/users/omron93/gists{/gist_id}","starred_url":"https://api.github.com/users/omron93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omron93/subscriptions","organizations_url":"https://api.github.com/users/omron93/orgs","repos_url":"https://api.github.com/users/omron93/repos","events_url":"https://api.github.com/users/omron93/events{/privacy}","received_events_url":"https://api.github.com/users/omron93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/omron93/mongodb-container","description":null,"fork":true,"url":"https://api.github.com/repos/omron93/mongodb-container","forks_url":"https://api.github.com/repos/omron93/mongodb-container/forks","keys_url":"https://api.github.com/repos/omron93/mongodb-container/keys{/key_id}","collaborators_url":"https://api.github.com/repos/omron93/mongodb-container/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/omron93/mongodb-container/teams","hooks_url":"https://api.github.com/repos/omron93/mongodb-container/hooks","issue_events_url":"https://api.github.com/repos/omron93/mongodb-container/issues/events{/number}","events_url":"https://api.github.com/repos/omron93/mongodb-container/events","assignees_url":"https://api.github.com/repos/omron93/mongodb-container/assignees{/user}","branches_url":"https://api.github.com/repos/omron93/mongodb-container/branches{/branch}","tags_url":"https://api.github.com/repos/omron93/mongodb-container/tags","blobs_url":"https://api.github.com/repos/omron93/mongodb-container/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/omron93/mongodb-container/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/omron93/mongodb-container/git/refs{/sha}","trees_url":"https://api.github.com/repos/omron93/mongodb-container/git/trees{/sha}","statuses_url":"https://api.github.com/repos/omron93/mongodb-container/statuses/{sha}","languages_url":"https://api.github.com/repos/omron93/mongodb-container/languages","stargazers_url":"https://api.github.com/repos/omron93/mongodb-container/stargazers","contributors_url":"https://api.github.com/repos/omron93/mongodb-container/contributors","subscribers_url":"https://api.github.com/repos/omron93/mongodb-container/subscribers","subscription_url":"https://api.github.com/repos/omron93/mongodb-container/subscription","commits_url":"https://api.github.com/repos/omron93/mongodb-container/commits{/sha}","git_commits_url":"https://api.github.com/repos/omron93/mongodb-container/git/commits{/sha}","comments_url":"https://api.github.com/repos/omron93/mongodb-container/comments{/number}","issue_comment_url":"https://api.github.com/repos/omron93/mongodb-container/issues/comments{/number}","contents_url":"https://api.github.com/repos/omron93/mongodb-container/contents/{+path}","compare_url":"https://api.github.com/repos/omron93/mongodb-container/compare/{base}...{head}","merges_url":"https://api.github.com/repos/omron93/mongodb-container/merges","archive_url":"https://api.github.com/repos/omron93/mongodb-container/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/omron93/mongodb-container/downloads","issues_url":"https://api.github.com/repos/omron93/mongodb-container/issues{/number}","pulls_url":"https://api.github.com/repos/omron93/mongodb-container/pulls{/number}","milestones_url":"https://api.github.com/repos/omron93/mongodb-container/milestones{/number}","notifications_url":"https://api.github.com/repos/omron93/mongodb-container/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/omron93/mongodb-container/labels{/name}","releases_url":"https://api.github.com/repos/omron93/mongodb-container/releases{/id}","deployments_url":"https://api.github.com/repos/omron93/mongodb-container/deployments","created_at":"2015-06-02T13:03:57Z","updated_at":"2016-08-23T10:42:08Z","pushed_at":"2016-10-26T08:38:39Z","git_url":"git://github.com/omron93/mongodb-container.git","ssh_url":"git@github.com:omron93/mongodb-container.git","clone_url":"https://github.com/omron93/mongodb-container.git","svn_url":"https://github.com/omron93/mongodb-container","homepage":null,"size":361,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sclorg:master","ref":"master","sha":"554b196a82c2164b817a4551705ace7f8ede4ae5","user":{"login":"sclorg","id":9047960,"avatar_url":"https://avatars.githubusercontent.com/u/9047960?v=3","gravatar_id":"","url":"https://api.github.com/users/sclorg","html_url":"https://github.com/sclorg","followers_url":"https://api.github.com/users/sclorg/followers","following_url":"https://api.github.com/users/sclorg/following{/other_user}","gists_url":"https://api.github.com/users/sclorg/gists{/gist_id}","starred_url":"https://api.github.com/users/sclorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sclorg/subscriptions","organizations_url":"https://api.github.com/users/sclorg/orgs","repos_url":"https://api.github.com/users/sclorg/repos","events_url":"https://api.github.com/users/sclorg/events{/privacy}","received_events_url":"https://api.github.com/users/sclorg/received_events","type":"Organization","site_admin":false},"repo":{"id":31970825,"name":"mongodb-container","full_name":"sclorg/mongodb-container","owner":{"login":"sclorg","id":9047960,"avatar_url":"https://avatars.githubusercontent.com/u/9047960?v=3","gravatar_id":"","url":"https://api.github.com/users/sclorg","html_url":"https://github.com/sclorg","followers_url":"https://api.github.com/users/sclorg/followers","following_url":"https://api.github.com/users/sclorg/following{/other_user}","gists_url":"https://api.github.com/users/sclorg/gists{/gist_id}","starred_url":"https://api.github.com/users/sclorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sclorg/subscriptions","organizations_url":"https://api.github.com/users/sclorg/orgs","repos_url":"https://api.github.com/users/sclorg/repos","events_url":"https://api.github.com/users/sclorg/events{/privacy}","received_events_url":"https://api.github.com/users/sclorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sclorg/mongodb-container","description":null,"fork":false,"url":"https://api.github.com/repos/sclorg/mongodb-container","forks_url":"https://api.github.com/repos/sclorg/mongodb-container/forks","keys_url":"https://api.github.com/repos/sclorg/mongodb-container/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sclorg/mongodb-container/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sclorg/mongodb-container/teams","hooks_url":"https://api.github.com/repos/sclorg/mongodb-container/hooks","issue_events_url":"https://api.github.com/repos/sclorg/mongodb-container/issues/events{/number}","events_url":"https://api.github.com/repos/sclorg/mongodb-container/events","assignees_url":"https://api.github.com/repos/sclorg/mongodb-container/assignees{/user}","branches_url":"https://api.github.com/repos/sclorg/mongodb-container/branches{/branch}","tags_url":"https://api.github.com/repos/sclorg/mongodb-container/tags","blobs_url":"https://api.github.com/repos/sclorg/mongodb-container/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sclorg/mongodb-container/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sclorg/mongodb-container/git/refs{/sha}","trees_url":"https://api.github.com/repos/sclorg/mongodb-container/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sclorg/mongodb-container/statuses/{sha}","languages_url":"https://api.github.com/repos/sclorg/mongodb-container/languages","stargazers_url":"https://api.github.com/repos/sclorg/mongodb-container/stargazers","contributors_url":"https://api.github.com/repos/sclorg/mongodb-container/contributors","subscribers_url":"https://api.github.com/repos/sclorg/mongodb-container/subscribers","subscription_url":"https://api.github.com/repos/sclorg/mongodb-container/subscription","commits_url":"https://api.github.com/repos/sclorg/mongodb-container/commits{/sha}","git_commits_url":"https://api.github.com/repos/sclorg/mongodb-container/git/commits{/sha}","comments_url":"https://api.github.com/repos/sclorg/mongodb-container/comments{/number}","issue_comment_url":"https://api.github.com/repos/sclorg/mongodb-container/issues/comments{/number}","contents_url":"https://api.github.com/repos/sclorg/mongodb-container/contents/{+path}","compare_url":"https://api.github.com/repos/sclorg/mongodb-container/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sclorg/mongodb-container/merges","archive_url":"https://api.github.com/repos/sclorg/mongodb-container/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sclorg/mongodb-container/downloads","issues_url":"https://api.github.com/repos/sclorg/mongodb-container/issues{/number}","pulls_url":"https://api.github.com/repos/sclorg/mongodb-container/pulls{/number}","milestones_url":"https://api.github.com/repos/sclorg/mongodb-container/milestones{/number}","notifications_url":"https://api.github.com/repos/sclorg/mongodb-container/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sclorg/mongodb-container/labels{/name}","releases_url":"https://api.github.com/repos/sclorg/mongodb-container/releases{/id}","deployments_url":"https://api.github.com/repos/sclorg/mongodb-container/deployments","created_at":"2015-03-10T17:15:19Z","updated_at":"2016-10-18T10:19:33Z","pushed_at":"2016-10-26T08:38:40Z","git_url":"git://github.com/sclorg/mongodb-container.git","ssh_url":"git@github.com:sclorg/mongodb-container.git","clone_url":"https://github.com/sclorg/mongodb-container.git","svn_url":"https://github.com/sclorg/mongodb-container","homepage":null,"size":513,"stargazers_count":7,"watchers_count":7,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":60,"mirror_url":null,"open_issues_count":19,"forks":60,"open_issues":19,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sclorg/mongodb-container/pulls/178"},"html":{"href":"https://github.com/sclorg/mongodb-container/pull/178"},"issue":{"href":"https://api.github.com/repos/sclorg/mongodb-container/issues/178"},"comments":{"href":"https://api.github.com/repos/sclorg/mongodb-container/issues/178/comments"},"review_comments":{"href":"https://api.github.com/repos/sclorg/mongodb-container/pulls/178/comments"},"review_comment":{"href":"https://api.github.com/repos/sclorg/mongodb-container/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sclorg/mongodb-container/pulls/178/commits"},"statuses":{"href":"https://api.github.com/repos/sclorg/mongodb-container/statuses/f5664e07c195db48de02140813d34b0ec6d9f7d7"}}}}
{"actor":{"display_login":"omron93"}}