{"action":"created","comment":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/comments/75121076","id":75121076,"diff_hunk":"@@ -0,0 +1,244 @@\n+:sectnums:\n+= Batch Job on Cloud Foundry\n+\n+In this demonstration, you will learn how to orchestrate short-lived data processing application (_eg: Spring Batch Jobs_) using http://cloud.spring.io/spring-cloud-task/[Spring Cloud Task] and http://cloud.spring.io/spring-cloud-dataflow/[Spring Cloud Data Flow] on Cloud Foundry.\n+\n+== Using Cloud Foundry Server\n+\n+=== Prerequisites\n+\n+In order to get started, make sure that you have the following components:\n+\n+* Local https://pivotal.io/pcf-dev[PCFDev] instance \n+* Local install of https://github.com/cloudfoundry/v3-cli-plugin[V3-CF-CLI] plugin\n+* Local build of https://github.com/spring-cloud/spring-cloud-dataflow[Spring Cloud Data Flow]\n+* Local build of Spring Cloud Data Flow's https://github.com/spring-cloud/spring-cloud-dataflow-server-cloudfoundry[Cloud Foundry Server]\n+* Running instance of mysql in PCFDev\n+\n+NOTE: PCF 1.7.12 or greater is required to run Tasks on Spring Cloud Data Flow. As of this writing, PCFDev and PWS supports builds upon this version.\n+\n+=== Running the Sample in Cloud Foundry\n+\n+. Verify that CF instance is reachable\n++\n+\n+```\n+→ cf api\n+API endpoint: https://api.local.pcfdev.io (API version: 2.54.0)\n+\n+$ cf apps\n+Getting apps in org user-dataflow / space development as user...\n+OK\n+\n+No apps found\n+```\n++\n+. Follow the http://docs.spring.io/spring-cloud-dataflow-server-cloudfoundry/docs/current-SNAPSHOT/reference/htmlsingle/#getting-started[getting-started] instructions to deploy Spring Cloud Data Flow's Cloud Foundry Server\n+\n++\n+NOTE: For this sample, all you need is the `mysql` service and in PCFDev, the `mysql` service comes with a different plan. From CF CLI, create the service by: `cf create-service p-mysql 512mb mysql` and bind this service to `dataflow-server` by: `cf bind-service dataflow-server mysql`.","path":"tasks/simple-batch-job/README.adoc","position":39,"original_position":39,"commit_id":"5ce50faa56df3d61f655992f7ad6e1d46dad5bf3","original_commit_id":"5553f57c8fa4683068c38d562d1b12b2089fa716","user":{"login":"cppwfs","id":695673,"avatar_url":"https://avatars.githubusercontent.com/u/695673?v=3","gravatar_id":"","url":"https://api.github.com/users/cppwfs","html_url":"https://github.com/cppwfs","followers_url":"https://api.github.com/users/cppwfs/followers","following_url":"https://api.github.com/users/cppwfs/following{/other_user}","gists_url":"https://api.github.com/users/cppwfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cppwfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppwfs/subscriptions","organizations_url":"https://api.github.com/users/cppwfs/orgs","repos_url":"https://api.github.com/users/cppwfs/repos","events_url":"https://api.github.com/users/cppwfs/events{/privacy}","received_events_url":"https://api.github.com/users/cppwfs/received_events","type":"User","site_admin":false},"body":"oops :-)","created_at":"2016-08-17T13:26:18Z","updated_at":"2016-08-17T13:26:18Z","html_url":"https://github.com/spring-cloud/spring-cloud-dataflow-samples/pull/14#discussion_r75121076","pull_request_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/comments/75121076"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-dataflow-samples/pull/14#discussion_r75121076"},"pull_request":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/14","id":81263429,"html_url":"https://github.com/spring-cloud/spring-cloud-dataflow-samples/pull/14","diff_url":"https://github.com/spring-cloud/spring-cloud-dataflow-samples/pull/14.diff","patch_url":"https://github.com/spring-cloud/spring-cloud-dataflow-samples/pull/14.patch","issue_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/issues/14","number":14,"state":"open","locked":false,"title":"Add batch-job sample","user":{"login":"sabbyanandan","id":1562654,"avatar_url":"https://avatars.githubusercontent.com/u/1562654?v=3","gravatar_id":"","url":"https://api.github.com/users/sabbyanandan","html_url":"https://github.com/sabbyanandan","followers_url":"https://api.github.com/users/sabbyanandan/followers","following_url":"https://api.github.com/users/sabbyanandan/following{/other_user}","gists_url":"https://api.github.com/users/sabbyanandan/gists{/gist_id}","starred_url":"https://api.github.com/users/sabbyanandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabbyanandan/subscriptions","organizations_url":"https://api.github.com/users/sabbyanandan/orgs","repos_url":"https://api.github.com/users/sabbyanandan/repos","events_url":"https://api.github.com/users/sabbyanandan/events{/privacy}","received_events_url":"https://api.github.com/users/sabbyanandan/received_events","type":"User","site_admin":false},"body":"- add batch-job sample for SCDF's cloud foundry server\r\n- add sample application artifact for easy reference/reuse","created_at":"2016-08-15T02:21:54Z","updated_at":"2016-08-17T13:26:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2f74f61fc566494203e465b697d5317de5ca5804","assignee":{"login":"cppwfs","id":695673,"avatar_url":"https://avatars.githubusercontent.com/u/695673?v=3","gravatar_id":"","url":"https://api.github.com/users/cppwfs","html_url":"https://github.com/cppwfs","followers_url":"https://api.github.com/users/cppwfs/followers","following_url":"https://api.github.com/users/cppwfs/following{/other_user}","gists_url":"https://api.github.com/users/cppwfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cppwfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppwfs/subscriptions","organizations_url":"https://api.github.com/users/cppwfs/orgs","repos_url":"https://api.github.com/users/cppwfs/repos","events_url":"https://api.github.com/users/cppwfs/events{/privacy}","received_events_url":"https://api.github.com/users/cppwfs/received_events","type":"User","site_admin":false},"assignees":[{"login":"cppwfs","id":695673,"avatar_url":"https://avatars.githubusercontent.com/u/695673?v=3","gravatar_id":"","url":"https://api.github.com/users/cppwfs","html_url":"https://github.com/cppwfs","followers_url":"https://api.github.com/users/cppwfs/followers","following_url":"https://api.github.com/users/cppwfs/following{/other_user}","gists_url":"https://api.github.com/users/cppwfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cppwfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cppwfs/subscriptions","organizations_url":"https://api.github.com/users/cppwfs/orgs","repos_url":"https://api.github.com/users/cppwfs/repos","events_url":"https://api.github.com/users/cppwfs/events{/privacy}","received_events_url":"https://api.github.com/users/cppwfs/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/14/commits","review_comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/14/comments","review_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/issues/14/comments","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/statuses/5ce50faa56df3d61f655992f7ad6e1d46dad5bf3","head":{"label":"sabbyanandan:add-batch-sample","ref":"add-batch-sample","sha":"5ce50faa56df3d61f655992f7ad6e1d46dad5bf3","user":{"login":"sabbyanandan","id":1562654,"avatar_url":"https://avatars.githubusercontent.com/u/1562654?v=3","gravatar_id":"","url":"https://api.github.com/users/sabbyanandan","html_url":"https://github.com/sabbyanandan","followers_url":"https://api.github.com/users/sabbyanandan/followers","following_url":"https://api.github.com/users/sabbyanandan/following{/other_user}","gists_url":"https://api.github.com/users/sabbyanandan/gists{/gist_id}","starred_url":"https://api.github.com/users/sabbyanandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabbyanandan/subscriptions","organizations_url":"https://api.github.com/users/sabbyanandan/orgs","repos_url":"https://api.github.com/users/sabbyanandan/repos","events_url":"https://api.github.com/users/sabbyanandan/events{/privacy}","received_events_url":"https://api.github.com/users/sabbyanandan/received_events","type":"User","site_admin":false},"repo":{"id":47725939,"name":"spring-cloud-dataflow-samples","full_name":"sabbyanandan/spring-cloud-dataflow-samples","owner":{"login":"sabbyanandan","id":1562654,"avatar_url":"https://avatars.githubusercontent.com/u/1562654?v=3","gravatar_id":"","url":"https://api.github.com/users/sabbyanandan","html_url":"https://github.com/sabbyanandan","followers_url":"https://api.github.com/users/sabbyanandan/followers","following_url":"https://api.github.com/users/sabbyanandan/following{/other_user}","gists_url":"https://api.github.com/users/sabbyanandan/gists{/gist_id}","starred_url":"https://api.github.com/users/sabbyanandan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabbyanandan/subscriptions","organizations_url":"https://api.github.com/users/sabbyanandan/orgs","repos_url":"https://api.github.com/users/sabbyanandan/repos","events_url":"https://api.github.com/users/sabbyanandan/events{/privacy}","received_events_url":"https://api.github.com/users/sabbyanandan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sabbyanandan/spring-cloud-dataflow-samples","description":"","fork":true,"url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples","forks_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/forks","keys_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/teams","hooks_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/hooks","issue_events_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/issues/events{/number}","events_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/events","assignees_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/assignees{/user}","branches_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/branches{/branch}","tags_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/tags","blobs_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/languages","stargazers_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/stargazers","contributors_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/contributors","subscribers_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/subscribers","subscription_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/subscription","commits_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/contents/{+path}","compare_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/merges","archive_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/downloads","issues_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/issues{/number}","pulls_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/labels{/name}","releases_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/releases{/id}","deployments_url":"https://api.github.com/repos/sabbyanandan/spring-cloud-dataflow-samples/deployments","created_at":"2015-12-09T23:34:42Z","updated_at":"2016-03-24T17:43:23Z","pushed_at":"2016-08-17T13:01:05Z","git_url":"git://github.com/sabbyanandan/spring-cloud-dataflow-samples.git","ssh_url":"git@github.com:sabbyanandan/spring-cloud-dataflow-samples.git","clone_url":"https://github.com/sabbyanandan/spring-cloud-dataflow-samples.git","svn_url":"https://github.com/sabbyanandan/spring-cloud-dataflow-samples","homepage":null,"size":11086,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"spring-cloud:master","ref":"master","sha":"aa6aa70af9a924033fa304a7b7b2412ce45e8ac0","user":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":47708564,"name":"spring-cloud-dataflow-samples","full_name":"spring-cloud/spring-cloud-dataflow-samples","owner":{"login":"spring-cloud","id":7815877,"avatar_url":"https://avatars.githubusercontent.com/u/7815877?v=3","gravatar_id":"","url":"https://api.github.com/users/spring-cloud","html_url":"https://github.com/spring-cloud","followers_url":"https://api.github.com/users/spring-cloud/followers","following_url":"https://api.github.com/users/spring-cloud/following{/other_user}","gists_url":"https://api.github.com/users/spring-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/spring-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spring-cloud/subscriptions","organizations_url":"https://api.github.com/users/spring-cloud/orgs","repos_url":"https://api.github.com/users/spring-cloud/repos","events_url":"https://api.github.com/users/spring-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/spring-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spring-cloud/spring-cloud-dataflow-samples","description":"Sample starter applications and code for use with the Spring Cloud Data Flow project ","fork":false,"url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples","forks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/forks","keys_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/teams","hooks_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/hooks","issue_events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/issues/events{/number}","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/events","assignees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/assignees{/user}","branches_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/branches{/branch}","tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/tags","blobs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/git/refs{/sha}","trees_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/statuses/{sha}","languages_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/languages","stargazers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/stargazers","contributors_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/contributors","subscribers_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/subscribers","subscription_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/subscription","commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/commits{/sha}","git_commits_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/git/commits{/sha}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/comments{/number}","issue_comment_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/issues/comments{/number}","contents_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/contents/{+path}","compare_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/merges","archive_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/downloads","issues_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/issues{/number}","pulls_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls{/number}","milestones_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/milestones{/number}","notifications_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/labels{/name}","releases_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/releases{/id}","deployments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/deployments","created_at":"2015-12-09T17:48:43Z","updated_at":"2016-07-30T16:52:15Z","pushed_at":"2016-08-17T13:01:05Z","git_url":"git://github.com/spring-cloud/spring-cloud-dataflow-samples.git","ssh_url":"git@github.com:spring-cloud/spring-cloud-dataflow-samples.git","clone_url":"https://github.com/spring-cloud/spring-cloud-dataflow-samples.git","svn_url":"https://github.com/spring-cloud/spring-cloud-dataflow-samples","homepage":"http://cloud.spring.io/spring-cloud-dataflow/","size":563,"stargazers_count":17,"watchers_count":17,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":2,"forks":11,"open_issues":2,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/14"},"html":{"href":"https://github.com/spring-cloud/spring-cloud-dataflow-samples/pull/14"},"issue":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/issues/14"},"comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/spring-cloud/spring-cloud-dataflow-samples/statuses/5ce50faa56df3d61f655992f7ad6e1d46dad5bf3"}}}}
{"actor":{"display_login":"cppwfs"}}