{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/libpod/pulls/comments/156755151","pull_request_review_id":83285911,"id":156755151,"diff_hunk":"@@ -138,3 +138,10 @@ func CopyDetachable(dst io.Writer, src io.Reader, keys []byte) (written int64, e\n \t}\n \treturn written, err\n }\n+\n+// CopyFile copies a file from a source to destination path\n+func CopyFile(sourcePath, outputPath string) error {\n+\targs := []string{sourcePath, outputPath}\n+\t_, err := ExecCmd(\"cp\", args...)","path":"utils/utils.go","position":8,"original_position":8,"commit_id":"a469fb5b3278d14f5c4e16149d048469ee648d2b","original_commit_id":"a469fb5b3278d14f5c4e16149d048469ee648d2b","user":{"login":"baude","id":8824535,"avatar_url":"https://avatars3.githubusercontent.com/u/8824535?v=4","gravatar_id":"","url":"https://api.github.com/users/baude","html_url":"https://github.com/baude","followers_url":"https://api.github.com/users/baude/followers","following_url":"https://api.github.com/users/baude/following{/other_user}","gists_url":"https://api.github.com/users/baude/gists{/gist_id}","starred_url":"https://api.github.com/users/baude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baude/subscriptions","organizations_url":"https://api.github.com/users/baude/orgs","repos_url":"https://api.github.com/users/baude/repos","events_url":"https://api.github.com/users/baude/events{/privacy}","received_events_url":"https://api.github.com/users/baude/received_events","type":"User","site_admin":false},"body":"done","created_at":"2017-12-13T19:17:08Z","updated_at":"2017-12-13T19:17:08Z","html_url":"https://github.com/projectatomic/libpod/pull/130#discussion_r156755151","pull_request_url":"https://api.github.com/repos/projectatomic/libpod/pulls/130","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/comments/156755151"},"html":{"href":"https://github.com/projectatomic/libpod/pull/130#discussion_r156755151"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/130"}},"in_reply_to_id":156743682},"pull_request":{"url":"https://api.github.com/repos/projectatomic/libpod/pulls/130","id":158147230,"html_url":"https://github.com/projectatomic/libpod/pull/130","diff_url":"https://github.com/projectatomic/libpod/pull/130.diff","patch_url":"https://github.com/projectatomic/libpod/pull/130.patch","issue_url":"https://api.github.com/repos/projectatomic/libpod/issues/130","number":130,"state":"open","locked":false,"title":"Copy resolv.conf into container","user":{"login":"baude","id":8824535,"avatar_url":"https://avatars3.githubusercontent.com/u/8824535?v=4","gravatar_id":"","url":"https://api.github.com/users/baude","html_url":"https://github.com/baude","followers_url":"https://api.github.com/users/baude/followers","following_url":"https://api.github.com/users/baude/following{/other_user}","gists_url":"https://api.github.com/users/baude/gists{/gist_id}","starred_url":"https://api.github.com/users/baude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baude/subscriptions","organizations_url":"https://api.github.com/users/baude/orgs","repos_url":"https://api.github.com/users/baude/repos","events_url":"https://api.github.com/users/baude/events{/privacy}","received_events_url":"https://api.github.com/users/baude/received_events","type":"User","site_admin":false},"body":"For DNS to work properly, we need to copy the host's /etc/resolv.conf\r\ninto the container during Init().  We do this by copying it into the\r\ncontainers rundir and then bind mounting it into the container.\r\n\r\nSigned-off-by: baude <bbaude@redhat.com>","created_at":"2017-12-13T16:51:56Z","updated_at":"2017-12-13T19:17:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7bae6d6ab7d14ee2bab647c041346374d47758cf","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/libpod/pulls/130/commits","review_comments_url":"https://api.github.com/repos/projectatomic/libpod/pulls/130/comments","review_comment_url":"https://api.github.com/repos/projectatomic/libpod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/libpod/issues/130/comments","statuses_url":"https://api.github.com/repos/projectatomic/libpod/statuses/a469fb5b3278d14f5c4e16149d048469ee648d2b","head":{"label":"baude:resolv","ref":"resolv","sha":"a469fb5b3278d14f5c4e16149d048469ee648d2b","user":{"login":"baude","id":8824535,"avatar_url":"https://avatars3.githubusercontent.com/u/8824535?v=4","gravatar_id":"","url":"https://api.github.com/users/baude","html_url":"https://github.com/baude","followers_url":"https://api.github.com/users/baude/followers","following_url":"https://api.github.com/users/baude/following{/other_user}","gists_url":"https://api.github.com/users/baude/gists{/gist_id}","starred_url":"https://api.github.com/users/baude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baude/subscriptions","organizations_url":"https://api.github.com/users/baude/orgs","repos_url":"https://api.github.com/users/baude/repos","events_url":"https://api.github.com/users/baude/events{/privacy}","received_events_url":"https://api.github.com/users/baude/received_events","type":"User","site_admin":false},"repo":{"id":109146017,"name":"libpod","full_name":"baude/libpod","owner":{"login":"baude","id":8824535,"avatar_url":"https://avatars3.githubusercontent.com/u/8824535?v=4","gravatar_id":"","url":"https://api.github.com/users/baude","html_url":"https://github.com/baude","followers_url":"https://api.github.com/users/baude/followers","following_url":"https://api.github.com/users/baude/following{/other_user}","gists_url":"https://api.github.com/users/baude/gists{/gist_id}","starred_url":"https://api.github.com/users/baude/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baude/subscriptions","organizations_url":"https://api.github.com/users/baude/orgs","repos_url":"https://api.github.com/users/baude/repos","events_url":"https://api.github.com/users/baude/events{/privacy}","received_events_url":"https://api.github.com/users/baude/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/baude/libpod","description":"libpod is a library used to create container pods.","fork":true,"url":"https://api.github.com/repos/baude/libpod","forks_url":"https://api.github.com/repos/baude/libpod/forks","keys_url":"https://api.github.com/repos/baude/libpod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baude/libpod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baude/libpod/teams","hooks_url":"https://api.github.com/repos/baude/libpod/hooks","issue_events_url":"https://api.github.com/repos/baude/libpod/issues/events{/number}","events_url":"https://api.github.com/repos/baude/libpod/events","assignees_url":"https://api.github.com/repos/baude/libpod/assignees{/user}","branches_url":"https://api.github.com/repos/baude/libpod/branches{/branch}","tags_url":"https://api.github.com/repos/baude/libpod/tags","blobs_url":"https://api.github.com/repos/baude/libpod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baude/libpod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baude/libpod/git/refs{/sha}","trees_url":"https://api.github.com/repos/baude/libpod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baude/libpod/statuses/{sha}","languages_url":"https://api.github.com/repos/baude/libpod/languages","stargazers_url":"https://api.github.com/repos/baude/libpod/stargazers","contributors_url":"https://api.github.com/repos/baude/libpod/contributors","subscribers_url":"https://api.github.com/repos/baude/libpod/subscribers","subscription_url":"https://api.github.com/repos/baude/libpod/subscription","commits_url":"https://api.github.com/repos/baude/libpod/commits{/sha}","git_commits_url":"https://api.github.com/repos/baude/libpod/git/commits{/sha}","comments_url":"https://api.github.com/repos/baude/libpod/comments{/number}","issue_comment_url":"https://api.github.com/repos/baude/libpod/issues/comments{/number}","contents_url":"https://api.github.com/repos/baude/libpod/contents/{+path}","compare_url":"https://api.github.com/repos/baude/libpod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baude/libpod/merges","archive_url":"https://api.github.com/repos/baude/libpod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baude/libpod/downloads","issues_url":"https://api.github.com/repos/baude/libpod/issues{/number}","pulls_url":"https://api.github.com/repos/baude/libpod/pulls{/number}","milestones_url":"https://api.github.com/repos/baude/libpod/milestones{/number}","notifications_url":"https://api.github.com/repos/baude/libpod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baude/libpod/labels{/name}","releases_url":"https://api.github.com/repos/baude/libpod/releases{/id}","deployments_url":"https://api.github.com/repos/baude/libpod/deployments","created_at":"2017-11-01T15:05:39Z","updated_at":"2017-11-01T15:01:27Z","pushed_at":"2017-12-13T18:12:35Z","git_url":"git://github.com/baude/libpod.git","ssh_url":"git@github.com:baude/libpod.git","clone_url":"https://github.com/baude/libpod.git","svn_url":"https://github.com/baude/libpod","homepage":null,"size":8033,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"projectatomic:master","ref":"master","sha":"e456c07813c5ccc6ccc81ad9a103e46e1b59b50c","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars1.githubusercontent.com/u/6852258?v=4","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"repo":{"id":109145553,"name":"libpod","full_name":"projectatomic/libpod","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars1.githubusercontent.com/u/6852258?v=4","gravatar_id":"","url":"https://api.github.com/users/projectatomic","html_url":"https://github.com/projectatomic","followers_url":"https://api.github.com/users/projectatomic/followers","following_url":"https://api.github.com/users/projectatomic/following{/other_user}","gists_url":"https://api.github.com/users/projectatomic/gists{/gist_id}","starred_url":"https://api.github.com/users/projectatomic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectatomic/subscriptions","organizations_url":"https://api.github.com/users/projectatomic/orgs","repos_url":"https://api.github.com/users/projectatomic/repos","events_url":"https://api.github.com/users/projectatomic/events{/privacy}","received_events_url":"https://api.github.com/users/projectatomic/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectatomic/libpod","description":"libpod is a library used to create container pods.","fork":false,"url":"https://api.github.com/repos/projectatomic/libpod","forks_url":"https://api.github.com/repos/projectatomic/libpod/forks","keys_url":"https://api.github.com/repos/projectatomic/libpod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/libpod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/libpod/teams","hooks_url":"https://api.github.com/repos/projectatomic/libpod/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/libpod/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/libpod/events","assignees_url":"https://api.github.com/repos/projectatomic/libpod/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/libpod/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/libpod/tags","blobs_url":"https://api.github.com/repos/projectatomic/libpod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/libpod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/libpod/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/libpod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/libpod/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/libpod/languages","stargazers_url":"https://api.github.com/repos/projectatomic/libpod/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/libpod/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/libpod/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/libpod/subscription","commits_url":"https://api.github.com/repos/projectatomic/libpod/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/libpod/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/libpod/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/libpod/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/libpod/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/libpod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/libpod/merges","archive_url":"https://api.github.com/repos/projectatomic/libpod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/libpod/downloads","issues_url":"https://api.github.com/repos/projectatomic/libpod/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/libpod/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/libpod/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/libpod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/libpod/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/libpod/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/libpod/deployments","created_at":"2017-11-01T15:01:27Z","updated_at":"2017-12-08T22:39:06Z","pushed_at":"2017-12-13T18:45:38Z","git_url":"git://github.com/projectatomic/libpod.git","ssh_url":"git@github.com:projectatomic/libpod.git","clone_url":"https://github.com/projectatomic/libpod.git","svn_url":"https://github.com/projectatomic/libpod","homepage":null,"size":8012,"stargazers_count":8,"watchers_count":8,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":13,"open_issues":24,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/130"},"html":{"href":"https://github.com/projectatomic/libpod/pull/130"},"issue":{"href":"https://api.github.com/repos/projectatomic/libpod/issues/130"},"comments":{"href":"https://api.github.com/repos/projectatomic/libpod/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/libpod/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/libpod/statuses/a469fb5b3278d14f5c4e16149d048469ee648d2b"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"baude"}}