{"action":"created","comment":{"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/comments/70776380","id":70776380,"diff_hunk":"@@ -0,0 +1,244 @@\n+= Available Commands and Examples\n+:toc:\n+:toc-placement!:\n+\n+Once you `vagrant up` and have a running VM, the vagrant-service-manager\n+ enables you to check and tweak your container development environment.\n+\n+'''\n+toc::[]\n+'''\n+\n+You can use the vagrant-service-manager to set up your environment variables and\n+ get the TLS certificates to secure the Docker communication channel; identify\n+ the routable ip address and version of your VM; and check the status and\n+ manage the lifecycle of the configured services in the running VM.\n+\n+To run the vagrant-service-manager plugin use: +\n+-------------------------------------------\n+vagrant service-manager [command] [options]\n+-------------------------------------------\n+The following commands can be used: +\n+\n+`env`::  Displays the connection information for services in the VM +\n+`box`:: Displays the VM related information like version, release, IP etc +\n+`status`:: Lists services and their running state +\n+`start`:: Starts the given service in the VM +\n+`stop`:: Stops the given service in the VM +\n+`restart`:: Restarts the given service in the VM +\n+\n+The following options can be used: +\n+\n+`--script-readable`:: Displays information in a key=value format +\n+`-h, --help`:: Prints help for the specific command being run +\n+\n+\n+== Get Environment Variables and Certificates\n+\n+If you need to get the environment variables and certificates for all the active\n+ services in the VM, run: +\n+\n+`$ vagrant service-manager env` +\n+\n+Usage: `vagrant service-manager env [service] [options]`\n+\n+The possible options for service are `docker` and `openshift`. +\n+If no service is specified `vagrant service-manager env` provides connection\n+ information for all the active services.\n+\n+The following options can be used: +\n+\n+`--script-readable`:: Displays information in a key=value format +\n+`-h, --help`:: Prints help for the specific command being run. +\n+\n+=== Examples\n+\n+If you need connection information for all active services in the VM, in a\n+manner that can be evaluated in a shell, use:\n+-----------------------------------------------------------------------------\n+$ vagrant service-manager env\n+\n+# docker env:\n+# Set the following environment variables to enable access to the\n+# docker daemon running inside of the vagrant virtual machine:\n+export DOCKER_HOST=tcp://10.1.2.2:2376\n+export DOCKER_CERT_PATH=/foo/bar/.vagrant/machines/default/virtualbox/docker\n+export DOCKER_TLS_VERIFY=1\n+export DOCKER_API_VERSION=1.21\n+\n+# openshift env:\n+# You can access the OpenShift console on: https://10.1.2.2:8443/console\n+# To use OpenShift CLI, run: oc login https://10.1.2.2:8443\n+export OPENSHIFT_URL=https://10.1.2.2:8443\n+export OPENSHIFT_WEB_CONSOLE=https://10.1.2.2:8443/console\n+export DOCKER_REGISTRY=hub.openshift.centos7-adb.10.1.2.2.xip.io\n+\n+# run following command to configure your shell:\n+# eval \"$(vagrant service-manager env)\"\n+-----------------------------------------------------------------------------\n+\n+If you need to run the plugin and get the environment variables and\n+certificates for a specific service, use: +","path":"Commands.adoc","position":81,"original_position":81,"commit_id":"5ebd3bd9b95b276d25a97632c1b62b1177697323","original_commit_id":"c1a4cc41b2d02058b1bf5a9a63a7c89ae2d83658","user":{"login":"hferentschik","id":296354,"avatar_url":"https://avatars.githubusercontent.com/u/296354?v=3","gravatar_id":"","url":"https://api.github.com/users/hferentschik","html_url":"https://github.com/hferentschik","followers_url":"https://api.github.com/users/hferentschik/followers","following_url":"https://api.github.com/users/hferentschik/following{/other_user}","gists_url":"https://api.github.com/users/hferentschik/gists{/gist_id}","starred_url":"https://api.github.com/users/hferentschik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hferentschik/subscriptions","organizations_url":"https://api.github.com/users/hferentschik/orgs","repos_url":"https://api.github.com/users/hferentschik/repos","events_url":"https://api.github.com/users/hferentschik/events{/privacy}","received_events_url":"https://api.github.com/users/hferentschik/received_events","type":"User","site_admin":false},"body":"Only for docker we download certificates to the host, so i think your wording is better.","created_at":"2016-07-14T09:35:23Z","updated_at":"2016-07-14T09:35:23Z","html_url":"https://github.com/projectatomic/vagrant-service-manager/pull/319#discussion_r70776380","pull_request_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/319","_links":{"self":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/comments/70776380"},"html":{"href":"https://github.com/projectatomic/vagrant-service-manager/pull/319#discussion_r70776380"},"pull_request":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/319"}}},"pull_request":{"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/319","id":77099329,"html_url":"https://github.com/projectatomic/vagrant-service-manager/pull/319","diff_url":"https://github.com/projectatomic/vagrant-service-manager/pull/319.diff","patch_url":"https://github.com/projectatomic/vagrant-service-manager/pull/319.patch","issue_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/319","number":319,"state":"closed","locked":false,"title":"Fix #197 Created new doc for available commands with examples.","user":{"login":"Preeticp","id":16647625,"avatar_url":"https://avatars.githubusercontent.com/u/16647625?v=3","gravatar_id":"","url":"https://api.github.com/users/Preeticp","html_url":"https://github.com/Preeticp","followers_url":"https://api.github.com/users/Preeticp/followers","following_url":"https://api.github.com/users/Preeticp/following{/other_user}","gists_url":"https://api.github.com/users/Preeticp/gists{/gist_id}","starred_url":"https://api.github.com/users/Preeticp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preeticp/subscriptions","organizations_url":"https://api.github.com/users/Preeticp/orgs","repos_url":"https://api.github.com/users/Preeticp/repos","events_url":"https://api.github.com/users/Preeticp/events{/privacy}","received_events_url":"https://api.github.com/users/Preeticp/received_events","type":"User","site_admin":false},"body":"Created a new document for all the available commands and examples for vagrant-service-manager plugin.\r\n'Available commands' section from the current Readme will be condensed to a list of the 4 higher level commands with a link to this document saying - for further details refer to 'Commands.adoc'.\r\nThoughts please.","created_at":"2016-07-12T10:53:11Z","updated_at":"2016-07-14T09:35:23Z","closed_at":"2016-07-13T15:10:34Z","merged_at":null,"merge_commit_sha":"8cf4825e87d8db923b408c9120f7f6824970cba2","assignee":{"login":"hferentschik","id":296354,"avatar_url":"https://avatars.githubusercontent.com/u/296354?v=3","gravatar_id":"","url":"https://api.github.com/users/hferentschik","html_url":"https://github.com/hferentschik","followers_url":"https://api.github.com/users/hferentschik/followers","following_url":"https://api.github.com/users/hferentschik/following{/other_user}","gists_url":"https://api.github.com/users/hferentschik/gists{/gist_id}","starred_url":"https://api.github.com/users/hferentschik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hferentschik/subscriptions","organizations_url":"https://api.github.com/users/hferentschik/orgs","repos_url":"https://api.github.com/users/hferentschik/repos","events_url":"https://api.github.com/users/hferentschik/events{/privacy}","received_events_url":"https://api.github.com/users/hferentschik/received_events","type":"User","site_admin":false},"assignees":[{"login":"hferentschik","id":296354,"avatar_url":"https://avatars.githubusercontent.com/u/296354?v=3","gravatar_id":"","url":"https://api.github.com/users/hferentschik","html_url":"https://github.com/hferentschik","followers_url":"https://api.github.com/users/hferentschik/followers","following_url":"https://api.github.com/users/hferentschik/following{/other_user}","gists_url":"https://api.github.com/users/hferentschik/gists{/gist_id}","starred_url":"https://api.github.com/users/hferentschik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hferentschik/subscriptions","organizations_url":"https://api.github.com/users/hferentschik/orgs","repos_url":"https://api.github.com/users/hferentschik/repos","events_url":"https://api.github.com/users/hferentschik/events{/privacy}","received_events_url":"https://api.github.com/users/hferentschik/received_events","type":"User","site_admin":false},{"login":"Preeticp","id":16647625,"avatar_url":"https://avatars.githubusercontent.com/u/16647625?v=3","gravatar_id":"","url":"https://api.github.com/users/Preeticp","html_url":"https://github.com/Preeticp","followers_url":"https://api.github.com/users/Preeticp/followers","following_url":"https://api.github.com/users/Preeticp/following{/other_user}","gists_url":"https://api.github.com/users/Preeticp/gists{/gist_id}","starred_url":"https://api.github.com/users/Preeticp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preeticp/subscriptions","organizations_url":"https://api.github.com/users/Preeticp/orgs","repos_url":"https://api.github.com/users/Preeticp/repos","events_url":"https://api.github.com/users/Preeticp/events{/privacy}","received_events_url":"https://api.github.com/users/Preeticp/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/319/commits","review_comments_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/319/comments","review_comment_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/319/comments","statuses_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/statuses/5ebd3bd9b95b276d25a97632c1b62b1177697323","head":{"label":"Preeticp:Commands_Doc","ref":"Commands_Doc","sha":"5ebd3bd9b95b276d25a97632c1b62b1177697323","user":{"login":"Preeticp","id":16647625,"avatar_url":"https://avatars.githubusercontent.com/u/16647625?v=3","gravatar_id":"","url":"https://api.github.com/users/Preeticp","html_url":"https://github.com/Preeticp","followers_url":"https://api.github.com/users/Preeticp/followers","following_url":"https://api.github.com/users/Preeticp/following{/other_user}","gists_url":"https://api.github.com/users/Preeticp/gists{/gist_id}","starred_url":"https://api.github.com/users/Preeticp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preeticp/subscriptions","organizations_url":"https://api.github.com/users/Preeticp/orgs","repos_url":"https://api.github.com/users/Preeticp/repos","events_url":"https://api.github.com/users/Preeticp/events{/privacy}","received_events_url":"https://api.github.com/users/Preeticp/received_events","type":"User","site_admin":false},"repo":{"id":54108841,"name":"vagrant-service-manager","full_name":"Preeticp/vagrant-service-manager","owner":{"login":"Preeticp","id":16647625,"avatar_url":"https://avatars.githubusercontent.com/u/16647625?v=3","gravatar_id":"","url":"https://api.github.com/users/Preeticp","html_url":"https://github.com/Preeticp","followers_url":"https://api.github.com/users/Preeticp/followers","following_url":"https://api.github.com/users/Preeticp/following{/other_user}","gists_url":"https://api.github.com/users/Preeticp/gists{/gist_id}","starred_url":"https://api.github.com/users/Preeticp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Preeticp/subscriptions","organizations_url":"https://api.github.com/users/Preeticp/orgs","repos_url":"https://api.github.com/users/Preeticp/repos","events_url":"https://api.github.com/users/Preeticp/events{/privacy}","received_events_url":"https://api.github.com/users/Preeticp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Preeticp/vagrant-service-manager","description":"To provide the user a CLI to configure the ADB/CDK for different use cases and to provide glue between ADB/CDK and the user's developer environment.","fork":true,"url":"https://api.github.com/repos/Preeticp/vagrant-service-manager","forks_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/forks","keys_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/teams","hooks_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/hooks","issue_events_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/issues/events{/number}","events_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/events","assignees_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/assignees{/user}","branches_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/branches{/branch}","tags_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/tags","blobs_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/languages","stargazers_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/stargazers","contributors_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/contributors","subscribers_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/subscribers","subscription_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/subscription","commits_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/contents/{+path}","compare_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/merges","archive_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/downloads","issues_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/issues{/number}","pulls_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/labels{/name}","releases_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/releases{/id}","deployments_url":"https://api.github.com/repos/Preeticp/vagrant-service-manager/deployments","created_at":"2016-03-17T10:21:41Z","updated_at":"2016-03-17T10:21:42Z","pushed_at":"2016-07-13T13:35:13Z","git_url":"git://github.com/Preeticp/vagrant-service-manager.git","ssh_url":"git@github.com:Preeticp/vagrant-service-manager.git","clone_url":"https://github.com/Preeticp/vagrant-service-manager.git","svn_url":"https://github.com/Preeticp/vagrant-service-manager","homepage":null,"size":273,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"projectatomic:master","ref":"master","sha":"52b3c74bf7144762c4d8c3942e66779e0a16d534","user":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","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":51367450,"name":"vagrant-service-manager","full_name":"projectatomic/vagrant-service-manager","owner":{"login":"projectatomic","id":6852258,"avatar_url":"https://avatars.githubusercontent.com/u/6852258?v=3","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/vagrant-service-manager","description":"To provide the user a CLI to configure the ADB/CDK for different use cases and to provide glue between ADB/CDK and the user's developer environment.","fork":false,"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager","forks_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/forks","keys_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/teams","hooks_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/hooks","issue_events_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/events{/number}","events_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/events","assignees_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/assignees{/user}","branches_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/branches{/branch}","tags_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/tags","blobs_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/statuses/{sha}","languages_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/languages","stargazers_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/stargazers","contributors_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/contributors","subscribers_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/subscribers","subscription_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/subscription","commits_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/contents/{+path}","compare_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/merges","archive_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/downloads","issues_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues{/number}","pulls_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls{/number}","milestones_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/milestones{/number}","notifications_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/labels{/name}","releases_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/releases{/id}","deployments_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/deployments","created_at":"2016-02-09T13:12:07Z","updated_at":"2016-07-01T17:37:51Z","pushed_at":"2016-07-14T08:19:42Z","git_url":"git://github.com/projectatomic/vagrant-service-manager.git","ssh_url":"git@github.com:projectatomic/vagrant-service-manager.git","clone_url":"https://github.com/projectatomic/vagrant-service-manager.git","svn_url":"https://github.com/projectatomic/vagrant-service-manager","homepage":null,"size":332,"stargazers_count":9,"watchers_count":9,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":42,"forks":12,"open_issues":42,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/319"},"html":{"href":"https://github.com/projectatomic/vagrant-service-manager/pull/319"},"issue":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/319"},"comments":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/319/comments"},"review_comments":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/319/comments"},"review_comment":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/pulls/319/commits"},"statuses":{"href":"https://api.github.com/repos/projectatomic/vagrant-service-manager/statuses/5ebd3bd9b95b276d25a97632c1b62b1177697323"}}}}
{"actor":{"display_login":"hferentschik"}}