{"action":"created","issue":{"url":"https://api.github.com/repos/xianlubird/mydocker/issues/17","repository_url":"https://api.github.com/repos/xianlubird/mydocker","labels_url":"https://api.github.com/repos/xianlubird/mydocker/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/xianlubird/mydocker/issues/17/comments","events_url":"https://api.github.com/repos/xianlubird/mydocker/issues/17/events","html_url":"https://github.com/xianlubird/mydocker/pull/17","id":259376535,"number":17,"title":"增加mydocker Docker镜像build文件","user":{"login":"qxhy123","id":518969,"avatar_url":"https://avatars2.githubusercontent.com/u/518969?v=4","gravatar_id":"","url":"https://api.github.com/users/qxhy123","html_url":"https://github.com/qxhy123","followers_url":"https://api.github.com/users/qxhy123/followers","following_url":"https://api.github.com/users/qxhy123/following{/other_user}","gists_url":"https://api.github.com/users/qxhy123/gists{/gist_id}","starred_url":"https://api.github.com/users/qxhy123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qxhy123/subscriptions","organizations_url":"https://api.github.com/users/qxhy123/orgs","repos_url":"https://api.github.com/users/qxhy123/repos","events_url":"https://api.github.com/users/qxhy123/events{/privacy}","received_events_url":"https://api.github.com/users/qxhy123/received_events","type":"User","site_admin":false},"labels":[{"id":515895916,"url":"https://api.github.com/repos/xianlubird/mydocker/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"BSWANG","id":3598874,"avatar_url":"https://avatars3.githubusercontent.com/u/3598874?v=4","gravatar_id":"","url":"https://api.github.com/users/BSWANG","html_url":"https://github.com/BSWANG","followers_url":"https://api.github.com/users/BSWANG/followers","following_url":"https://api.github.com/users/BSWANG/following{/other_user}","gists_url":"https://api.github.com/users/BSWANG/gists{/gist_id}","starred_url":"https://api.github.com/users/BSWANG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BSWANG/subscriptions","organizations_url":"https://api.github.com/users/BSWANG/orgs","repos_url":"https://api.github.com/users/BSWANG/repos","events_url":"https://api.github.com/users/BSWANG/events{/privacy}","received_events_url":"https://api.github.com/users/BSWANG/received_events","type":"User","site_admin":false},"assignees":[{"login":"BSWANG","id":3598874,"avatar_url":"https://avatars3.githubusercontent.com/u/3598874?v=4","gravatar_id":"","url":"https://api.github.com/users/BSWANG","html_url":"https://github.com/BSWANG","followers_url":"https://api.github.com/users/BSWANG/followers","following_url":"https://api.github.com/users/BSWANG/following{/other_user}","gists_url":"https://api.github.com/users/BSWANG/gists{/gist_id}","starred_url":"https://api.github.com/users/BSWANG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BSWANG/subscriptions","organizations_url":"https://api.github.com/users/BSWANG/orgs","repos_url":"https://api.github.com/users/BSWANG/repos","events_url":"https://api.github.com/users/BSWANG/events{/privacy}","received_events_url":"https://api.github.com/users/BSWANG/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-09-21T05:08:03Z","updated_at":"2017-09-21T07:03:13Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/xianlubird/mydocker/pulls/17","html_url":"https://github.com/xianlubird/mydocker/pull/17","diff_url":"https://github.com/xianlubird/mydocker/pull/17.diff","patch_url":"https://github.com/xianlubird/mydocker/pull/17.patch"},"body":"由于很多童鞋使用的非ubuntu系统, 比如我本人用的就是Mac, 有一些namespace特性并不支持, 当时也是比较抓狂, 为方便大家在统一的环境下学习源码, 按照书中开发环境构建了一个Dockerfile, 水平有限, 如有不足之处请指教.\r\n\r\nps: 简单说明一下, go-wrapper是从官方的docker镜像里借用过来的脚本, 可以很方便的解决依赖包下载的问题, Dockerfile直接在项目根目录下执行 `docker build -t imagename:tag .` 即可, build完之后执行docker run --rm -it imagename:tag bash就可以进入容器."},"comment":{"url":"https://api.github.com/repos/xianlubird/mydocker/issues/comments/331070409","html_url":"https://github.com/xianlubird/mydocker/pull/17#issuecomment-331070409","issue_url":"https://api.github.com/repos/xianlubird/mydocker/issues/17","id":331070409,"user":{"login":"BSWANG","id":3598874,"avatar_url":"https://avatars3.githubusercontent.com/u/3598874?v=4","gravatar_id":"","url":"https://api.github.com/users/BSWANG","html_url":"https://github.com/BSWANG","followers_url":"https://api.github.com/users/BSWANG/followers","following_url":"https://api.github.com/users/BSWANG/following{/other_user}","gists_url":"https://api.github.com/users/BSWANG/gists{/gist_id}","starred_url":"https://api.github.com/users/BSWANG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BSWANG/subscriptions","organizations_url":"https://api.github.com/users/BSWANG/orgs","repos_url":"https://api.github.com/users/BSWANG/repos","events_url":"https://api.github.com/users/BSWANG/events{/privacy}","received_events_url":"https://api.github.com/users/BSWANG/received_events","type":"User","site_admin":false},"created_at":"2017-09-21T07:03:13Z","updated_at":"2017-09-21T07:03:13Z","author_association":"COLLABORATOR","body":"ref: https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History\r\n\r\n1. `git rebase -i HEAD~1`\r\n2. edit the commit's \"pick\" -> \"squash\"\r\n3. save&quit\r\n4. force push to your branch with `docker push -f`\r\n"}}
{"actor":{"display_login":"BSWANG"}}