{"action":"created","issue":{"url":"https://api.github.com/repos/docker/libcompose/issues/146","repository_url":"https://api.github.com/repos/docker/libcompose","labels_url":"https://api.github.com/repos/docker/libcompose/issues/146/labels{/name}","comments_url":"https://api.github.com/repos/docker/libcompose/issues/146/comments","events_url":"https://api.github.com/repos/docker/libcompose/issues/146/events","html_url":"https://github.com/docker/libcompose/pull/146","id":132020154,"number":146,"title":"Switch client to engine-api","user":{"login":"vdemeester","id":6508,"avatar_url":"https://avatars.githubusercontent.com/u/6508?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemeester","html_url":"https://github.com/vdemeester","followers_url":"https://api.github.com/users/vdemeester/followers","following_url":"https://api.github.com/users/vdemeester/following{/other_user}","gists_url":"https://api.github.com/users/vdemeester/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemeester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemeester/subscriptions","organizations_url":"https://api.github.com/users/vdemeester/orgs","repos_url":"https://api.github.com/users/vdemeester/repos","events_url":"https://api.github.com/users/vdemeester/events{/privacy}","received_events_url":"https://api.github.com/users/vdemeester/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/libcompose/labels/status/2-code-review","name":"status/2-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/docker/libcompose/milestones/3","html_url":"https://github.com/docker/libcompose/milestones/0.2.0%20Trusting%20Euler","labels_url":"https://api.github.com/repos/docker/libcompose/milestones/3/labels","id":1510522,"number":3,"title":"0.2.0 Trusting Euler","description":"https://github.com/docker/libcompose/wiki/0.2.0-Milestone-Project-Page","creator":{"login":"vdemeester","id":6508,"avatar_url":"https://avatars.githubusercontent.com/u/6508?v=3","gravatar_id":"","url":"https://api.github.com/users/vdemeester","html_url":"https://github.com/vdemeester","followers_url":"https://api.github.com/users/vdemeester/followers","following_url":"https://api.github.com/users/vdemeester/following{/other_user}","gists_url":"https://api.github.com/users/vdemeester/gists{/gist_id}","starred_url":"https://api.github.com/users/vdemeester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdemeester/subscriptions","organizations_url":"https://api.github.com/users/vdemeester/orgs","repos_url":"https://api.github.com/users/vdemeester/repos","events_url":"https://api.github.com/users/vdemeester/events{/privacy}","received_events_url":"https://api.github.com/users/vdemeester/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":2,"state":"open","created_at":"2016-01-16T21:35:15Z","updated_at":"2016-02-13T15:44:35Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-02-07T22:13:13Z","updated_at":"2016-02-16T17:35:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/libcompose/pulls/146","html_url":"https://github.com/docker/libcompose/pull/146","diff_url":"https://github.com/docker/libcompose/pull/146.diff","patch_url":"https://github.com/docker/libcompose/pull/146.patch"},"body":"Now that the engine API has been split out in [docker/engine-api](https://github.com/docker/engine-api), it make sense that libcompose uses it, as it is the official API lib, maintained by docker maintainer and shared with other project (the engine, swarm, …).\r\n\r\nAs with vendoring PRs, it's a little *heavy*, the commit to look at is https://github.com/docker/libcompose/commit/bb00c3edc58fb64dd41b1406addcccf5e128d0fb.\r\n\r\n<del>**Note: This is based on #144 so it would need to be merged before that one** (hence the WIP).</del>\r\n\r\n- [x] There is still some `FIXMEs`\r\n- [x] The default `API_VERSION` is `1.22`, which is for docker `v1.10`, and as it is, I did not test against lower version. I'll have to make some tests, because I would like libcompose to support at least `1.8` and `1.9`.\r\n\r\n**Note: It makes the default assumption that the API behind it is `v1.20`.** Using the cli, you can specify it using the `DOCKER_API_VERSION` and I will make a follow-up PR to allow to add a flag on it. Using the API, you can pass `APIVersion` to the `ClientOpts` when creating the client.\r\n\r\n/cc @ibuildthecloud @dnephin @imikushin "},"comment":{"url":"https://api.github.com/repos/docker/libcompose/issues/comments/184789906","html_url":"https://github.com/docker/libcompose/pull/146#issuecomment-184789906","issue_url":"https://api.github.com/repos/docker/libcompose/issues/146","id":184789906,"user":{"login":"calavera","id":1050,"avatar_url":"https://avatars.githubusercontent.com/u/1050?v=3","gravatar_id":"","url":"https://api.github.com/users/calavera","html_url":"https://github.com/calavera","followers_url":"https://api.github.com/users/calavera/followers","following_url":"https://api.github.com/users/calavera/following{/other_user}","gists_url":"https://api.github.com/users/calavera/gists{/gist_id}","starred_url":"https://api.github.com/users/calavera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calavera/subscriptions","organizations_url":"https://api.github.com/users/calavera/orgs","repos_url":"https://api.github.com/users/calavera/repos","events_url":"https://api.github.com/users/calavera/events{/privacy}","received_events_url":"https://api.github.com/users/calavera/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T17:35:11Z","updated_at":"2016-02-16T17:35:11Z","body":"LGTM"}}