{"action":"created","comment":{"url":"https://api.github.com/repos/redhat-developer/ocdev/pulls/comments/172176124","pull_request_review_id":101143270,"id":172176124,"diff_hunk":"@@ -0,0 +1,152 @@\n+# Getting Started\n+\n+This guide will get you started with developing your microservices iteratively on OpenShift using `ocdev`.\n+\n+We will be developing a nodejs application in this guide, you can try along by getting the code for the application by running: `git clone https://github.com/kadel/nodejs-ex`\n+\n+#### Running OpenShift\n+\n+The easiest way to get a single node OpenShift cluster is by using [minishift](https://docs.openshift.org/latest/minishift/index.html), but `ocdev` will work with any other OpenShift instance you are logged in to.\n+\n+- Install minishift using this [installation guide](https://docs.openshift.org/latest/minishift/getting-started/installing.html)\n+- Install ocdev using this [installation guide](/README.md#Installation)\n+\n+Next, start a local OpenShift cluster using minishift -\n+```console\n+$ minishift start       \n+-- Starting profile 'minishift'                                \n+-- Checking if requested hypervisor 'kvm' is supported on this platform ... OK\n+-- Checking if KVM driver is installed ...                     \n+   Driver is available at /usr/local/bin/docker-machine-driver-kvm ... \n+   Checking driver binary is executable ... OK                 \n+-- Checking if Libvirt is installed ... OK                     \n+-- Checking if Libvirt default network is present ... OK       \n+-- Checking if Libvirt default network is active ... OK        \n+-- Checking the ISO URL ... OK \n+-- Starting local OpenShift cluster using 'kvm' hypervisor ... \n+-- Starting Minishift VM ............... OK                    \n+-- Checking for IP address ... OK                              \n+-- Checking if external host is reachable from the Minishift VM ... \n+   Pinging 8.8.8.8 ... OK      \n+-- Checking HTTP connectivity from the VM ...                  \n+   Retrieving http://minishift.io/index.html ... OK            \n+-- Checking if persistent storage volume is mounted ... OK     \n+-- Checking available disk space ... 19% used OK               \n+-- OpenShift cluster will be configured with ...               \n+   Version: v3.7.1             \n+-- Checking 'oc' support for startup flags ...                 \n+   routing-suffix ... OK       \n+   host-config-dir ... OK      \n+   host-data-dir ... OK        \n+   host-pv-dir ... OK          \n+   host-volumes-dir ... OK     \n+Starting OpenShift using openshift/origin:v3.7.1 ...           \n+OpenShift server started.\n+\n+The server is accessible via web console at:\n+    https://192.168.42.147:8443\n+```\n+\n+Now login to the OpenShift cluster using -\n+```console\n+$ oc login -u developer -p developer https://192.168.42.147:8443\n+Login successful.\n+\n+You have one project on this server: \"myproject\"\n+\n+Using project \"myproject\".\n+```\n+\n+Make sure you are logged in to the cluster by running `oc whoami` command.\n+\n+Now we can move on to creating our application using `ocdev`.\n+\n+#### Create an application\n+\n+An application is the umbrella under which you will build all the components (microservices) of your entire application.\n+\n+Let's create an application -\n+\n+```console\n+$ ocdev application create nodeapp \n+Creating application: nodeapp\n+Switched to application: nodeapp\n+```\n+\n+#### Create a component\n+\n+Now that you have created an application, now add a component of type _nodejs_ to the application, from the current directory where our code lies.\n+\n+```console\n+$ ocdev component create nodejs\n+--> Found image 2809a54 (3 weeks old) in image stream \"openshift/nodejs\" under tag \"6\" for \"nodejs\"\n+--> Creating resources with label app=nodeapp,app.kubernetes.io/component-name=nodejs,app.kubernetes.io/name=nodeapp ...\n+    imagestream \"nodejs\" created       \n+    buildconfig \"nodejs\" created       \n+    deploymentconfig \"nodejs\" created  \n+    service \"nodejs\" created           \n+--> Success        \n+    Build scheduled, use 'oc logs -f bc/nodejs' to track its progress.\n+    Application is not exposed. You can expose services to the outside world by executing one or more of the commands below:\n+     'oc expose svc/nodejs'            \n+    Run 'oc status' to view your app.  \n+\n+please wait, building application...   ","path":"docs/getting-started.md","position":94,"original_position":94,"commit_id":"2d46ae38c0b4941f6db418e3ab278f85880c2d0a","original_commit_id":"2d46ae38c0b4941f6db418e3ab278f85880c2d0a","user":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars1.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"body":"I've changed it back to `--dir`, so output should match now","created_at":"2018-03-05T12:50:25Z","updated_at":"2018-03-05T12:51:41Z","html_url":"https://github.com/redhat-developer/ocdev/pull/144#discussion_r172176124","pull_request_url":"https://api.github.com/repos/redhat-developer/ocdev/pulls/144","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/redhat-developer/ocdev/pulls/comments/172176124"},"html":{"href":"https://github.com/redhat-developer/ocdev/pull/144#discussion_r172176124"},"pull_request":{"href":"https://api.github.com/repos/redhat-developer/ocdev/pulls/144"}},"in_reply_to_id":172161288},"pull_request":{"url":"https://api.github.com/repos/redhat-developer/ocdev/pulls/144","id":172815195,"html_url":"https://github.com/redhat-developer/ocdev/pull/144","diff_url":"https://github.com/redhat-developer/ocdev/pull/144.diff","patch_url":"https://github.com/redhat-developer/ocdev/pull/144.patch","issue_url":"https://api.github.com/repos/redhat-developer/ocdev/issues/144","number":144,"state":"open","locked":false,"title":"Add Getting Started guide","user":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars1.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"body":"This commit adds a Getting Started guide for making it easier for\nnew users to get onboarded. Also updates the references in\nREADME.md to point to the guide.","created_at":"2018-03-05T09:37:03Z","updated_at":"2018-03-05T12:51:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38ade7ce1a25819210094791b4fc36ee20a5b6c8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/redhat-developer/ocdev/pulls/144/commits","review_comments_url":"https://api.github.com/repos/redhat-developer/ocdev/pulls/144/comments","review_comment_url":"https://api.github.com/repos/redhat-developer/ocdev/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redhat-developer/ocdev/issues/144/comments","statuses_url":"https://api.github.com/repos/redhat-developer/ocdev/statuses/2d46ae38c0b4941f6db418e3ab278f85880c2d0a","head":{"label":"containscafeine:add-getting-started","ref":"add-getting-started","sha":"2d46ae38c0b4941f6db418e3ab278f85880c2d0a","user":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars1.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"repo":{"id":119363059,"name":"ocdev","full_name":"containscafeine/ocdev","owner":{"login":"containscafeine","id":9133660,"avatar_url":"https://avatars1.githubusercontent.com/u/9133660?v=4","gravatar_id":"","url":"https://api.github.com/users/containscafeine","html_url":"https://github.com/containscafeine","followers_url":"https://api.github.com/users/containscafeine/followers","following_url":"https://api.github.com/users/containscafeine/following{/other_user}","gists_url":"https://api.github.com/users/containscafeine/gists{/gist_id}","starred_url":"https://api.github.com/users/containscafeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/containscafeine/subscriptions","organizations_url":"https://api.github.com/users/containscafeine/orgs","repos_url":"https://api.github.com/users/containscafeine/repos","events_url":"https://api.github.com/users/containscafeine/events{/privacy}","received_events_url":"https://api.github.com/users/containscafeine/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/containscafeine/ocdev","description":"OpenShift Command line for Developers Goal","fork":true,"url":"https://api.github.com/repos/containscafeine/ocdev","forks_url":"https://api.github.com/repos/containscafeine/ocdev/forks","keys_url":"https://api.github.com/repos/containscafeine/ocdev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/containscafeine/ocdev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/containscafeine/ocdev/teams","hooks_url":"https://api.github.com/repos/containscafeine/ocdev/hooks","issue_events_url":"https://api.github.com/repos/containscafeine/ocdev/issues/events{/number}","events_url":"https://api.github.com/repos/containscafeine/ocdev/events","assignees_url":"https://api.github.com/repos/containscafeine/ocdev/assignees{/user}","branches_url":"https://api.github.com/repos/containscafeine/ocdev/branches{/branch}","tags_url":"https://api.github.com/repos/containscafeine/ocdev/tags","blobs_url":"https://api.github.com/repos/containscafeine/ocdev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/containscafeine/ocdev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/containscafeine/ocdev/git/refs{/sha}","trees_url":"https://api.github.com/repos/containscafeine/ocdev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/containscafeine/ocdev/statuses/{sha}","languages_url":"https://api.github.com/repos/containscafeine/ocdev/languages","stargazers_url":"https://api.github.com/repos/containscafeine/ocdev/stargazers","contributors_url":"https://api.github.com/repos/containscafeine/ocdev/contributors","subscribers_url":"https://api.github.com/repos/containscafeine/ocdev/subscribers","subscription_url":"https://api.github.com/repos/containscafeine/ocdev/subscription","commits_url":"https://api.github.com/repos/containscafeine/ocdev/commits{/sha}","git_commits_url":"https://api.github.com/repos/containscafeine/ocdev/git/commits{/sha}","comments_url":"https://api.github.com/repos/containscafeine/ocdev/comments{/number}","issue_comment_url":"https://api.github.com/repos/containscafeine/ocdev/issues/comments{/number}","contents_url":"https://api.github.com/repos/containscafeine/ocdev/contents/{+path}","compare_url":"https://api.github.com/repos/containscafeine/ocdev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/containscafeine/ocdev/merges","archive_url":"https://api.github.com/repos/containscafeine/ocdev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/containscafeine/ocdev/downloads","issues_url":"https://api.github.com/repos/containscafeine/ocdev/issues{/number}","pulls_url":"https://api.github.com/repos/containscafeine/ocdev/pulls{/number}","milestones_url":"https://api.github.com/repos/containscafeine/ocdev/milestones{/number}","notifications_url":"https://api.github.com/repos/containscafeine/ocdev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/containscafeine/ocdev/labels{/name}","releases_url":"https://api.github.com/repos/containscafeine/ocdev/releases{/id}","deployments_url":"https://api.github.com/repos/containscafeine/ocdev/deployments","created_at":"2018-01-29T09:44:00Z","updated_at":"2018-01-29T09:38:12Z","pushed_at":"2018-03-05T11:21:53Z","git_url":"git://github.com/containscafeine/ocdev.git","ssh_url":"git@github.com:containscafeine/ocdev.git","clone_url":"https://github.com/containscafeine/ocdev.git","svn_url":"https://github.com/containscafeine/ocdev","homepage":null,"size":1262,"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":"redhat-developer:master","ref":"master","sha":"c3f7295d00636995c153d5fcecb679afde135547","user":{"login":"redhat-developer","id":11033755,"avatar_url":"https://avatars0.githubusercontent.com/u/11033755?v=4","gravatar_id":"","url":"https://api.github.com/users/redhat-developer","html_url":"https://github.com/redhat-developer","followers_url":"https://api.github.com/users/redhat-developer/followers","following_url":"https://api.github.com/users/redhat-developer/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer/orgs","repos_url":"https://api.github.com/users/redhat-developer/repos","events_url":"https://api.github.com/users/redhat-developer/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer/received_events","type":"Organization","site_admin":false},"repo":{"id":118630356,"name":"ocdev","full_name":"redhat-developer/ocdev","owner":{"login":"redhat-developer","id":11033755,"avatar_url":"https://avatars0.githubusercontent.com/u/11033755?v=4","gravatar_id":"","url":"https://api.github.com/users/redhat-developer","html_url":"https://github.com/redhat-developer","followers_url":"https://api.github.com/users/redhat-developer/followers","following_url":"https://api.github.com/users/redhat-developer/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer/orgs","repos_url":"https://api.github.com/users/redhat-developer/repos","events_url":"https://api.github.com/users/redhat-developer/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redhat-developer/ocdev","description":"OpenShift Command line for Developers","fork":false,"url":"https://api.github.com/repos/redhat-developer/ocdev","forks_url":"https://api.github.com/repos/redhat-developer/ocdev/forks","keys_url":"https://api.github.com/repos/redhat-developer/ocdev/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redhat-developer/ocdev/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redhat-developer/ocdev/teams","hooks_url":"https://api.github.com/repos/redhat-developer/ocdev/hooks","issue_events_url":"https://api.github.com/repos/redhat-developer/ocdev/issues/events{/number}","events_url":"https://api.github.com/repos/redhat-developer/ocdev/events","assignees_url":"https://api.github.com/repos/redhat-developer/ocdev/assignees{/user}","branches_url":"https://api.github.com/repos/redhat-developer/ocdev/branches{/branch}","tags_url":"https://api.github.com/repos/redhat-developer/ocdev/tags","blobs_url":"https://api.github.com/repos/redhat-developer/ocdev/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redhat-developer/ocdev/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redhat-developer/ocdev/git/refs{/sha}","trees_url":"https://api.github.com/repos/redhat-developer/ocdev/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redhat-developer/ocdev/statuses/{sha}","languages_url":"https://api.github.com/repos/redhat-developer/ocdev/languages","stargazers_url":"https://api.github.com/repos/redhat-developer/ocdev/stargazers","contributors_url":"https://api.github.com/repos/redhat-developer/ocdev/contributors","subscribers_url":"https://api.github.com/repos/redhat-developer/ocdev/subscribers","subscription_url":"https://api.github.com/repos/redhat-developer/ocdev/subscription","commits_url":"https://api.github.com/repos/redhat-developer/ocdev/commits{/sha}","git_commits_url":"https://api.github.com/repos/redhat-developer/ocdev/git/commits{/sha}","comments_url":"https://api.github.com/repos/redhat-developer/ocdev/comments{/number}","issue_comment_url":"https://api.github.com/repos/redhat-developer/ocdev/issues/comments{/number}","contents_url":"https://api.github.com/repos/redhat-developer/ocdev/contents/{+path}","compare_url":"https://api.github.com/repos/redhat-developer/ocdev/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redhat-developer/ocdev/merges","archive_url":"https://api.github.com/repos/redhat-developer/ocdev/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redhat-developer/ocdev/downloads","issues_url":"https://api.github.com/repos/redhat-developer/ocdev/issues{/number}","pulls_url":"https://api.github.com/repos/redhat-developer/ocdev/pulls{/number}","milestones_url":"https://api.github.com/repos/redhat-developer/ocdev/milestones{/number}","notifications_url":"https://api.github.com/repos/redhat-developer/ocdev/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redhat-developer/ocdev/labels{/name}","releases_url":"https://api.github.com/repos/redhat-developer/ocdev/releases{/id}","deployments_url":"https://api.github.com/repos/redhat-developer/ocdev/deployments","created_at":"2018-01-23T15:36:17Z","updated_at":"2018-03-05T12:18:13Z","pushed_at":"2018-03-05T11:28:06Z","git_url":"git://github.com/redhat-developer/ocdev.git","ssh_url":"git@github.com:redhat-developer/ocdev.git","clone_url":"https://github.com/redhat-developer/ocdev.git","svn_url":"https://github.com/redhat-developer/ocdev","homepage":"","size":1269,"stargazers_count":10,"watchers_count":10,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":72,"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":10,"open_issues":72,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redhat-developer/ocdev/pulls/144"},"html":{"href":"https://github.com/redhat-developer/ocdev/pull/144"},"issue":{"href":"https://api.github.com/repos/redhat-developer/ocdev/issues/144"},"comments":{"href":"https://api.github.com/repos/redhat-developer/ocdev/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/redhat-developer/ocdev/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/redhat-developer/ocdev/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redhat-developer/ocdev/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/redhat-developer/ocdev/statuses/2d46ae38c0b4941f6db418e3ab278f85880c2d0a"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"containscafeine"}}