{"action":"created","comment":{"url":"https://api.github.com/repos/getcarina/getcarina.com/pulls/comments/65606110","id":65606110,"diff_hunk":"@@ -0,0 +1,267 @@\n+---\r\n+layout: post\r\n+title: \"Simple SaaS with jclouds and Carina\"\r\n+date: 2016-05-26 08:00\r\n+comments: false\r\n+author: Zack Shoylev\r\n+published: false\r\n+categories:\r\n+    - jclouds\r\n+    - saas\r\n+    - docker\r\n+    - api\r\n+    - sdk\r\n+---\r\n+\r\n+Traditionally, attempting to create and monetize an online software solution has been a difficult process. With Docker and Carina, it has become much easier to setup Software as a Service solutions online. This tutorial will provide an example of a Tomcat application that directly controls Carina using the Docker API to instantly start up user-specific software services on demand. \r\n+\r\n+<!-- more -->\r\n+\r\n+### Prerequisites\r\n+\r\n+You will need a set of tools to be able to follow along.\r\n+\r\n+1. [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)\r\n+2. Java\r\n+3. [maven](https://maven.apache.org/install.html)\r\n+4. A [Carina](https://getcarina.com/) account\r\n+5. Docker CLI; [Docker Version Manager](https://github.com/getcarina/dvm) recommended\r\n+\r\n+### Goal\r\n+\r\n+The purpose of this tutorial is to deploy an example Tomcat web application that can, on demand, provide a [Mumble](https://wiki.mumble.info/wiki/Main_Page) server to a user online. Mumble is a server/client VOIP telecommunication application.\r\n+\r\n+![Mumble]({% asset_path 2016-05-26-simple-saas-with-jclouds-and-carina/mumble_client.png %})\r\n+\r\n+### Credentials Setup\r\n+\r\n+Using git, get the source code for this tutorial:\r\n+\r\n+``` \r\n+$ git clone https://github.com/getcarina/examples.git\r\n+```\r\n+\r\n+Log into Carina at getcarina.com. Download your access file.\r\n+\r\n+![Carina Access]({% asset_path 2016-05-26-simple-saas-with-jclouds-and-carina/carina_access.png %})\r\n+\r\n+Extract the contents of your access file into the directory `access` within the cloned repo. The example web application will parse the extracted files to connect to your Carina account and start/stop Mumble containers on demand.\r\n+\r\n+### Project Setup\r\n+\r\n+This tutorial will use maven to handle building, packaging, and dependencies, as defined in the `pom.xml` file.\r","path":"_tutorials/2016-05-26-simple-saas-with-jclouds-and-carina.md","position":52,"original_position":52,"commit_id":"bd69c3c80356eef9d83c87244669de2855cdac17","original_commit_id":"bd69c3c80356eef9d83c87244669de2855cdac17","user":{"login":"everett-toews","id":634901,"avatar_url":"https://avatars.githubusercontent.com/u/634901?v=3","gravatar_id":"","url":"https://api.github.com/users/everett-toews","html_url":"https://github.com/everett-toews","followers_url":"https://api.github.com/users/everett-toews/followers","following_url":"https://api.github.com/users/everett-toews/following{/other_user}","gists_url":"https://api.github.com/users/everett-toews/gists{/gist_id}","starred_url":"https://api.github.com/users/everett-toews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everett-toews/subscriptions","organizations_url":"https://api.github.com/users/everett-toews/orgs","repos_url":"https://api.github.com/users/everett-toews/repos","events_url":"https://api.github.com/users/everett-toews/events{/privacy}","received_events_url":"https://api.github.com/users/everett-toews/received_events","type":"User","site_admin":false},"body":"Is the user supposed to create this `pom.xml` file? Is it part of the example repo?\r\n\r\n\r\n\r\n","created_at":"2016-06-02T19:48:26Z","updated_at":"2016-06-02T19:48:26Z","html_url":"https://github.com/getcarina/getcarina.com/pull/865#discussion_r65606110","pull_request_url":"https://api.github.com/repos/getcarina/getcarina.com/pulls/865","_links":{"self":{"href":"https://api.github.com/repos/getcarina/getcarina.com/pulls/comments/65606110"},"html":{"href":"https://github.com/getcarina/getcarina.com/pull/865#discussion_r65606110"},"pull_request":{"href":"https://api.github.com/repos/getcarina/getcarina.com/pulls/865"}}},"pull_request":{"url":"https://api.github.com/repos/getcarina/getcarina.com/pulls/865","id":72401582,"html_url":"https://github.com/getcarina/getcarina.com/pull/865","diff_url":"https://github.com/getcarina/getcarina.com/pull/865.diff","patch_url":"https://github.com/getcarina/getcarina.com/pull/865.patch","issue_url":"https://api.github.com/repos/getcarina/getcarina.com/issues/865","number":865,"state":"open","locked":false,"title":"Tutorial on how to use jclouds with Tomcat and Carina and do SaaS","user":{"login":"zack-shoylev","id":3600302,"avatar_url":"https://avatars.githubusercontent.com/u/3600302?v=3","gravatar_id":"","url":"https://api.github.com/users/zack-shoylev","html_url":"https://github.com/zack-shoylev","followers_url":"https://api.github.com/users/zack-shoylev/followers","following_url":"https://api.github.com/users/zack-shoylev/following{/other_user}","gists_url":"https://api.github.com/users/zack-shoylev/gists{/gist_id}","starred_url":"https://api.github.com/users/zack-shoylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zack-shoylev/subscriptions","organizations_url":"https://api.github.com/users/zack-shoylev/orgs","repos_url":"https://api.github.com/users/zack-shoylev/repos","events_url":"https://api.github.com/users/zack-shoylev/events{/privacy}","received_events_url":"https://api.github.com/users/zack-shoylev/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-02T19:16:03Z","updated_at":"2016-06-02T19:48:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5954473b1bd6da5dcd57ec41a671818e857284d6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getcarina/getcarina.com/pulls/865/commits","review_comments_url":"https://api.github.com/repos/getcarina/getcarina.com/pulls/865/comments","review_comment_url":"https://api.github.com/repos/getcarina/getcarina.com/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getcarina/getcarina.com/issues/865/comments","statuses_url":"https://api.github.com/repos/getcarina/getcarina.com/statuses/bd69c3c80356eef9d83c87244669de2855cdac17","head":{"label":"zack-shoylev:jclouds-carina-saas","ref":"jclouds-carina-saas","sha":"bd69c3c80356eef9d83c87244669de2855cdac17","user":{"login":"zack-shoylev","id":3600302,"avatar_url":"https://avatars.githubusercontent.com/u/3600302?v=3","gravatar_id":"","url":"https://api.github.com/users/zack-shoylev","html_url":"https://github.com/zack-shoylev","followers_url":"https://api.github.com/users/zack-shoylev/followers","following_url":"https://api.github.com/users/zack-shoylev/following{/other_user}","gists_url":"https://api.github.com/users/zack-shoylev/gists{/gist_id}","starred_url":"https://api.github.com/users/zack-shoylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zack-shoylev/subscriptions","organizations_url":"https://api.github.com/users/zack-shoylev/orgs","repos_url":"https://api.github.com/users/zack-shoylev/repos","events_url":"https://api.github.com/users/zack-shoylev/events{/privacy}","received_events_url":"https://api.github.com/users/zack-shoylev/received_events","type":"User","site_admin":false},"repo":{"id":49985640,"name":"getcarina.com","full_name":"zack-shoylev/getcarina.com","owner":{"login":"zack-shoylev","id":3600302,"avatar_url":"https://avatars.githubusercontent.com/u/3600302?v=3","gravatar_id":"","url":"https://api.github.com/users/zack-shoylev","html_url":"https://github.com/zack-shoylev","followers_url":"https://api.github.com/users/zack-shoylev/followers","following_url":"https://api.github.com/users/zack-shoylev/following{/other_user}","gists_url":"https://api.github.com/users/zack-shoylev/gists{/gist_id}","starred_url":"https://api.github.com/users/zack-shoylev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zack-shoylev/subscriptions","organizations_url":"https://api.github.com/users/zack-shoylev/orgs","repos_url":"https://api.github.com/users/zack-shoylev/repos","events_url":"https://api.github.com/users/zack-shoylev/events{/privacy}","received_events_url":"https://api.github.com/users/zack-shoylev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zack-shoylev/getcarina.com","description":"The Carina website","fork":true,"url":"https://api.github.com/repos/zack-shoylev/getcarina.com","forks_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/forks","keys_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/teams","hooks_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/hooks","issue_events_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/issues/events{/number}","events_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/events","assignees_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/assignees{/user}","branches_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/branches{/branch}","tags_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/tags","blobs_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/statuses/{sha}","languages_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/languages","stargazers_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/stargazers","contributors_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/contributors","subscribers_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/subscribers","subscription_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/subscription","commits_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/contents/{+path}","compare_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/merges","archive_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/downloads","issues_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/issues{/number}","pulls_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/pulls{/number}","milestones_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/milestones{/number}","notifications_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/labels{/name}","releases_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/releases{/id}","deployments_url":"https://api.github.com/repos/zack-shoylev/getcarina.com/deployments","created_at":"2016-01-19T21:51:40Z","updated_at":"2016-01-19T21:51:41Z","pushed_at":"2016-06-02T19:31:08Z","git_url":"git://github.com/zack-shoylev/getcarina.com.git","ssh_url":"git@github.com:zack-shoylev/getcarina.com.git","clone_url":"https://github.com/zack-shoylev/getcarina.com.git","svn_url":"https://github.com/zack-shoylev/getcarina.com","homepage":"https://getcarina.com/","size":49050,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"getcarina:master","ref":"master","sha":"7e656ff93c44c7a638011ce6461051a0232f226b","user":{"login":"getcarina","id":15111063,"avatar_url":"https://avatars.githubusercontent.com/u/15111063?v=3","gravatar_id":"","url":"https://api.github.com/users/getcarina","html_url":"https://github.com/getcarina","followers_url":"https://api.github.com/users/getcarina/followers","following_url":"https://api.github.com/users/getcarina/following{/other_user}","gists_url":"https://api.github.com/users/getcarina/gists{/gist_id}","starred_url":"https://api.github.com/users/getcarina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getcarina/subscriptions","organizations_url":"https://api.github.com/users/getcarina/orgs","repos_url":"https://api.github.com/users/getcarina/repos","events_url":"https://api.github.com/users/getcarina/events{/privacy}","received_events_url":"https://api.github.com/users/getcarina/received_events","type":"Organization","site_admin":false},"repo":{"id":41817203,"name":"getcarina.com","full_name":"getcarina/getcarina.com","owner":{"login":"getcarina","id":15111063,"avatar_url":"https://avatars.githubusercontent.com/u/15111063?v=3","gravatar_id":"","url":"https://api.github.com/users/getcarina","html_url":"https://github.com/getcarina","followers_url":"https://api.github.com/users/getcarina/followers","following_url":"https://api.github.com/users/getcarina/following{/other_user}","gists_url":"https://api.github.com/users/getcarina/gists{/gist_id}","starred_url":"https://api.github.com/users/getcarina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getcarina/subscriptions","organizations_url":"https://api.github.com/users/getcarina/orgs","repos_url":"https://api.github.com/users/getcarina/repos","events_url":"https://api.github.com/users/getcarina/events{/privacy}","received_events_url":"https://api.github.com/users/getcarina/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getcarina/getcarina.com","description":"The Carina website","fork":false,"url":"https://api.github.com/repos/getcarina/getcarina.com","forks_url":"https://api.github.com/repos/getcarina/getcarina.com/forks","keys_url":"https://api.github.com/repos/getcarina/getcarina.com/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getcarina/getcarina.com/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getcarina/getcarina.com/teams","hooks_url":"https://api.github.com/repos/getcarina/getcarina.com/hooks","issue_events_url":"https://api.github.com/repos/getcarina/getcarina.com/issues/events{/number}","events_url":"https://api.github.com/repos/getcarina/getcarina.com/events","assignees_url":"https://api.github.com/repos/getcarina/getcarina.com/assignees{/user}","branches_url":"https://api.github.com/repos/getcarina/getcarina.com/branches{/branch}","tags_url":"https://api.github.com/repos/getcarina/getcarina.com/tags","blobs_url":"https://api.github.com/repos/getcarina/getcarina.com/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getcarina/getcarina.com/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getcarina/getcarina.com/git/refs{/sha}","trees_url":"https://api.github.com/repos/getcarina/getcarina.com/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getcarina/getcarina.com/statuses/{sha}","languages_url":"https://api.github.com/repos/getcarina/getcarina.com/languages","stargazers_url":"https://api.github.com/repos/getcarina/getcarina.com/stargazers","contributors_url":"https://api.github.com/repos/getcarina/getcarina.com/contributors","subscribers_url":"https://api.github.com/repos/getcarina/getcarina.com/subscribers","subscription_url":"https://api.github.com/repos/getcarina/getcarina.com/subscription","commits_url":"https://api.github.com/repos/getcarina/getcarina.com/commits{/sha}","git_commits_url":"https://api.github.com/repos/getcarina/getcarina.com/git/commits{/sha}","comments_url":"https://api.github.com/repos/getcarina/getcarina.com/comments{/number}","issue_comment_url":"https://api.github.com/repos/getcarina/getcarina.com/issues/comments{/number}","contents_url":"https://api.github.com/repos/getcarina/getcarina.com/contents/{+path}","compare_url":"https://api.github.com/repos/getcarina/getcarina.com/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getcarina/getcarina.com/merges","archive_url":"https://api.github.com/repos/getcarina/getcarina.com/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getcarina/getcarina.com/downloads","issues_url":"https://api.github.com/repos/getcarina/getcarina.com/issues{/number}","pulls_url":"https://api.github.com/repos/getcarina/getcarina.com/pulls{/number}","milestones_url":"https://api.github.com/repos/getcarina/getcarina.com/milestones{/number}","notifications_url":"https://api.github.com/repos/getcarina/getcarina.com/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getcarina/getcarina.com/labels{/name}","releases_url":"https://api.github.com/repos/getcarina/getcarina.com/releases{/id}","deployments_url":"https://api.github.com/repos/getcarina/getcarina.com/deployments","created_at":"2015-09-02T17:53:02Z","updated_at":"2016-05-30T11:39:02Z","pushed_at":"2016-06-02T19:31:09Z","git_url":"git://github.com/getcarina/getcarina.com.git","ssh_url":"git@github.com:getcarina/getcarina.com.git","clone_url":"https://github.com/getcarina/getcarina.com.git","svn_url":"https://github.com/getcarina/getcarina.com","homepage":"https://getcarina.com/","size":49160,"stargazers_count":19,"watchers_count":19,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":68,"forks":47,"open_issues":68,"watchers":19,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getcarina/getcarina.com/pulls/865"},"html":{"href":"https://github.com/getcarina/getcarina.com/pull/865"},"issue":{"href":"https://api.github.com/repos/getcarina/getcarina.com/issues/865"},"comments":{"href":"https://api.github.com/repos/getcarina/getcarina.com/issues/865/comments"},"review_comments":{"href":"https://api.github.com/repos/getcarina/getcarina.com/pulls/865/comments"},"review_comment":{"href":"https://api.github.com/repos/getcarina/getcarina.com/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getcarina/getcarina.com/pulls/865/commits"},"statuses":{"href":"https://api.github.com/repos/getcarina/getcarina.com/statuses/bd69c3c80356eef9d83c87244669de2855cdac17"}}}}
{"actor":{"display_login":"everett-toews"}}