{"action":"closed","issue":{"url":"https://api.github.com/repos/Azure/draft/issues/814","repository_url":"https://api.github.com/repos/Azure/draft","labels_url":"https://api.github.com/repos/Azure/draft/issues/814/labels{/name}","comments_url":"https://api.github.com/repos/Azure/draft/issues/814/comments","events_url":"https://api.github.com/repos/Azure/draft/issues/814/events","html_url":"https://github.com/Azure/draft/issues/814","id":329925628,"node_id":"MDU6SXNzdWUzMjk5MjU2Mjg=","number":814,"title":"draft up error when app is referencing a library from the parent directory","user":{"login":"IvanFarkas","id":11818001,"node_id":"MDQ6VXNlcjExODE4MDAx","avatar_url":"https://avatars1.githubusercontent.com/u/11818001?v=4","gravatar_id":"","url":"https://api.github.com/users/IvanFarkas","html_url":"https://github.com/IvanFarkas","followers_url":"https://api.github.com/users/IvanFarkas/followers","following_url":"https://api.github.com/users/IvanFarkas/following{/other_user}","gists_url":"https://api.github.com/users/IvanFarkas/gists{/gist_id}","starred_url":"https://api.github.com/users/IvanFarkas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IvanFarkas/subscriptions","organizations_url":"https://api.github.com/users/IvanFarkas/orgs","repos_url":"https://api.github.com/users/IvanFarkas/repos","events_url":"https://api.github.com/users/IvanFarkas/events{/privacy}","received_events_url":"https://api.github.com/users/IvanFarkas/received_events","type":"User","site_admin":false},"labels":[{"id":600607345,"node_id":"MDU6TGFiZWw2MDA2MDczNDU=","url":"https://api.github.com/repos/Azure/draft/labels/question/support","name":"question/support","color":"bc13fe","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-06-06T15:43:05Z","updated_at":"2018-07-07T00:52:16Z","closed_at":"2018-07-07T00:52:16Z","author_association":"NONE","body":"# Draft Up Referencing Source in Parent Directory\r\n\r\nThe goal is to use `draft up` to deploy this application to a Kubernetes cluster. The challange is that the app is referencing a library from the parent directory. I created the **[DraftReferencingSourceInParentDir ](https://github.com/IvanFarkas/DraftReferencingSourceInParentDir)** app to demonstrate the issue. `draft up` cannot execute in the example-dotnet project directory since the `docker build` will return a `no such file or directory` error for the library project.\r\n\r\n```\r\ncd [App Root]\\src\\example-dotnet\r\ndraft up\r\n```\r\n\r\n**Result**\r\n```\r\nDraft Up Started: 'example-dotnet': 01CFAVZ5N7GF78FPD6MRSP197H\r\nexample-dotnet: Building Docker Image: FAIL ❌  (1.0010s)\r\nInspect the logs with `draft logs 01CFAVZ5N7GF78FPD6MRSP197H`\r\n```\r\n\r\n**Log** `draft logs 01CFAVZ5N7GF78FPD6MRSP197H`\r\n\r\n```\r\n...\r\nStep 6/19 : COPY src/Lib/Lib.csproj src/Lib/\r\n2018/06/06 11:38:14 error while building: COPY failed: stat /var/lib/docker/tmp/docker-builder786413135/src/Lib/Lib.csproj: no such file or directory\r\n```\r\n\r\n## Build Docker Container & Run Docker Image\r\n`docker build` have to be called from the solution root directory to build a docker image and run it. This is demonstrated below. The app is working on docker following these steps.\r\n\r\n```\r\ncd [Solution Root]\r\ndocker build -t ivanfarkas/example-dotnet -f src/example-dotnet/Dockerfile .\r\ndocker run -p 8080:80 ivanfarkas/example-dotnet\r\n```\r\n\r\nOpen a new console\r\n\r\n```\r\ncurl localhost:8080\r\n```\r\n\r\n**Result**\r\n\r\n```\r\nHello World! 2\r\n```\r\n\r\n## Question\r\n### How do I use `draft up` when the app is referencing a library from the parent directory?"}}
{"actor":{"display_login":"IvanFarkas"}}