{"action":"closed","issue":{"url":"https://api.github.com/repos/aws/aws-codebuild-docker-images/issues/145","repository_url":"https://api.github.com/repos/aws/aws-codebuild-docker-images","labels_url":"https://api.github.com/repos/aws/aws-codebuild-docker-images/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/aws/aws-codebuild-docker-images/issues/145/comments","events_url":"https://api.github.com/repos/aws/aws-codebuild-docker-images/issues/145/events","html_url":"https://github.com/aws/aws-codebuild-docker-images/issues/145","id":383254127,"node_id":"MDU6SXNzdWUzODMyNTQxMjc=","number":145,"title":"Local codebuild on windows fails to download source","user":{"login":"boonew2","id":1950544,"node_id":"MDQ6VXNlcjE5NTA1NDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1950544?v=4","gravatar_id":"","url":"https://api.github.com/users/boonew2","html_url":"https://github.com/boonew2","followers_url":"https://api.github.com/users/boonew2/followers","following_url":"https://api.github.com/users/boonew2/following{/other_user}","gists_url":"https://api.github.com/users/boonew2/gists{/gist_id}","starred_url":"https://api.github.com/users/boonew2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boonew2/subscriptions","organizations_url":"https://api.github.com/users/boonew2/orgs","repos_url":"https://api.github.com/users/boonew2/repos","events_url":"https://api.github.com/users/boonew2/events{/privacy}","received_events_url":"https://api.github.com/users/boonew2/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-21T18:57:53Z","updated_at":"2018-12-07T04:16:29Z","closed_at":"2018-12-07T04:16:29Z","author_association":"NONE","body":"Possibly related to #137 \r\n\r\nI'm testing out local codebuild and seem to be stuck.\r\n\r\nI *think* the local build is failing to map the source directory. Actual error is that it can't find the buidspec .yml, but i don't know why that would be the case if the source dir was mapped:\r\n```\r\n/mnt/c/git-external/aws-codebuild-docker-images/local_builds/codebuild_build.sh -i aws/codebuild/dotnetcore:2-1 -a /mnt/c/temp -s /mnt/c/git/platform-peopleservice -b buildspec.v2.yml\r\nBuild Command:\r\n\r\ndocker run -it -v /var/run/docker.sock:/var/run/docker.sock -e \"IMAGE_NAME=aws/codebuild/dotnetcore:2-1\" -e \"ARTIFACTS=/mnt/c/temp\" -e \"SOURCE=/mnt/c/git/platform-peopleservice\" -e \"BUILDSPEC=/mnt/c/git/platform-peopleservice/buildspec.v2.yml\" amazon/aws-codebuild-local:latest\r\n\r\nRetry 1/3 to get agent ID\r\nRemoving agentresources_build_1 ... done\r\nRemoving agentresources_agent_1 ... done\r\nRemoving network agentresources_default\r\nRemoving volume agentresources_user_volume\r\nRemoving volume agentresources_source_volume\r\nCreating network \"agentresources_default\" with the default driver\r\nCreating volume \"agentresources_user_volume\" with local driver\r\nCreating volume \"agentresources_source_volume\" with local driver\r\nCreating agentresources_agent_1 ...\r\nCreating agentresources_agent_1 ... done\r\nCreating agentresources_build_1 ...\r\nCreating agentresources_build_1 ... done\r\nAttaching to agentresources_agent_1, agentresources_build_1\r\nagent_1  | [Container] 2018/11/21 18:42:15 Waiting for agent ping\r\nagent_1  | [Container] 2018/11/21 18:42:16 Waiting for DOWNLOAD_SOURCE\r\nagent_1  | [Container] 2018/11/21 18:42:17 Phase is DOWNLOAD_SOURCE\r\nagent_1  | [Container] 2018/11/21 18:42:17 CODEBUILD_SRC_DIR=/codebuild/output/src208355437/src\r\nagent_1  | [Container] 2018/11/21 18:42:17 Phase complete: DOWNLOAD_SOURCE Success: false\r\nagent_1  | [Container] 2018/11/21 18:42:17 Phase context status code: YAML_FILE_ERROR Message: stat /codebuild/output/src208355437/src/buildspec.v2.yml: no such file or directory\r\nagent_1  | [Container] 2018/11/21 18:42:17 Runtime error (*os.PathError: stat /codebuild/output/src208355437/src/buildspec.v2.yml: no such file or directory)\r\nagentresources_build_1 exited with code 255\r\nAborting on container exit...\r\n```\r\n\r\n```\r\nls -1 /mnt/c/git/platform-peopleservice | grep buildspec\r\nbuildspec.tests.yml\r\nbuildspec.v2.yml\r\nbuildspec.yml\r\n```\r\n\r\npossible extenuating circumstance.. `codebuild_build.sh` doesn't work directly on windows so i am running it through the linux subsystem for the above output. I also tried just pasting the docker build command output from git-bash into powershell, but it gave effectively the same output (paths are a bit different since it isn't mapped to `/mnt`)\r\n\r\nPlease let me know if i can provide additional information or if i am just overlooking something obvious!"}}
{"actor":{"display_login":"subinataws"}}