{"action":"created","comment":{"url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments/87779344","pull_request_review_id":8376622,"id":87779344,"diff_hunk":"@@ -14,30 +14,32 @@\n     - '{{ docker_image_prefix }}/javaaction'\n   when: docker_registry != \"\"\n \n-- name: (re)start invoker\n-  docker_container:\n-    name: \"invoker{{play_hosts.index(inventory_hostname)}}\"\n-    image: \"{{docker_registry}}{{ docker_image_prefix }}/invoker:{{docker_image_tag}}\"\n-    state: started\n-    recreate: true\n-    restart_policy: \"{{docker.restart.policy}}\"\n-    hostname: \"invoker{{play_hosts.index(inventory_hostname)}}\"\n-    env:\n-      \"COMPONENT_NAME\": \"invoker{{play_hosts.index(inventory_hostname)}}\"\n-      \"CONSULSERVER_HOST\": \"{{groups['consul_servers'] | first}}\"\n-      \"CONSUL_HOST_PORT4\": \"{{consul.port.http}}\"\n-      \"SELF_DOCKER_ENDPOINT\": \"{{inventory_hostname}}:{{docker.port}}\"\n-      \"SERVICE_NAME\": \"invoker{{play_hosts.index(inventory_hostname)}}\"\n-      \"SERVICE_CHECK_HTTP\": \"/ping\"\n-      \"SERVICE_CHECK_TIMEOUT\": \"2s\"\n-      \"SERVICE_CHECK_INTERVAL\": \"15s\"\n-      \"PORT\": 8080 \n-    volumes:\n-      - \"{{whisk_logs_dir}}/invoker{{play_hosts.index(inventory_hostname)}}:/logs\"\n-      - \"/var/lib/docker/containers/:/containers\"\n-    ports:\n-      - \"{{invoker.port + play_hosts.index(inventory_hostname)}}:8080\"\n-    command: /bin/sh -c \"/invoker/bin/invoker {{play_hosts.index(inventory_hostname)}} >> /logs/invoker{{play_hosts.index(inventory_hostname)}}_logs.log 2>&1\"\n+- name: determine docker root dir\n+  shell: \"docker info 2>/dev/null | grep 'Docker Root Dir' | awk -F ': ' '{print $2}'\"\n+  register: docker_root_dir","path":"ansible/roles/invoker/tasks/deploy.yml","position":30,"original_position":30,"commit_id":"ae2553d01fa83ddeb452bbd5c2f98821d5d82323","original_commit_id":"b9711dcb5571b9e2e10c22c12af96d21936d5ee3","user":{"login":"domdom82","id":1755853,"avatar_url":"https://avatars.githubusercontent.com/u/1755853?v=3","gravatar_id":"","url":"https://api.github.com/users/domdom82","html_url":"https://github.com/domdom82","followers_url":"https://api.github.com/users/domdom82/followers","following_url":"https://api.github.com/users/domdom82/following{/other_user}","gists_url":"https://api.github.com/users/domdom82/gists{/gist_id}","starred_url":"https://api.github.com/users/domdom82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domdom82/subscriptions","organizations_url":"https://api.github.com/users/domdom82/orgs","repos_url":"https://api.github.com/users/domdom82/repos","events_url":"https://api.github.com/users/domdom82/events{/privacy}","received_events_url":"https://api.github.com/users/domdom82/received_events","type":"User","site_admin":false},"body":"good idea. we can omit the version tho to get the latest. we have already pinned the api version implicitly by pinning the docker version.\r\n\r\n```\r\ncurl host:port/info\r\n```\r\nshould yield the same results. (calls /1.24/info on docker 1.12)","created_at":"2016-11-14T11:06:59Z","updated_at":"2016-11-14T11:06:59Z","html_url":"https://github.com/openwhisk/openwhisk/pull/1487#discussion_r87779344","pull_request_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1487","_links":{"self":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments/87779344"},"html":{"href":"https://github.com/openwhisk/openwhisk/pull/1487#discussion_r87779344"},"pull_request":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1487"}}},"pull_request":{"url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1487","id":92939697,"html_url":"https://github.com/openwhisk/openwhisk/pull/1487","diff_url":"https://github.com/openwhisk/openwhisk/pull/1487.diff","patch_url":"https://github.com/openwhisk/openwhisk/pull/1487.patch","issue_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/1487","number":1487,"state":"open","locked":false,"title":"User namespaces issue 898","user":{"login":"xin-cai","id":21193101,"avatar_url":"https://avatars.githubusercontent.com/u/21193101?v=3","gravatar_id":"","url":"https://api.github.com/users/xin-cai","html_url":"https://github.com/xin-cai","followers_url":"https://api.github.com/users/xin-cai/followers","following_url":"https://api.github.com/users/xin-cai/following{/other_user}","gists_url":"https://api.github.com/users/xin-cai/gists{/gist_id}","starred_url":"https://api.github.com/users/xin-cai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xin-cai/subscriptions","organizations_url":"https://api.github.com/users/xin-cai/orgs","repos_url":"https://api.github.com/users/xin-cai/repos","events_url":"https://api.github.com/users/xin-cai/events{/privacy}","received_events_url":"https://api.github.com/users/xin-cai/received_events","type":"User","site_admin":false},"body":"docker user namespaces issue 898","created_at":"2016-11-09T10:41:16Z","updated_at":"2016-11-14T11:06:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e222c374590992b90361353fb485452ea982c438","assignee":{"login":"domdom82","id":1755853,"avatar_url":"https://avatars.githubusercontent.com/u/1755853?v=3","gravatar_id":"","url":"https://api.github.com/users/domdom82","html_url":"https://github.com/domdom82","followers_url":"https://api.github.com/users/domdom82/followers","following_url":"https://api.github.com/users/domdom82/following{/other_user}","gists_url":"https://api.github.com/users/domdom82/gists{/gist_id}","starred_url":"https://api.github.com/users/domdom82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domdom82/subscriptions","organizations_url":"https://api.github.com/users/domdom82/orgs","repos_url":"https://api.github.com/users/domdom82/repos","events_url":"https://api.github.com/users/domdom82/events{/privacy}","received_events_url":"https://api.github.com/users/domdom82/received_events","type":"User","site_admin":false},"assignees":[{"login":"domdom82","id":1755853,"avatar_url":"https://avatars.githubusercontent.com/u/1755853?v=3","gravatar_id":"","url":"https://api.github.com/users/domdom82","html_url":"https://github.com/domdom82","followers_url":"https://api.github.com/users/domdom82/followers","following_url":"https://api.github.com/users/domdom82/following{/other_user}","gists_url":"https://api.github.com/users/domdom82/gists{/gist_id}","starred_url":"https://api.github.com/users/domdom82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domdom82/subscriptions","organizations_url":"https://api.github.com/users/domdom82/orgs","repos_url":"https://api.github.com/users/domdom82/repos","events_url":"https://api.github.com/users/domdom82/events{/privacy}","received_events_url":"https://api.github.com/users/domdom82/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1487/commits","review_comments_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1487/comments","review_comment_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/1487/comments","statuses_url":"https://api.github.com/repos/openwhisk/openwhisk/statuses/ae2553d01fa83ddeb452bbd5c2f98821d5d82323","head":{"label":"xin-cai:user_namespaces_issue_898","ref":"user_namespaces_issue_898","sha":"ae2553d01fa83ddeb452bbd5c2f98821d5d82323","user":{"login":"xin-cai","id":21193101,"avatar_url":"https://avatars.githubusercontent.com/u/21193101?v=3","gravatar_id":"","url":"https://api.github.com/users/xin-cai","html_url":"https://github.com/xin-cai","followers_url":"https://api.github.com/users/xin-cai/followers","following_url":"https://api.github.com/users/xin-cai/following{/other_user}","gists_url":"https://api.github.com/users/xin-cai/gists{/gist_id}","starred_url":"https://api.github.com/users/xin-cai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xin-cai/subscriptions","organizations_url":"https://api.github.com/users/xin-cai/orgs","repos_url":"https://api.github.com/users/xin-cai/repos","events_url":"https://api.github.com/users/xin-cai/events{/privacy}","received_events_url":"https://api.github.com/users/xin-cai/received_events","type":"User","site_admin":false},"repo":{"id":66350264,"name":"openwhisk","full_name":"xin-cai/openwhisk","owner":{"login":"xin-cai","id":21193101,"avatar_url":"https://avatars.githubusercontent.com/u/21193101?v=3","gravatar_id":"","url":"https://api.github.com/users/xin-cai","html_url":"https://github.com/xin-cai","followers_url":"https://api.github.com/users/xin-cai/followers","following_url":"https://api.github.com/users/xin-cai/following{/other_user}","gists_url":"https://api.github.com/users/xin-cai/gists{/gist_id}","starred_url":"https://api.github.com/users/xin-cai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xin-cai/subscriptions","organizations_url":"https://api.github.com/users/xin-cai/orgs","repos_url":"https://api.github.com/users/xin-cai/repos","events_url":"https://api.github.com/users/xin-cai/events{/privacy}","received_events_url":"https://api.github.com/users/xin-cai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xin-cai/openwhisk","description":"OpenWhisk is a cloud-first distributed event-based programming service.","fork":true,"url":"https://api.github.com/repos/xin-cai/openwhisk","forks_url":"https://api.github.com/repos/xin-cai/openwhisk/forks","keys_url":"https://api.github.com/repos/xin-cai/openwhisk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xin-cai/openwhisk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xin-cai/openwhisk/teams","hooks_url":"https://api.github.com/repos/xin-cai/openwhisk/hooks","issue_events_url":"https://api.github.com/repos/xin-cai/openwhisk/issues/events{/number}","events_url":"https://api.github.com/repos/xin-cai/openwhisk/events","assignees_url":"https://api.github.com/repos/xin-cai/openwhisk/assignees{/user}","branches_url":"https://api.github.com/repos/xin-cai/openwhisk/branches{/branch}","tags_url":"https://api.github.com/repos/xin-cai/openwhisk/tags","blobs_url":"https://api.github.com/repos/xin-cai/openwhisk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xin-cai/openwhisk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xin-cai/openwhisk/git/refs{/sha}","trees_url":"https://api.github.com/repos/xin-cai/openwhisk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xin-cai/openwhisk/statuses/{sha}","languages_url":"https://api.github.com/repos/xin-cai/openwhisk/languages","stargazers_url":"https://api.github.com/repos/xin-cai/openwhisk/stargazers","contributors_url":"https://api.github.com/repos/xin-cai/openwhisk/contributors","subscribers_url":"https://api.github.com/repos/xin-cai/openwhisk/subscribers","subscription_url":"https://api.github.com/repos/xin-cai/openwhisk/subscription","commits_url":"https://api.github.com/repos/xin-cai/openwhisk/commits{/sha}","git_commits_url":"https://api.github.com/repos/xin-cai/openwhisk/git/commits{/sha}","comments_url":"https://api.github.com/repos/xin-cai/openwhisk/comments{/number}","issue_comment_url":"https://api.github.com/repos/xin-cai/openwhisk/issues/comments{/number}","contents_url":"https://api.github.com/repos/xin-cai/openwhisk/contents/{+path}","compare_url":"https://api.github.com/repos/xin-cai/openwhisk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xin-cai/openwhisk/merges","archive_url":"https://api.github.com/repos/xin-cai/openwhisk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xin-cai/openwhisk/downloads","issues_url":"https://api.github.com/repos/xin-cai/openwhisk/issues{/number}","pulls_url":"https://api.github.com/repos/xin-cai/openwhisk/pulls{/number}","milestones_url":"https://api.github.com/repos/xin-cai/openwhisk/milestones{/number}","notifications_url":"https://api.github.com/repos/xin-cai/openwhisk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xin-cai/openwhisk/labels{/name}","releases_url":"https://api.github.com/repos/xin-cai/openwhisk/releases{/id}","deployments_url":"https://api.github.com/repos/xin-cai/openwhisk/deployments","created_at":"2016-08-23T08:50:49Z","updated_at":"2016-08-23T08:50:51Z","pushed_at":"2016-11-10T12:51:50Z","git_url":"git://github.com/xin-cai/openwhisk.git","ssh_url":"git@github.com:xin-cai/openwhisk.git","clone_url":"https://github.com/xin-cai/openwhisk.git","svn_url":"https://github.com/xin-cai/openwhisk","homepage":"","size":43431,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openwhisk:master","ref":"master","sha":"da901b309c38c457a17e33bc7a69a9e6269bfa4d","user":{"login":"openwhisk","id":16900235,"avatar_url":"https://avatars.githubusercontent.com/u/16900235?v=3","gravatar_id":"","url":"https://api.github.com/users/openwhisk","html_url":"https://github.com/openwhisk","followers_url":"https://api.github.com/users/openwhisk/followers","following_url":"https://api.github.com/users/openwhisk/following{/other_user}","gists_url":"https://api.github.com/users/openwhisk/gists{/gist_id}","starred_url":"https://api.github.com/users/openwhisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwhisk/subscriptions","organizations_url":"https://api.github.com/users/openwhisk/orgs","repos_url":"https://api.github.com/users/openwhisk/repos","events_url":"https://api.github.com/users/openwhisk/events{/privacy}","received_events_url":"https://api.github.com/users/openwhisk/received_events","type":"Organization","site_admin":false},"repo":{"id":52039373,"name":"openwhisk","full_name":"openwhisk/openwhisk","owner":{"login":"openwhisk","id":16900235,"avatar_url":"https://avatars.githubusercontent.com/u/16900235?v=3","gravatar_id":"","url":"https://api.github.com/users/openwhisk","html_url":"https://github.com/openwhisk","followers_url":"https://api.github.com/users/openwhisk/followers","following_url":"https://api.github.com/users/openwhisk/following{/other_user}","gists_url":"https://api.github.com/users/openwhisk/gists{/gist_id}","starred_url":"https://api.github.com/users/openwhisk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openwhisk/subscriptions","organizations_url":"https://api.github.com/users/openwhisk/orgs","repos_url":"https://api.github.com/users/openwhisk/repos","events_url":"https://api.github.com/users/openwhisk/events{/privacy}","received_events_url":"https://api.github.com/users/openwhisk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openwhisk/openwhisk","description":"OpenWhisk is a serverless event-based programming service.","fork":false,"url":"https://api.github.com/repos/openwhisk/openwhisk","forks_url":"https://api.github.com/repos/openwhisk/openwhisk/forks","keys_url":"https://api.github.com/repos/openwhisk/openwhisk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openwhisk/openwhisk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openwhisk/openwhisk/teams","hooks_url":"https://api.github.com/repos/openwhisk/openwhisk/hooks","issue_events_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/events{/number}","events_url":"https://api.github.com/repos/openwhisk/openwhisk/events","assignees_url":"https://api.github.com/repos/openwhisk/openwhisk/assignees{/user}","branches_url":"https://api.github.com/repos/openwhisk/openwhisk/branches{/branch}","tags_url":"https://api.github.com/repos/openwhisk/openwhisk/tags","blobs_url":"https://api.github.com/repos/openwhisk/openwhisk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openwhisk/openwhisk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openwhisk/openwhisk/git/refs{/sha}","trees_url":"https://api.github.com/repos/openwhisk/openwhisk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openwhisk/openwhisk/statuses/{sha}","languages_url":"https://api.github.com/repos/openwhisk/openwhisk/languages","stargazers_url":"https://api.github.com/repos/openwhisk/openwhisk/stargazers","contributors_url":"https://api.github.com/repos/openwhisk/openwhisk/contributors","subscribers_url":"https://api.github.com/repos/openwhisk/openwhisk/subscribers","subscription_url":"https://api.github.com/repos/openwhisk/openwhisk/subscription","commits_url":"https://api.github.com/repos/openwhisk/openwhisk/commits{/sha}","git_commits_url":"https://api.github.com/repos/openwhisk/openwhisk/git/commits{/sha}","comments_url":"https://api.github.com/repos/openwhisk/openwhisk/comments{/number}","issue_comment_url":"https://api.github.com/repos/openwhisk/openwhisk/issues/comments{/number}","contents_url":"https://api.github.com/repos/openwhisk/openwhisk/contents/{+path}","compare_url":"https://api.github.com/repos/openwhisk/openwhisk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openwhisk/openwhisk/merges","archive_url":"https://api.github.com/repos/openwhisk/openwhisk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openwhisk/openwhisk/downloads","issues_url":"https://api.github.com/repos/openwhisk/openwhisk/issues{/number}","pulls_url":"https://api.github.com/repos/openwhisk/openwhisk/pulls{/number}","milestones_url":"https://api.github.com/repos/openwhisk/openwhisk/milestones{/number}","notifications_url":"https://api.github.com/repos/openwhisk/openwhisk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openwhisk/openwhisk/labels{/name}","releases_url":"https://api.github.com/repos/openwhisk/openwhisk/releases{/id}","deployments_url":"https://api.github.com/repos/openwhisk/openwhisk/deployments","created_at":"2016-02-18T21:16:19Z","updated_at":"2016-11-14T10:57:21Z","pushed_at":"2016-11-14T03:40:25Z","git_url":"git://github.com/openwhisk/openwhisk.git","ssh_url":"git@github.com:openwhisk/openwhisk.git","clone_url":"https://github.com/openwhisk/openwhisk.git","svn_url":"https://github.com/openwhisk/openwhisk","homepage":"","size":45439,"stargazers_count":740,"watchers_count":740,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":166,"mirror_url":null,"open_issues_count":321,"forks":166,"open_issues":321,"watchers":740,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1487"},"html":{"href":"https://github.com/openwhisk/openwhisk/pull/1487"},"issue":{"href":"https://api.github.com/repos/openwhisk/openwhisk/issues/1487"},"comments":{"href":"https://api.github.com/repos/openwhisk/openwhisk/issues/1487/comments"},"review_comments":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1487/comments"},"review_comment":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openwhisk/openwhisk/pulls/1487/commits"},"statuses":{"href":"https://api.github.com/repos/openwhisk/openwhisk/statuses/ae2553d01fa83ddeb452bbd5c2f98821d5d82323"}}}}
{"actor":{"display_login":"domdom82"}}