{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/9176","labels_url":"https://api.github.com/repos/docker/docker/issues/9176/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/9176/comments","events_url":"https://api.github.com/repos/docker/docker/issues/9176/events","html_url":"https://github.com/docker/docker/pull/9176","id":48832781,"number":9176,"title":"Proposal: Add support for build-time environment variables to the 'build' API","user":{"login":"mapuri","id":9538438,"avatar_url":"https://avatars.githubusercontent.com/u/9538438?v=3","gravatar_id":"","url":"https://api.github.com/users/mapuri","html_url":"https://github.com/mapuri","followers_url":"https://api.github.com/users/mapuri/followers","following_url":"https://api.github.com/users/mapuri/following{/other_user}","gists_url":"https://api.github.com/users/mapuri/gists{/gist_id}","starred_url":"https://api.github.com/users/mapuri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapuri/subscriptions","organizations_url":"https://api.github.com/users/mapuri/orgs","repos_url":"https://api.github.com/users/mapuri/repos","events_url":"https://api.github.com/users/mapuri/events{/privacy}","received_events_url":"https://api.github.com/users/mapuri/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/2-needs-code-review","name":"status/2-needs-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":160,"created_at":"2014-11-14T19:55:24Z","updated_at":"2015-04-09T02:07:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/9176","html_url":"https://github.com/docker/docker/pull/9176","diff_url":"https://github.com/docker/docker/pull/9176.diff","patch_url":"https://github.com/docker/docker/pull/9176.patch"},"body":"A build-time environment variable gets used only while processing the 'RUN' primitive of a DockerFile. Such a variable is only accessible during 'RUN' and is 'not' persisted with the intermediate and final docker images, thereby addressing the portability concerns of the images generated with 'build'.\r\n\r\nThis addresses issue #4962"},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/91090427","html_url":"https://github.com/docker/docker/pull/9176#issuecomment-91090427","issue_url":"https://api.github.com/repos/docker/docker/issues/9176","id":91090427,"user":{"login":"erikh","id":18923,"avatar_url":"https://avatars.githubusercontent.com/u/18923?v=3","gravatar_id":"","url":"https://api.github.com/users/erikh","html_url":"https://github.com/erikh","followers_url":"https://api.github.com/users/erikh/followers","following_url":"https://api.github.com/users/erikh/following{/other_user}","gists_url":"https://api.github.com/users/erikh/gists{/gist_id}","starred_url":"https://api.github.com/users/erikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikh/subscriptions","organizations_url":"https://api.github.com/users/erikh/orgs","repos_url":"https://api.github.com/users/erikh/repos","events_url":"https://api.github.com/users/erikh/events{/privacy}","received_events_url":"https://api.github.com/users/erikh/received_events","type":"User","site_admin":false},"created_at":"2015-04-09T02:07:45Z","updated_at":"2015-04-09T02:07:45Z","body":"SGTM\n> On Apr 8, 2015, at 6:02 PM, Doug Davis <notifications@github.com> wrote:\n> \n> I think before we start to encourage people to vote yes or no, I think we need to decide on the command line parameter. Should it be --build-env or --env ? If I remember correctly, the reasons for each are:\n> \n> --env would be consistent with docker run\n> --build-env, by having the word 'build' in there, tries makes it clear that this particular env is just for build-time.\n> Despite my desire for consistency, I think having the word 'build' in there will help reduce any natural inclination some people may have to think that these envs will persist in the resulting image.\n> Thoughts?\n> \n> —\n> Reply to this email directly or view it on GitHub <https://github.com/docker/docker/pull/9176#issuecomment-91081793>.\n> \n\n"}}