{"action":"opened","issue":{"url":"https://api.github.com/repos/buildkite-plugins/docker-compose-buildkite-plugin/issues/155","repository_url":"https://api.github.com/repos/buildkite-plugins/docker-compose-buildkite-plugin","labels_url":"https://api.github.com/repos/buildkite-plugins/docker-compose-buildkite-plugin/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/buildkite-plugins/docker-compose-buildkite-plugin/issues/155/comments","events_url":"https://api.github.com/repos/buildkite-plugins/docker-compose-buildkite-plugin/issues/155/events","html_url":"https://github.com/buildkite-plugins/docker-compose-buildkite-plugin/issues/155","id":330524966,"node_id":"MDU6SXNzdWUzMzA1MjQ5NjY=","number":155,"title":"Volume mapping does not work as intended","user":{"login":"gugahoi","id":355877,"node_id":"MDQ6VXNlcjM1NTg3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/355877?v=4","gravatar_id":"","url":"https://api.github.com/users/gugahoi","html_url":"https://github.com/gugahoi","followers_url":"https://api.github.com/users/gugahoi/followers","following_url":"https://api.github.com/users/gugahoi/following{/other_user}","gists_url":"https://api.github.com/users/gugahoi/gists{/gist_id}","starred_url":"https://api.github.com/users/gugahoi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gugahoi/subscriptions","organizations_url":"https://api.github.com/users/gugahoi/orgs","repos_url":"https://api.github.com/users/gugahoi/repos","events_url":"https://api.github.com/users/gugahoi/events{/privacy}","received_events_url":"https://api.github.com/users/gugahoi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-08T05:32:51Z","updated_at":"2018-06-08T05:32:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Since releasing `v2.4.0` with volume mapping in the plugin it seems it cannot map relative folders as docker-compose needs the full path to map via the `-v` flags. Unfortunately it seems like we cannot get the full path via `$(pwd)` in `pipeline.yml` so I am unsure how to make use of the flag if not for using data volumes. Below is an example using docker compose cli:\r\n\r\n```bash\r\n$ ls -l docs/\r\ntotal 40\r\ndrwxr-xr-x 2 gus gus 4096 May 15 09:55 development\r\n-rw-r--r-- 1 gus gus  551 Dec 27 15:21 images.md\r\n-rw-r--r-- 1 gus gus  456 Dec 27 15:21 storybook.md\r\ndrwxr-xr-x 2 gus gus 4096 Jun  5 09:15 testing\r\ndrwxr-xr-x 2 gus gus 4096 Dec 27 15:21 tools\r\ndrwxr-xr-x 2 gus gus 4096 May 15 09:55 workflow\r\n\r\n$ docker volume ls\r\nDRIVER              VOLUME NAME\r\n\r\n$ docker-compose run -v ./docs:/tmp/Downloads --entrypoint ls app -l /tmp/Downloads\r\ntotal 0\r\n\r\n$ docker volume ls\r\nDRIVER              VOLUME NAME\r\nlocal               bd6d29ba0873a698bb03ecd333aaa1bf76afd769440f4385f1e7def98872c80a\r\nlocal               docs\r\n\r\n$ docker-compose run -v $(pwd)/docs:/tmp/Downloads --entrypoint ls app -l /tmp/Downloads\r\ntotal 40\r\ndrwxr-xr-x 2 node node 4096 May 14 23:55 development\r\n-rw-r--r-- 1 node node  551 Dec 27 04:21 images.md\r\n-rw-r--r-- 1 node node  456 Dec 27 04:21 storybook.md\r\ndrwxr-xr-x 2 node node 4096 Jun  4 23:15 testing\r\ndrwxr-xr-x 2 node node 4096 Dec 27 04:21 tools\r\ndrwxr-xr-x 2 node node 4096 May 14 23:55 workflow\r\n```\r\n\r\nHow can I achieve relative folder volume mapping with the plugin?"}}
{"actor":{"display_login":"gugahoi"}}