{"action":"created","comment":{"url":"https://api.github.com/repos/docker/docker/pulls/comments/25523474","id":25523474,"diff_hunk":"@@ -0,0 +1,264 @@\n+#!/bin/bash\n+set -e\n+\n+cat <<-'EOF'\n+#\n+# DO NOT EDIT - GENERATED BY project/generate-dockerfile.sh\n+#\n+# This file describes the standard way to build Docker, using docker\n+#\n+# Usage:\n+#\n+# # Assemble the full dev environment. This is slow the first time.\n+# docker build -t docker .\n+#\n+# # Mount your source in an interactive container for quick testing:\n+# docker run -v `pwd`:/go/src/github.com/docker/docker --privileged -i -t docker bash\n+#\n+# # Run the test suite:\n+# docker run --privileged docker hack/make.sh test\n+#\n+# # Publish a release:\n+# docker run --privileged \\\n+#  -e AWS_S3_BUCKET=baz \\\n+#  -e AWS_ACCESS_KEY=foo \\\n+#  -e AWS_SECRET_KEY=bar \\\n+#  -e GPG_PASSPHRASE=gloubiboulga \\\n+#  docker hack/release.sh\n+#\n+# Note: Apparmor used to mess with privileged mode, but this is no longer\n+# the case. Therefore, you don't have to disable it anymore.\n+#\n+\n+EOF\n+\n+if [ \"$ARCH\" == \"ppc64le\" ]; then\n+\tcat <<-'EOF'\n+\t\tFROM gccgo_image_14\n+\tEOF\n+elif [ \"$ARCH\" == \"s390x\" ]; then\n+\tcat <<-'EOF'\n+\t\tFROM gccgo-image\n+\t\tRUN echo \"deb http://ftp.de.debian.org/debian wheezy-backports main \" >> /etc/apt/sources.list\n+\tEOF\n+elif [ \"$ARCH\" == \"amd64\" ] && [ \"$GCCGO\" == \"true\" ]; then\n+\tcat <<-'EOF'\n+\t\tFROM gccgo_image_14\n+\tEOF\n+else\n+\tcat <<-'EOF'\n+\t\tFROM ubuntu:14.04\n+\tEOF\n+fi\n+\n+cat <<-'EOF'\n+MAINTAINER Tianon Gravi <admwiggin@gmail.com> (@tianon)\n+\n+# Packaged dependencies\n+RUN apt-get update && apt-get install -y \\\n+       apparmor \\\n+       aufs-tools \\\n+       automake \\\n+       btrfs-tools \\\n+       build-essential \\\n+       curl \\\n+       dpkg-sig \\\n+       git \\\n+       iptables \\\n+       libapparmor-dev \\\n+       libcap-dev \\\n+       libsqlite3-dev \\\n+       mercurial \\\n+       parallel \\\n+       python-mock \\\n+       python-pip \\\n+       python-websocket \\\n+       reprepro \\\n+       ruby1.9.1 \\\n+       ruby1.9.1-dev \\\n+       s3cmd=1.1.0* \\\n+       --no-install-recommends\n+\n+# Get lvm2 source for compiling statically\n+RUN git clone -b v2_02_103 https://git.fedorahosted.org/git/lvm2.git /usr/local/lvm2\n+# see https://git.fedorahosted.org/cgit/lvm2.git/refs/tags for release tags\n+\n+# Compile and install lvm2\n+EOF\n+\n+if [ \"$GCCGO\" == \"true\" ]; then","path":"project/generate-dockerfile.sh","position":89,"original_position":89,"commit_id":"45eac235e9992684013f76aaa0cc4810c39428c1","original_commit_id":"2f5ce2bf6254c0fed1abc06fe5fd79d70b933b31","user":{"login":"tianon","id":161631,"avatar_url":"https://avatars.githubusercontent.com/u/161631?v=3","gravatar_id":"","url":"https://api.github.com/users/tianon","html_url":"https://github.com/tianon","followers_url":"https://api.github.com/users/tianon/followers","following_url":"https://api.github.com/users/tianon/following{/other_user}","gists_url":"https://api.github.com/users/tianon/gists{/gist_id}","starred_url":"https://api.github.com/users/tianon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tianon/subscriptions","organizations_url":"https://api.github.com/users/tianon/orgs","repos_url":"https://api.github.com/users/tianon/repos","events_url":"https://api.github.com/users/tianon/events{/privacy}","received_events_url":"https://api.github.com/users/tianon/received_events","type":"User","site_admin":false},"body":"yep!\n","created_at":"2015-02-27T17:41:34Z","updated_at":"2015-02-27T17:41:34Z","html_url":"https://github.com/docker/docker/pull/10990#discussion_r25523474","pull_request_url":"https://api.github.com/repos/docker/docker/pulls/10990","_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/comments/25523474"},"html":{"href":"https://github.com/docker/docker/pull/10990#discussion_r25523474"},"pull_request":{"href":"https://api.github.com/repos/docker/docker/pulls/10990"}}},"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/10990","id":29933827,"html_url":"https://github.com/docker/docker/pull/10990","diff_url":"https://github.com/docker/docker/pull/10990.diff","patch_url":"https://github.com/docker/docker/pull/10990.patch","issue_url":"https://api.github.com/repos/docker/docker/issues/10990","number":10990,"state":"open","locked":false,"title":"Generate Dockerfile through bash","user":{"login":"brahmaroutu","id":5403596,"avatar_url":"https://avatars.githubusercontent.com/u/5403596?v=3","gravatar_id":"","url":"https://api.github.com/users/brahmaroutu","html_url":"https://github.com/brahmaroutu","followers_url":"https://api.github.com/users/brahmaroutu/followers","following_url":"https://api.github.com/users/brahmaroutu/following{/other_user}","gists_url":"https://api.github.com/users/brahmaroutu/gists{/gist_id}","starred_url":"https://api.github.com/users/brahmaroutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brahmaroutu/subscriptions","organizations_url":"https://api.github.com/users/brahmaroutu/orgs","repos_url":"https://api.github.com/users/brahmaroutu/repos","events_url":"https://api.github.com/users/brahmaroutu/events{/privacy}","received_events_url":"https://api.github.com/users/brahmaroutu/received_events","type":"User","site_admin":false},"body":"Addresses #9207\r\n\r\nSigned-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>","created_at":"2015-02-24T20:41:50Z","updated_at":"2015-02-27T17:41:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"369ba3f1898a1cf24bac0535aa70890ada7d0253","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/docker/pulls/10990/commits","review_comments_url":"https://api.github.com/repos/docker/docker/pulls/10990/comments","review_comment_url":"https://api.github.com/repos/docker/docker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/docker/issues/10990/comments","statuses_url":"https://api.github.com/repos/docker/docker/statuses/45eac235e9992684013f76aaa0cc4810c39428c1","head":{"label":"brahmaroutu:dockerfile_gen","ref":"dockerfile_gen","sha":"45eac235e9992684013f76aaa0cc4810c39428c1","user":{"login":"brahmaroutu","id":5403596,"avatar_url":"https://avatars.githubusercontent.com/u/5403596?v=3","gravatar_id":"","url":"https://api.github.com/users/brahmaroutu","html_url":"https://github.com/brahmaroutu","followers_url":"https://api.github.com/users/brahmaroutu/followers","following_url":"https://api.github.com/users/brahmaroutu/following{/other_user}","gists_url":"https://api.github.com/users/brahmaroutu/gists{/gist_id}","starred_url":"https://api.github.com/users/brahmaroutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brahmaroutu/subscriptions","organizations_url":"https://api.github.com/users/brahmaroutu/orgs","repos_url":"https://api.github.com/users/brahmaroutu/repos","events_url":"https://api.github.com/users/brahmaroutu/events{/privacy}","received_events_url":"https://api.github.com/users/brahmaroutu/received_events","type":"User","site_admin":false},"repo":{"id":23947795,"name":"docker","full_name":"brahmaroutu/docker","owner":{"login":"brahmaroutu","id":5403596,"avatar_url":"https://avatars.githubusercontent.com/u/5403596?v=3","gravatar_id":"","url":"https://api.github.com/users/brahmaroutu","html_url":"https://github.com/brahmaroutu","followers_url":"https://api.github.com/users/brahmaroutu/followers","following_url":"https://api.github.com/users/brahmaroutu/following{/other_user}","gists_url":"https://api.github.com/users/brahmaroutu/gists{/gist_id}","starred_url":"https://api.github.com/users/brahmaroutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brahmaroutu/subscriptions","organizations_url":"https://api.github.com/users/brahmaroutu/orgs","repos_url":"https://api.github.com/users/brahmaroutu/repos","events_url":"https://api.github.com/users/brahmaroutu/events{/privacy}","received_events_url":"https://api.github.com/users/brahmaroutu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brahmaroutu/docker","description":"Docker - the open-source application container engine","fork":true,"url":"https://api.github.com/repos/brahmaroutu/docker","forks_url":"https://api.github.com/repos/brahmaroutu/docker/forks","keys_url":"https://api.github.com/repos/brahmaroutu/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brahmaroutu/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brahmaroutu/docker/teams","hooks_url":"https://api.github.com/repos/brahmaroutu/docker/hooks","issue_events_url":"https://api.github.com/repos/brahmaroutu/docker/issues/events{/number}","events_url":"https://api.github.com/repos/brahmaroutu/docker/events","assignees_url":"https://api.github.com/repos/brahmaroutu/docker/assignees{/user}","branches_url":"https://api.github.com/repos/brahmaroutu/docker/branches{/branch}","tags_url":"https://api.github.com/repos/brahmaroutu/docker/tags","blobs_url":"https://api.github.com/repos/brahmaroutu/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brahmaroutu/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brahmaroutu/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/brahmaroutu/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brahmaroutu/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/brahmaroutu/docker/languages","stargazers_url":"https://api.github.com/repos/brahmaroutu/docker/stargazers","contributors_url":"https://api.github.com/repos/brahmaroutu/docker/contributors","subscribers_url":"https://api.github.com/repos/brahmaroutu/docker/subscribers","subscription_url":"https://api.github.com/repos/brahmaroutu/docker/subscription","commits_url":"https://api.github.com/repos/brahmaroutu/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/brahmaroutu/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/brahmaroutu/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/brahmaroutu/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/brahmaroutu/docker/contents/{+path}","compare_url":"https://api.github.com/repos/brahmaroutu/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brahmaroutu/docker/merges","archive_url":"https://api.github.com/repos/brahmaroutu/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brahmaroutu/docker/downloads","issues_url":"https://api.github.com/repos/brahmaroutu/docker/issues{/number}","pulls_url":"https://api.github.com/repos/brahmaroutu/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/brahmaroutu/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/brahmaroutu/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brahmaroutu/docker/labels{/name}","releases_url":"https://api.github.com/repos/brahmaroutu/docker/releases{/id}","created_at":"2014-09-12T05:17:02Z","updated_at":"2015-02-26T19:43:40Z","pushed_at":"2015-02-26T19:46:07Z","git_url":"git://github.com/brahmaroutu/docker.git","ssh_url":"git@github.com:brahmaroutu/docker.git","clone_url":"https://github.com/brahmaroutu/docker.git","svn_url":"https://github.com/brahmaroutu/docker","homepage":"http://www.docker.com","size":43476,"stargazers_count":1,"watchers_count":1,"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":1,"default_branch":"master"}},"base":{"label":"docker:master","ref":"master","sha":"082b7726e22c4e7e161cb715158675ed24fc3e4c","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":7691631,"name":"docker","full_name":"docker/docker","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/docker","description":"Docker - the open-source application container engine","fork":false,"url":"https://api.github.com/repos/docker/docker","forks_url":"https://api.github.com/repos/docker/docker/forks","keys_url":"https://api.github.com/repos/docker/docker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/docker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/docker/teams","hooks_url":"https://api.github.com/repos/docker/docker/hooks","issue_events_url":"https://api.github.com/repos/docker/docker/issues/events{/number}","events_url":"https://api.github.com/repos/docker/docker/events","assignees_url":"https://api.github.com/repos/docker/docker/assignees{/user}","branches_url":"https://api.github.com/repos/docker/docker/branches{/branch}","tags_url":"https://api.github.com/repos/docker/docker/tags","blobs_url":"https://api.github.com/repos/docker/docker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/docker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/docker/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/docker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/docker/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/docker/languages","stargazers_url":"https://api.github.com/repos/docker/docker/stargazers","contributors_url":"https://api.github.com/repos/docker/docker/contributors","subscribers_url":"https://api.github.com/repos/docker/docker/subscribers","subscription_url":"https://api.github.com/repos/docker/docker/subscription","commits_url":"https://api.github.com/repos/docker/docker/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/docker/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/docker/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/docker/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/docker/contents/{+path}","compare_url":"https://api.github.com/repos/docker/docker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/docker/merges","archive_url":"https://api.github.com/repos/docker/docker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/docker/downloads","issues_url":"https://api.github.com/repos/docker/docker/issues{/number}","pulls_url":"https://api.github.com/repos/docker/docker/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/docker/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/docker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/docker/labels{/name}","releases_url":"https://api.github.com/repos/docker/docker/releases{/id}","created_at":"2013-01-18T18:10:57Z","updated_at":"2015-02-27T17:25:20Z","pushed_at":"2015-02-27T02:35:42Z","git_url":"git://github.com/docker/docker.git","ssh_url":"git@github.com:docker/docker.git","clone_url":"https://github.com/docker/docker.git","svn_url":"https://github.com/docker/docker","homepage":"http://www.docker.com","size":145772,"stargazers_count":19446,"watchers_count":19446,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4036,"mirror_url":null,"open_issues_count":886,"forks":4036,"open_issues":886,"watchers":19446,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/docker/pulls/10990"},"html":{"href":"https://github.com/docker/docker/pull/10990"},"issue":{"href":"https://api.github.com/repos/docker/docker/issues/10990"},"comments":{"href":"https://api.github.com/repos/docker/docker/issues/10990/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/docker/pulls/10990/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/docker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/docker/pulls/10990/commits"},"statuses":{"href":"https://api.github.com/repos/docker/docker/statuses/45eac235e9992684013f76aaa0cc4810c39428c1"}}}}