{"action":"created","comment":{"url":"https://api.github.com/repos/docker-library/rabbitmq/pulls/comments/43999794","id":43999794,"diff_hunk":"@@ -1,6 +1,15 @@\n #!/bin/bash\n set -e\n \n+# If long & short hostnames are not the same, use long hostnames\n+if ! [[ $(hostname) == $(hostname -s) ]]; then\n+\texport RABBITMQ_USE_LONGNAME=true\n+fi\n+\n+if ! [[ -z ${RABBIT_SSL_CERT_FILE+x} ]] || ! [[ -z ${RABBIT_SSL_KEY_FILE+x} ]] || ! [[ -z ${RABBIT_SSL_CA_FILE+x} ]]; then","path":"docker-entrypoint.sh","position":9,"original_position":9,"commit_id":"a86f48150ccfa05c7334e750f430b348d958f34d","original_commit_id":"a86f48150ccfa05c7334e750f430b348d958f34d","user":{"login":"dumbbell","id":159804,"avatar_url":"https://avatars.githubusercontent.com/u/159804?v=3","gravatar_id":"","url":"https://api.github.com/users/dumbbell","html_url":"https://github.com/dumbbell","followers_url":"https://api.github.com/users/dumbbell/followers","following_url":"https://api.github.com/users/dumbbell/following{/other_user}","gists_url":"https://api.github.com/users/dumbbell/gists{/gist_id}","starred_url":"https://api.github.com/users/dumbbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dumbbell/subscriptions","organizations_url":"https://api.github.com/users/dumbbell/orgs","repos_url":"https://api.github.com/users/dumbbell/repos","events_url":"https://api.github.com/users/dumbbell/events{/privacy}","received_events_url":"https://api.github.com/users/dumbbell/received_events","type":"User","site_admin":false},"body":"About the `+x` in parameter expansion (eg. `${RABBIT_SSL_CERT_FILE+x}`), Bash man page indicates it should be `:+x` (eg. `${RABBIT_SSL_CERT_FILE:+x}`). I suppose Bash accepts both forms but you should use the documented one.","created_at":"2015-11-05T11:05:52Z","updated_at":"2015-11-05T11:05:52Z","html_url":"https://github.com/docker-library/rabbitmq/pull/49#discussion_r43999794","pull_request_url":"https://api.github.com/repos/docker-library/rabbitmq/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/docker-library/rabbitmq/pulls/comments/43999794"},"html":{"href":"https://github.com/docker-library/rabbitmq/pull/49#discussion_r43999794"},"pull_request":{"href":"https://api.github.com/repos/docker-library/rabbitmq/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/docker-library/rabbitmq/pulls/49","id":49405999,"html_url":"https://github.com/docker-library/rabbitmq/pull/49","diff_url":"https://github.com/docker-library/rabbitmq/pull/49.diff","patch_url":"https://github.com/docker-library/rabbitmq/pull/49.patch","issue_url":"https://api.github.com/repos/docker-library/rabbitmq/issues/49","number":49,"state":"open","locked":false,"title":"SSL and FDN support","user":{"login":"vovanbo","id":877240,"avatar_url":"https://avatars.githubusercontent.com/u/877240?v=3","gravatar_id":"","url":"https://api.github.com/users/vovanbo","html_url":"https://github.com/vovanbo","followers_url":"https://api.github.com/users/vovanbo/followers","following_url":"https://api.github.com/users/vovanbo/following{/other_user}","gists_url":"https://api.github.com/users/vovanbo/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanbo/subscriptions","organizations_url":"https://api.github.com/users/vovanbo/orgs","repos_url":"https://api.github.com/users/vovanbo/repos","events_url":"https://api.github.com/users/vovanbo/events{/privacy}","received_events_url":"https://api.github.com/users/vovanbo/received_events","type":"User","site_admin":false},"body":"This is \"cherrypick\" of SSL and FDN support from [alpine-rmq](https://github.com/gonkulator/alpine-rmq). Entrypoint is improved to support SSL configuration generation. Updated gosu to v1.6.\r\n\r\nNew environment variables:\r\n- RABBIT_SSL_CERT_FILE (`certfile`)\r\n- RABBIT_SSL_KEY_FILE (`keyfile`)\r\n- RABBIT_SSL_CA_FILE (`cacertfile`)\r\n- RABBIT_MANAGEMENT_ENABLED (flag used in Dockerfile with management plugin)","created_at":"2015-11-02T08:36:20Z","updated_at":"2015-11-05T11:05:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c240dd65279aaa25c11750f9356e09bca66af5a7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker-library/rabbitmq/pulls/49/commits","review_comments_url":"https://api.github.com/repos/docker-library/rabbitmq/pulls/49/comments","review_comment_url":"https://api.github.com/repos/docker-library/rabbitmq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker-library/rabbitmq/issues/49/comments","statuses_url":"https://api.github.com/repos/docker-library/rabbitmq/statuses/a86f48150ccfa05c7334e750f430b348d958f34d","head":{"label":"vovanbo:ssl-support","ref":"ssl-support","sha":"a86f48150ccfa05c7334e750f430b348d958f34d","user":{"login":"vovanbo","id":877240,"avatar_url":"https://avatars.githubusercontent.com/u/877240?v=3","gravatar_id":"","url":"https://api.github.com/users/vovanbo","html_url":"https://github.com/vovanbo","followers_url":"https://api.github.com/users/vovanbo/followers","following_url":"https://api.github.com/users/vovanbo/following{/other_user}","gists_url":"https://api.github.com/users/vovanbo/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanbo/subscriptions","organizations_url":"https://api.github.com/users/vovanbo/orgs","repos_url":"https://api.github.com/users/vovanbo/repos","events_url":"https://api.github.com/users/vovanbo/events{/privacy}","received_events_url":"https://api.github.com/users/vovanbo/received_events","type":"User","site_admin":false},"repo":{"id":45343815,"name":"rabbitmq","full_name":"vovanbo/rabbitmq","owner":{"login":"vovanbo","id":877240,"avatar_url":"https://avatars.githubusercontent.com/u/877240?v=3","gravatar_id":"","url":"https://api.github.com/users/vovanbo","html_url":"https://github.com/vovanbo","followers_url":"https://api.github.com/users/vovanbo/followers","following_url":"https://api.github.com/users/vovanbo/following{/other_user}","gists_url":"https://api.github.com/users/vovanbo/gists{/gist_id}","starred_url":"https://api.github.com/users/vovanbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vovanbo/subscriptions","organizations_url":"https://api.github.com/users/vovanbo/orgs","repos_url":"https://api.github.com/users/vovanbo/repos","events_url":"https://api.github.com/users/vovanbo/events{/privacy}","received_events_url":"https://api.github.com/users/vovanbo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vovanbo/rabbitmq","description":"Docker Official Image packaging for RabbitMQ","fork":true,"url":"https://api.github.com/repos/vovanbo/rabbitmq","forks_url":"https://api.github.com/repos/vovanbo/rabbitmq/forks","keys_url":"https://api.github.com/repos/vovanbo/rabbitmq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vovanbo/rabbitmq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vovanbo/rabbitmq/teams","hooks_url":"https://api.github.com/repos/vovanbo/rabbitmq/hooks","issue_events_url":"https://api.github.com/repos/vovanbo/rabbitmq/issues/events{/number}","events_url":"https://api.github.com/repos/vovanbo/rabbitmq/events","assignees_url":"https://api.github.com/repos/vovanbo/rabbitmq/assignees{/user}","branches_url":"https://api.github.com/repos/vovanbo/rabbitmq/branches{/branch}","tags_url":"https://api.github.com/repos/vovanbo/rabbitmq/tags","blobs_url":"https://api.github.com/repos/vovanbo/rabbitmq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vovanbo/rabbitmq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vovanbo/rabbitmq/git/refs{/sha}","trees_url":"https://api.github.com/repos/vovanbo/rabbitmq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vovanbo/rabbitmq/statuses/{sha}","languages_url":"https://api.github.com/repos/vovanbo/rabbitmq/languages","stargazers_url":"https://api.github.com/repos/vovanbo/rabbitmq/stargazers","contributors_url":"https://api.github.com/repos/vovanbo/rabbitmq/contributors","subscribers_url":"https://api.github.com/repos/vovanbo/rabbitmq/subscribers","subscription_url":"https://api.github.com/repos/vovanbo/rabbitmq/subscription","commits_url":"https://api.github.com/repos/vovanbo/rabbitmq/commits{/sha}","git_commits_url":"https://api.github.com/repos/vovanbo/rabbitmq/git/commits{/sha}","comments_url":"https://api.github.com/repos/vovanbo/rabbitmq/comments{/number}","issue_comment_url":"https://api.github.com/repos/vovanbo/rabbitmq/issues/comments{/number}","contents_url":"https://api.github.com/repos/vovanbo/rabbitmq/contents/{+path}","compare_url":"https://api.github.com/repos/vovanbo/rabbitmq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vovanbo/rabbitmq/merges","archive_url":"https://api.github.com/repos/vovanbo/rabbitmq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vovanbo/rabbitmq/downloads","issues_url":"https://api.github.com/repos/vovanbo/rabbitmq/issues{/number}","pulls_url":"https://api.github.com/repos/vovanbo/rabbitmq/pulls{/number}","milestones_url":"https://api.github.com/repos/vovanbo/rabbitmq/milestones{/number}","notifications_url":"https://api.github.com/repos/vovanbo/rabbitmq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vovanbo/rabbitmq/labels{/name}","releases_url":"https://api.github.com/repos/vovanbo/rabbitmq/releases{/id}","created_at":"2015-11-01T14:35:20Z","updated_at":"2015-11-01T14:35:21Z","pushed_at":"2015-11-01T19:54:26Z","git_url":"git://github.com/vovanbo/rabbitmq.git","ssh_url":"git@github.com:vovanbo/rabbitmq.git","clone_url":"https://github.com/vovanbo/rabbitmq.git","svn_url":"https://github.com/vovanbo/rabbitmq","homepage":"http://www.rabbitmq.com/","size":3711,"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":"docker-library:master","ref":"master","sha":"e5547042de5883aac5d00ee5365bb216630f9f4d","user":{"login":"docker-library","id":7739233,"avatar_url":"https://avatars.githubusercontent.com/u/7739233?v=3","gravatar_id":"","url":"https://api.github.com/users/docker-library","html_url":"https://github.com/docker-library","followers_url":"https://api.github.com/users/docker-library/followers","following_url":"https://api.github.com/users/docker-library/following{/other_user}","gists_url":"https://api.github.com/users/docker-library/gists{/gist_id}","starred_url":"https://api.github.com/users/docker-library/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker-library/subscriptions","organizations_url":"https://api.github.com/users/docker-library/orgs","repos_url":"https://api.github.com/users/docker-library/repos","events_url":"https://api.github.com/users/docker-library/events{/privacy}","received_events_url":"https://api.github.com/users/docker-library/received_events","type":"Organization","site_admin":false},"repo":{"id":27836599,"name":"rabbitmq","full_name":"docker-library/rabbitmq","owner":{"login":"docker-library","id":7739233,"avatar_url":"https://avatars.githubusercontent.com/u/7739233?v=3","gravatar_id":"","url":"https://api.github.com/users/docker-library","html_url":"https://github.com/docker-library","followers_url":"https://api.github.com/users/docker-library/followers","following_url":"https://api.github.com/users/docker-library/following{/other_user}","gists_url":"https://api.github.com/users/docker-library/gists{/gist_id}","starred_url":"https://api.github.com/users/docker-library/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker-library/subscriptions","organizations_url":"https://api.github.com/users/docker-library/orgs","repos_url":"https://api.github.com/users/docker-library/repos","events_url":"https://api.github.com/users/docker-library/events{/privacy}","received_events_url":"https://api.github.com/users/docker-library/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker-library/rabbitmq","description":"Docker Official Image packaging for RabbitMQ","fork":false,"url":"https://api.github.com/repos/docker-library/rabbitmq","forks_url":"https://api.github.com/repos/docker-library/rabbitmq/forks","keys_url":"https://api.github.com/repos/docker-library/rabbitmq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker-library/rabbitmq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker-library/rabbitmq/teams","hooks_url":"https://api.github.com/repos/docker-library/rabbitmq/hooks","issue_events_url":"https://api.github.com/repos/docker-library/rabbitmq/issues/events{/number}","events_url":"https://api.github.com/repos/docker-library/rabbitmq/events","assignees_url":"https://api.github.com/repos/docker-library/rabbitmq/assignees{/user}","branches_url":"https://api.github.com/repos/docker-library/rabbitmq/branches{/branch}","tags_url":"https://api.github.com/repos/docker-library/rabbitmq/tags","blobs_url":"https://api.github.com/repos/docker-library/rabbitmq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker-library/rabbitmq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker-library/rabbitmq/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker-library/rabbitmq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker-library/rabbitmq/statuses/{sha}","languages_url":"https://api.github.com/repos/docker-library/rabbitmq/languages","stargazers_url":"https://api.github.com/repos/docker-library/rabbitmq/stargazers","contributors_url":"https://api.github.com/repos/docker-library/rabbitmq/contributors","subscribers_url":"https://api.github.com/repos/docker-library/rabbitmq/subscribers","subscription_url":"https://api.github.com/repos/docker-library/rabbitmq/subscription","commits_url":"https://api.github.com/repos/docker-library/rabbitmq/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker-library/rabbitmq/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker-library/rabbitmq/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker-library/rabbitmq/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker-library/rabbitmq/contents/{+path}","compare_url":"https://api.github.com/repos/docker-library/rabbitmq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker-library/rabbitmq/merges","archive_url":"https://api.github.com/repos/docker-library/rabbitmq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker-library/rabbitmq/downloads","issues_url":"https://api.github.com/repos/docker-library/rabbitmq/issues{/number}","pulls_url":"https://api.github.com/repos/docker-library/rabbitmq/pulls{/number}","milestones_url":"https://api.github.com/repos/docker-library/rabbitmq/milestones{/number}","notifications_url":"https://api.github.com/repos/docker-library/rabbitmq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker-library/rabbitmq/labels{/name}","releases_url":"https://api.github.com/repos/docker-library/rabbitmq/releases{/id}","created_at":"2014-12-10T19:45:16Z","updated_at":"2015-11-02T08:40:08Z","pushed_at":"2015-11-02T08:36:20Z","git_url":"git://github.com/docker-library/rabbitmq.git","ssh_url":"git@github.com:docker-library/rabbitmq.git","clone_url":"https://github.com/docker-library/rabbitmq.git","svn_url":"https://github.com/docker-library/rabbitmq","homepage":"http://www.rabbitmq.com/","size":3711,"stargazers_count":22,"watchers_count":22,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":38,"mirror_url":null,"open_issues_count":11,"forks":38,"open_issues":11,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker-library/rabbitmq/pulls/49"},"html":{"href":"https://github.com/docker-library/rabbitmq/pull/49"},"issue":{"href":"https://api.github.com/repos/docker-library/rabbitmq/issues/49"},"comments":{"href":"https://api.github.com/repos/docker-library/rabbitmq/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/docker-library/rabbitmq/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/docker-library/rabbitmq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker-library/rabbitmq/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/docker-library/rabbitmq/statuses/a86f48150ccfa05c7334e750f430b348d958f34d"}}}}