{"action":"closed","issue":{"url":"https://api.github.com/repos/xenserver/xenserver-build-env/issues/18","labels_url":"https://api.github.com/repos/xenserver/xenserver-build-env/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/xenserver/xenserver-build-env/issues/18/comments","events_url":"https://api.github.com/repos/xenserver/xenserver-build-env/issues/18/events","html_url":"https://github.com/xenserver/xenserver-build-env/issues/18","id":75562681,"number":18,"title":"./run.py should allow docker to be on the path","user":{"login":"djs55","id":198586,"avatar_url":"https://avatars.githubusercontent.com/u/198586?v=3","gravatar_id":"","url":"https://api.github.com/users/djs55","html_url":"https://github.com/djs55","followers_url":"https://api.github.com/users/djs55/followers","following_url":"https://api.github.com/users/djs55/following{/other_user}","gists_url":"https://api.github.com/users/djs55/gists{/gist_id}","starred_url":"https://api.github.com/users/djs55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djs55/subscriptions","organizations_url":"https://api.github.com/users/djs55/orgs","repos_url":"https://api.github.com/users/djs55/repos","events_url":"https://api.github.com/users/djs55/events{/privacy}","received_events_url":"https://api.github.com/users/djs55/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-12T11:04:39Z","updated_at":"2015-05-12T11:25:49Z","closed_at":"2015-05-12T11:25:49Z","body":"Currently it's hardcoded to /usr/bin/docker, but on OS X with home-brew it will be in /usr/local, resulting in:\r\n```\r\nDavids-MacBook-Pro-2:xenserver-build-env djs$ ./run.py -b trunk-ring3 -s xenopsd-0.10.1-1+s0+0.10.1+10+gf2c98e0.el7.centos.src.rpm \r\nLaunching docker with args ['docker', 'run', '-e', 'XS_BRANCH=trunk-ring3', '-i', '-t', '-u', 'builder', '-v', '/tmp/docker-SRPMS/cb5b5f30-a4e0-4165-9b75-396a2985d570:/mnt/docker-SRPMS', 'xenserver/xenserver-build-env', '/usr/local/bin/init-container.sh']\r\nTraceback (most recent call last):\r\n  File \"./run.py\", line 63, in <module>\r\n    main()\r\n  File \"./run.py\", line 60, in main\r\n    os.execv(DOCKER_PATH, docker_args)\r\nOSError: [Errno 2] No such file or directory\r\n\r\nDavids-MacBook-Pro-2:xenserver-build-env djs$ which docker\r\n/usr/local/bin/docker\r\n\r\nDavids-MacBook-Pro-2:xenserver-build-env djs$ docker info\r\nContainers: 0\r\nImages: 0\r\nStorage Driver: aufs\r\n Root Dir: /mnt/sda1/var/lib/docker/aufs\r\n Backing Filesystem: extfs\r\n Dirs: 0\r\n Dirperm1 Supported: true\r\nExecution Driver: native-0.2\r\nKernel Version: 4.0.2-boot2docker\r\nOperating System: Boot2Docker 1.6.1 (TCL 5.4); master : 43209d4 - Thu May  7 22:06:28 UTC 2015\r\nCPUs: 8\r\nTotal Memory: 1.957 GiB\r\nName: boot2docker\r\nID: BEP4:HKY5:6ONE:HMKY:FDCE:MCR2:FX25:NIXO:KFFX:MR65:Z4L5:HCFT\r\nDebug mode (server): true\r\nDebug mode (client): false\r\nFds: 10\r\nGoroutines: 16\r\nSystem Time: Tue May 12 11:04:21 UTC 2015\r\nEventsListeners: 0\r\nInit SHA1: 2dabfc43e5f856a0712787a6ff78ceaf791cc9e7\r\nInit Path: /usr/local/bin/docker\r\nDocker Root Dir: /mnt/sda1/var/lib/docker\r\n```"}}