{"action":"created","issue":{"url":"https://api.github.com/repos/swipely/docker-api/issues/505","repository_url":"https://api.github.com/repos/swipely/docker-api","labels_url":"https://api.github.com/repos/swipely/docker-api/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/swipely/docker-api/issues/505/comments","events_url":"https://api.github.com/repos/swipely/docker-api/issues/505/events","html_url":"https://github.com/swipely/docker-api/issues/505","id":279310813,"node_id":"MDU6SXNzdWUyNzkzMTA4MTM=","number":505,"title":"pass env to docker image in build_from_dir","user":{"login":"futantan","id":6268441,"node_id":"MDQ6VXNlcjYyNjg0NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/6268441?v=4","gravatar_id":"","url":"https://api.github.com/users/futantan","html_url":"https://github.com/futantan","followers_url":"https://api.github.com/users/futantan/followers","following_url":"https://api.github.com/users/futantan/following{/other_user}","gists_url":"https://api.github.com/users/futantan/gists{/gist_id}","starred_url":"https://api.github.com/users/futantan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/futantan/subscriptions","organizations_url":"https://api.github.com/users/futantan/orgs","repos_url":"https://api.github.com/users/futantan/repos","events_url":"https://api.github.com/users/futantan/events{/privacy}","received_events_url":"https://api.github.com/users/futantan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-05T09:52:21Z","updated_at":"2018-07-12T09:47:11Z","closed_at":null,"author_association":"NONE","body":"Is there any way to pass env to docker image when calling `build_from_dir` method? I read the document but not found any solution to do this."},"comment":{"url":"https://api.github.com/repos/swipely/docker-api/issues/comments/404455731","html_url":"https://github.com/swipely/docker-api/issues/505#issuecomment-404455731","issue_url":"https://api.github.com/repos/swipely/docker-api/issues/505","id":404455731,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDQ1NTczMQ==","user":{"login":"nzin-appdirect","id":32844327,"node_id":"MDQ6VXNlcjMyODQ0MzI3","avatar_url":"https://avatars1.githubusercontent.com/u/32844327?v=4","gravatar_id":"","url":"https://api.github.com/users/nzin-appdirect","html_url":"https://github.com/nzin-appdirect","followers_url":"https://api.github.com/users/nzin-appdirect/followers","following_url":"https://api.github.com/users/nzin-appdirect/following{/other_user}","gists_url":"https://api.github.com/users/nzin-appdirect/gists{/gist_id}","starred_url":"https://api.github.com/users/nzin-appdirect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nzin-appdirect/subscriptions","organizations_url":"https://api.github.com/users/nzin-appdirect/orgs","repos_url":"https://api.github.com/users/nzin-appdirect/repos","events_url":"https://api.github.com/users/nzin-appdirect/events{/privacy}","received_events_url":"https://api.github.com/users/nzin-appdirect/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T09:47:11Z","updated_at":"2018-07-12T09:47:11Z","author_association":"NONE","body":"I think we figured out, something like:\r\n```Docker::Image.build_from_dir('.', { 'dockerfile' => './Dockerfile', 'buildargs' => { 'myarg': myvalue } } )```"}}
{"actor":{"display_login":"nzin-appdirect"}}