{"action":"closed","issue":{"url":"https://api.github.com/repos/HPENetworking/topology_docker/issues/21","repository_url":"https://api.github.com/repos/HPENetworking/topology_docker","labels_url":"https://api.github.com/repos/HPENetworking/topology_docker/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/HPENetworking/topology_docker/issues/21/comments","events_url":"https://api.github.com/repos/HPENetworking/topology_docker/issues/21/events","html_url":"https://github.com/HPENetworking/topology_docker/issues/21","id":136531863,"number":21,"title":"Need the openswitch.py node to accept a configurable parameter to start docker with an extra volume","user":{"login":"walintonc","id":9903842,"avatar_url":"https://avatars.githubusercontent.com/u/9903842?v=3","gravatar_id":"","url":"https://api.github.com/users/walintonc","html_url":"https://github.com/walintonc","followers_url":"https://api.github.com/users/walintonc/followers","following_url":"https://api.github.com/users/walintonc/following{/other_user}","gists_url":"https://api.github.com/users/walintonc/gists{/gist_id}","starred_url":"https://api.github.com/users/walintonc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walintonc/subscriptions","organizations_url":"https://api.github.com/users/walintonc/orgs","repos_url":"https://api.github.com/users/walintonc/repos","events_url":"https://api.github.com/users/walintonc/events{/privacy}","received_events_url":"https://api.github.com/users/walintonc/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HPENetworking/topology_docker/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"ocelotl","id":5069942,"avatar_url":"https://avatars.githubusercontent.com/u/5069942?v=3","gravatar_id":"","url":"https://api.github.com/users/ocelotl","html_url":"https://github.com/ocelotl","followers_url":"https://api.github.com/users/ocelotl/followers","following_url":"https://api.github.com/users/ocelotl/following{/other_user}","gists_url":"https://api.github.com/users/ocelotl/gists{/gist_id}","starred_url":"https://api.github.com/users/ocelotl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocelotl/subscriptions","organizations_url":"https://api.github.com/users/ocelotl/orgs","repos_url":"https://api.github.com/users/ocelotl/repos","events_url":"https://api.github.com/users/ocelotl/events{/privacy}","received_events_url":"https://api.github.com/users/ocelotl/received_events","type":"User","site_admin":false},"milestone":null,"comments":16,"created_at":"2016-02-25T22:30:23Z","updated_at":"2016-03-03T19:09:56Z","closed_at":"2016-03-03T19:09:56Z","body":"RIght now the openswitch.py node is hardcoded to use the following volumes:\r\n\r\nopenswitch.py,\r\n\r\n```python\r\n         # Add binded directories\r\n         binds = [\r\n             '{}:/tmp'.format(shared_dir),\r\n             '/dev/log:/dev/log',\r\n             '/sys/fs/cgroup:/sys/fs/cgroup:ro'\r\n         ]\r\n```\r\nI am working in adding code coverage support and as a  requirement I need to pass an extra bind (volume) to Docker and it needs to be programatically (it cant be hardcoded).\r\n\r\nUsing an environment variable is an option. For example, before calling tox I'd like to set the following variable\r\n\r\n```\r\nexport VSI_COV_DATA_DIR=/some/location/for/coverage\r\n```\r\n\r\nand then after calling tox, this should result in something similar to:\r\n\r\n```python\r\n         # Add binded directories\r\n         binds = [\r\n             '{}:/tmp'.format(shared_dir),\r\n             '/dev/log:/dev/log',\r\n             '/sys/fs/cgroup:/sys/fs/cgroup:ro'\r\n             '/some/location/for/coverage:/some/location/for/coverage'\r\n         ]\r\n```\r\n\r\nIt must be read/write.\r\n\r\nThanks"}}