{"action":"created","issue":{"url":"https://api.github.com/repos/wercker/wercker/issues/537","repository_url":"https://api.github.com/repos/wercker/wercker","labels_url":"https://api.github.com/repos/wercker/wercker/issues/537/labels{/name}","comments_url":"https://api.github.com/repos/wercker/wercker/issues/537/comments","events_url":"https://api.github.com/repos/wercker/wercker/issues/537/events","html_url":"https://github.com/wercker/wercker/pull/537","id":382666706,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMyMzE5NzMx","number":537,"title":"Docker build context","user":{"login":"agnihotrigaurav","id":34136956,"node_id":"MDQ6VXNlcjM0MTM2OTU2","avatar_url":"https://avatars2.githubusercontent.com/u/34136956?v=4","gravatar_id":"","url":"https://api.github.com/users/agnihotrigaurav","html_url":"https://github.com/agnihotrigaurav","followers_url":"https://api.github.com/users/agnihotrigaurav/followers","following_url":"https://api.github.com/users/agnihotrigaurav/following{/other_user}","gists_url":"https://api.github.com/users/agnihotrigaurav/gists{/gist_id}","starred_url":"https://api.github.com/users/agnihotrigaurav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agnihotrigaurav/subscriptions","organizations_url":"https://api.github.com/users/agnihotrigaurav/orgs","repos_url":"https://api.github.com/users/agnihotrigaurav/repos","events_url":"https://api.github.com/users/agnihotrigaurav/events{/privacy}","received_events_url":"https://api.github.com/users/agnihotrigaurav/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-20T13:37:04Z","updated_at":"2018-11-27T10:42:59Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/wercker/wercker/pulls/537","html_url":"https://github.com/wercker/wercker/pull/537","diff_url":"https://github.com/wercker/wercker/pull/537.diff","patch_url":"https://github.com/wercker/wercker/pull/537.patch"},"body":"Jira ID WRKR-386\r\n\r\nProblem Description.\r\ndocker-build forces docker build context to project root.\r\n\r\nProblem solution\r\nAdded new property context in docker argument list to specify build context for docker-build.\r\nCurrently all the file below source/ are added to tar file used for creating docker-build. \r\n\r\nChange would take into consideration value of context field as well. It will add files in directory \"source/\"+context\r\n\r\n\r\nTesting\r\nAutomated testcase added for same.\r\n\r\nStaging testing (Repository - https://github.com/agnihotrigaurav/test-docker-build)\r\n\r\n01) Test pass when context is correctly specified.\r\nURL - https://dev.wercker.com/gauagnih/test-docker-build/runs/build/5bf3e41cef658a00082dfd9a\r\n-------------------------------------------------------------------------------------------\r\n02) In case context path does not exist. Test case fails with message(Error response from daemon: Cannot locate specified Dockerfile: Dockerfile)\r\nURL - https://dev.wercker.com/gauagnih/test-docker-build/runs/build/5bfcdf0ac830fd0006fda8a2?step=5bfcdf352ce5e50006c28c96\r\n-------------------------------------------------------------------------------------------\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/wercker/wercker/issues/comments/442012172","html_url":"https://github.com/wercker/wercker/pull/537#issuecomment-442012172","issue_url":"https://api.github.com/repos/wercker/wercker/issues/537","id":442012172,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MjAxMjE3Mg==","user":{"login":"agnihotrigaurav","id":34136956,"node_id":"MDQ6VXNlcjM0MTM2OTU2","avatar_url":"https://avatars2.githubusercontent.com/u/34136956?v=4","gravatar_id":"","url":"https://api.github.com/users/agnihotrigaurav","html_url":"https://github.com/agnihotrigaurav","followers_url":"https://api.github.com/users/agnihotrigaurav/followers","following_url":"https://api.github.com/users/agnihotrigaurav/following{/other_user}","gists_url":"https://api.github.com/users/agnihotrigaurav/gists{/gist_id}","starred_url":"https://api.github.com/users/agnihotrigaurav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agnihotrigaurav/subscriptions","organizations_url":"https://api.github.com/users/agnihotrigaurav/orgs","repos_url":"https://api.github.com/users/agnihotrigaurav/repos","events_url":"https://api.github.com/users/agnihotrigaurav/events{/privacy}","received_events_url":"https://api.github.com/users/agnihotrigaurav/received_events","type":"User","site_admin":false},"created_at":"2018-11-27T10:42:59Z","updated_at":"2018-11-27T10:42:59Z","author_association":"CONTRIBUTOR","body":"As discussed I have created another jira to address base-path issue. Current PR only address issue related to context. If docker build context is different from  $WERCKER_ROOT, then context is updated correctly."}}
{"actor":{"display_login":"agnihotrigaurav"}}