<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sizlopedia &#187; browser</title>
	<atom:link href="http://sizlopedia.in/category/etc/browser/feed/" rel="self" type="application/rss+xml" />
	<link>http://sizlopedia.in</link>
	<description>Web Tips &#124; Technology &#124; Blogging &#124; Webhosting &#124; SEO</description>
	<lastBuildDate>Sat, 19 May 2012 03:02:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ownCloud in the App Store: How to Stackato-ize a PHP cloud app</title>
		<link>http://sizlopedia.in/2012/05/19/owncloud-in-the-app-store-how-to-stackato-ize-a-php-cloud-app-2/</link>
		<comments>http://sizlopedia.in/2012/05/19/owncloud-in-the-app-store-how-to-stackato-ize-a-php-cloud-app-2/#comments</comments>
		<pubDate>Sat, 19 May 2012 03:02:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/05/19/owncloud-in-the-app-store-how-to-stackato-ize-a-php-cloud-app-2/</guid>
		<description><![CDATA[Don&#8217;t get me wrong, I love Dropbox. They offer free storage, handy cross-platform sync clients, give out nice t-shirts at conferences, and have delivered a much needed service with a great user experience. But a little while ago a friend of mine posted a plea to her Facebook feed which went something like this: OK [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="ownCloud on Stackato" style="width: 160px" src="http://www.activestate.com/sites/default/files/blog_import_images/ownCloud_logo_square.png" class="as_feature_img as_left" /></p>
<p>Don&#8217;t get me wrong, I <em>love</em> Dropbox. They offer free storage, handy cross-platform sync clients, give out nice t-shirts at conferences, and have delivered a much needed service with a great user experience.</p>
<p>But a little while ago a friend of mine posted a plea to her Facebook feed which went something like this:</p>
<blockquote><p>
OK techie friends &#8211; Apparently I can&#8217;t have Dropbox installed on my work computer [at a hospital in Canada] because of security concerns that the data are stored on US servers. How are the rest of you dealing with this? Is there other similar software out there without this problem? I need a way to access files from multiple computers, and to share some files easily with coworkers. Argh.
</p></blockquote>
<p>Since I&#8217;ve been working on <a title="Stackato: Any Language. Any Stack. Any Cloud." target="_new" href="http://www.activestate.com/stackato">Stackato</a>, and immersed in data <a title="USA Patriot Act and Data Privacy Concerns for the Cloud" target="_new" href="http://www.activestate.com/blog/2012/02/whitepaper-usa-patriot-act-and-data-privacy-concerns-cloud">governance and ownership issues</a> for the last several months, I duly responded with:</p>
<blockquote><p>
&#8230;the hospital is right: potentially confidential patient/research information does not belong on servers within the reach of the USA Patriot Act, where it can be accessed by authorities without notification to the data owner(s). The hospital IT department should set up a <a title="4 Ways to Roll Your Own Dropbox Alternative" target="_new" href="http://www.readwriteweb.com/cloud/2011/05/4-ways-to-build-your-own-dropbox.php">self-hosted solution</a>.
</p></blockquote>
<p>When I posted the link, I noticed that one of the solutions listed was a name I had seen before at cloud computing conferences. <a title="ownCloud" target="_new" href="http://owncloud.org/">ownCloud</a> is &#8220;a flexible, open source file sync and share solution&#8221; &#8211; essentially a Dropbox you can run yourself. The software, and <a title="ownCloud: Your Cloud, Your Data, Your Way!" target="_new" href="https://owncloud.com/">the company behind it</a>, aim to address the same data privacy issues at the application level that Stackato does at the platform level. If you have concerns about data security and ownership, or are legally mandated to keep your data private and secure, you should not farm it out to a third party in the cloud.</p>
<p>This looked like a perfect match to me, so I thought I&#8217;d try running ownCloud on Stackato.</p>
<p><strong>It was incredibly easy to do</strong>. In fact, we had it in the App Store within a few hours, and it makes a perfect &#8220;how to&#8221; on getting a PHP application running on Stackato and making it available the Stackato App Store.</p>
<h2>Running ownCloud on Stackato</h2>
<p>Right now, you can install ownCloud on a <a target="_new" href="http://www.activestate.com/stackato/download_vm">Stackato VM</a> or on our <a target="_new" href="http://www.activestate.com/stackato/sandbox">Sandbox</a> with a couple of clicks, but we&#8217;ll start from scratch so we can see how it all works together.</p>
<p>Assuming you already have access to a Stackato PaaS or VM, we&#8217;ll start with getting the ownCloud code. I started with the latest stable release available on the ownCloud <a target="_new" href="http://owncloud.org/install/">Install page</a>.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/owncloud-screenshot.png"><br />
     <img alt="ownCloud Web Interface" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/owncloud-screenshot.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Using Stackato, you can skip a lot of these instructions. In fact, you <em>could</em> just do a &#8216;stackato push &#8230;&#8217; from the top directory of the extracted files, answer the prompts, and it would (sort of) work. However, it would end up using an SQLite database and filesystem which is local to the application instance and ephemeral.</p>
<p>We don&#8217;t want that. We want something that will scale, so let&#8217;s &#8220;Stackato-ize&#8221; it.</p>
<h2>Setting up the MySQL data service</h2>
<p>Stackato can provide a MySQL (or Postgres, or MongoDB, or Redis) database service for any application you push. We need to give the application access to the credentials for that database. You&#8217;ll find a file called <em>config.sample.php</em> in the <em>config</em> directory which shows the options you can set. After a bit of searching in the ownCloud mailing lists, I discovered you can use an <em>autoconfig.php</em> instead to set these options in a &#8220;headless&#8221; install.</p>
<p>Borrowing bits of code from the <a target="_new" href="https://github.com/Stackato-Apps/wordpress">WordPress</a> and <a target="_new" href="https://github.com/Stackato-Apps/drupal">Drupal</a> samples, I came up with something like this:</p>
<pre>
  &lt;?php
  $services = getenv("VCAP_SERVICES");
  $services_json = json_decode($services,true);
  $mysql_config = $services_json["mysql-5.1"][0]["credentials"];

  $AUTOCONFIG = array(
  "installed" =&gt; false,
  "adminlogin" =&gt; "admin",
  "adminpass" =&gt; "changeme",
  "directory" =&gt; "/app/app/data",
  "dbtype" =&gt; "mysql",
  "dbname" =&gt; $mysql_config["name"],
  "dbuser" =&gt; $mysql_config["user"],
  "dbpass" =&gt; $mysql_config["password"],
  "dbhost" =&gt; $mysql_config["hostname"],
  "dbtableprefix" =&gt; "oc_"
  );
  ?&gt;
</pre>
<p>We parse the VCAP_SERVICES environment variable (a JSON object) for the credentials we need to set up and use the database. The database service will be created when we push the app, and VCAP_SERVICES will be available to the application when it runs. For the moment, I&#8217;ve hard-coded the admin username and password.</p>
<p>The &#8220;directory&#8221; option specifies where all of the user files will be stored. We need to set this up to use Stackato&#8217;s persistent filesystem so that multiple application instances all store the files in the same place.</p>
<h2>Sharing a file system</h2>
<p>Let&#8217;s look at the other important config file for this app: <em>stackato.yml</em>. We could set up the services interactively during &#8216;stackato push &#8230;&#8217; but this config file makes the process repeatable. It&#8217;s also the only place we can set an important &#8220;pre-running&#8221; hook:</p>
<pre>
name: owncloud
framework:
  type: php
  runtime: php
mem: 128M
services:
  owncloud-mysql: mysql
  owncloud-fs: filesystem
/
hooks:
  pre-running:
    - ln -s $STACKATO_FILESYSTEM data
</pre>
<p>Here we specify the default application name, the framework and runtime, the amount of memory (for each instance), and two services. </p>
<p>In the &#8220;hooks&#8221; section, we specify commands that will be run before the application is launched. In this case, we&#8217;re linking the mount point of the filesystem service to a directory in the application tree called &#8216;data&#8217;. The full path of this link is &#8216;/app/app/data&#8217; which is what we specified in <em>autoconfig.php</em> earlier.</p>
<p>With these two files, you can push ownCloud to Stackato and scale up the number of application instances as needed. By default, the filesystem service limits each service to only 100MB and you&#8217;ll want <em>much</em> more to properly run ownCloud with lots of users. A Stackato administrator (in the micro cloud case, you) can change this default in <em>~/stackato/etc/vcap/filesystem_gateway.yml</em>.</p>
<h2>To the App Store!</h2>
<p>That might be all you need, but bear with me, there&#8217;s a way we can set up Stackato to install ownCloud with a couple of clicks from the Management Console.</p>
<p>The Stackato App Store pulls applications from a public Git repository and deploys them to Stackato using options specified in a JSON descriptor for the application (similar to the <em>stackato.yml</em> file). The App Store uses the same API as the client for deploying applications, but as there&#8217;s very little interaction (usually just one click to install, another to start). This is covered in more detail in <a target="_new" href="http://www.activestate.com/blog/2012/05/new-stackato-app-store">Ingy&#8217;s App Store post</a> from last week, and in the <a target="_new" href="https://github.com/ActiveState/stackato-app-store/blob/master/doc/store-format.md">stackato-app-store documentation</a>. The &#8220;<a target="_new" href="http://get.stackato.com/store/1.2/third-party-apps.json">Third Party Apps</a>&#8221; store file is a good example of the store JSON format and shows a number of applications, including ownCloud.</p>
<h2>Bonus points</h2>
<p>The <em>autoconfig.php</em> I used for the App Store copy is <a target="_blank" href="https://github.com/Stackato-Apps/owncloud/blob/master/config/autoconfig.php">not quite what I&#8217;ve show above</a>. I hate hard-coding usernames and passwords for the initial admin account, but there&#8217;s often no other way when you&#8217;re pushing a pre-configured app from the app store. I thought for ownCloud I could at <em>least</em> take the Stackato system user name or group name in the same way that database credentials are harvested from VCAP_SERVICES. Please excuse my rudimentary PHP. There are probably more elegant ways to do this:</p>
<pre>
&lt;?php
$services = getenv("VCAP_SERVICES");
$appinfo = getenv("VCAP_APPLICATION");
$services_json = json_decode($services,true);
$appinfo_json = json_decode($appinfo,true);
$mysql_config = $services_json["mysql-5.1"][0]["credentials"];
if (array_key_exists("users", $appinfo_json))
  $admin = $appinfo_json["users"][0];
else
  $admin = $appinfo_json["group"];

$AUTOCONFIG = array(
"installed" =&gt; false,
"adminlogin" =&gt; $admin,
"adminpass" =&gt; "changeme",
...
</pre>
<p>Though the password is still hard-coded to &#8220;changeme&#8221;, at least the username is unique to the person or group deploying the application. If you&#8217;re more paranoid, you could re-use the <code>$mysql_config["password"]</code> string for <code>"adminpass"</code>.</p>
<p>This might fall into the category of &#8220;Stupid Stackato Tricks&#8221; but you might find ways to use different environment variables (which can be set in <em>stackato.yml</em>) elsewhere in your application.</p>
<h2>Building a Stackato App Store ecosystem</h2>
<p>The current ownCloud sample in the App Store is pulled from <a target="_new" href="https://github.com/Stackato-Apps/owncloud">a Github repo</a> which just contains a copy of the 3.0.2 stable release, but since the store can use a specific branch and commit for the pull, it could instead be pulled from a &#8220;stackato&#8217; branch of the canonical <a target="_blank" href="https://gitorious.org/owncloud/owncloud">ownCloud repo</a> itself.</p>
<p>Doing it this way allows web application authors and maintainers to easily expose a current, stable version of their app to the Stackato App Store. If you&#8217;d like us to feature your app in Stackato, send us the details!</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3410</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/10J9zBP-uQc" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/05/19/owncloud-in-the-app-store-how-to-stackato-ize-a-php-cloud-app-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ownCloud in the App Store: How to Stackato-ize a PHP cloud app</title>
		<link>http://sizlopedia.in/2012/05/19/owncloud-in-the-app-store-how-to-stackato-ize-a-php-cloud-app/</link>
		<comments>http://sizlopedia.in/2012/05/19/owncloud-in-the-app-store-how-to-stackato-ize-a-php-cloud-app/#comments</comments>
		<pubDate>Sat, 19 May 2012 03:02:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/05/19/owncloud-in-the-app-store-how-to-stackato-ize-a-php-cloud-app/</guid>
		<description><![CDATA[Don&#8217;t get me wrong, I love Dropbox. They offer free storage, handy cross-platform sync clients, give out nice t-shirts at conferences, and have delivered a much needed service with a great user experience. But a little while ago a friend of mine posted a plea to her Facebook feed which went something like this: OK [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="ownCloud on Stackato" style="width: 160px" src="http://www.activestate.com/sites/default/files/blog_import_images/ownCloud_logo_square.png" class="as_feature_img as_left" /></p>
<p>Don&#8217;t get me wrong, I <em>love</em> Dropbox. They offer free storage, handy cross-platform sync clients, give out nice t-shirts at conferences, and have delivered a much needed service with a great user experience.</p>
<p>But a little while ago a friend of mine posted a plea to her Facebook feed which went something like this:</p>
<blockquote><p>
OK techie friends &#8211; Apparently I can&#8217;t have Dropbox installed on my work computer [at a hospital in Canada] because of security concerns that the data are stored on US servers. How are the rest of you dealing with this? Is there other similar software out there without this problem? I need a way to access files from multiple computers, and to share some files easily with coworkers. Argh.
</p></blockquote>
<p>Since I&#8217;ve been working on <a title="Stackato: Any Language. Any Stack. Any Cloud." target="_new" href="http://www.activestate.com/stackato">Stackato</a>, and immersed in data <a title="USA Patriot Act and Data Privacy Concerns for the Cloud" target="_new" href="http://www.activestate.com/blog/2012/02/whitepaper-usa-patriot-act-and-data-privacy-concerns-cloud">governance and ownership issues</a> for the last several months, I duly responded with:</p>
<blockquote><p>
&#8230;the hospital is right: potentially confidential patient/research information does not belong on servers within the reach of the USA Patriot Act, where it can be accessed by authorities without notification to the data owner(s). The hospital IT department should set up a <a title="4 Ways to Roll Your Own Dropbox Alternative" target="_new" href="http://www.readwriteweb.com/cloud/2011/05/4-ways-to-build-your-own-dropbox.php">self-hosted solution</a>.
</p></blockquote>
<p>When I posted the link, I noticed that one of the solutions listed was a name I had seen before at cloud computing conferences. <a title="ownCloud" target="_new" href="http://owncloud.org/">ownCloud</a> is &#8220;a flexible, open source file sync and share solution&#8221; &#8211; essentially a Dropbox you can run yourself. The software, and <a title="ownCloud: Your Cloud, Your Data, Your Way!" target="_new" href="https://owncloud.com/">the company behind it</a>, aim to address the same data privacy issues at the application level that Stackato does at the platform level. If you have concerns about data security and ownership, or are legally mandated to keep your data private and secure, you should not farm it out to a third party in the cloud.</p>
<p>This looked like a perfect match to me, so I thought I&#8217;d try running ownCloud on Stackato.</p>
<p><strong>It was incredibly easy to do</strong>. In fact, we had it in the App Store within a few hours, and it makes a perfect &#8220;how to&#8221; on getting a PHP application running on Stackato and making it available the Stackato App Store.</p>
<h2>Running ownCloud on Stackato</h2>
<p>Right now, you can install ownCloud on a <a target="_new" href="http://www.activestate.com/stackato/download_vm">Stackato VM</a> or on our <a target="_new" href="http://www.activestate.com/stackato/sandbox">Sandbox</a> with a couple of clicks, but we&#8217;ll start from scratch so we can see how it all works together.</p>
<p>Assuming you already have access to a Stackato PaaS or VM, we&#8217;ll start with getting the ownCloud code. I started with the latest stable release available on the ownCloud <a target="_new" href="http://owncloud.org/install/">Install page</a>.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/owncloud-screenshot.png"><br />
     <img alt="ownCloud Web Interface" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/owncloud-screenshot.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Using Stackato, you can skip a lot of these instructions. In fact, you <em>could</em> just do a &#8216;stackato push &#8230;&#8217; from the top directory of the extracted files, answer the prompts, and it would (sort of) work. However, it would end up using an SQLite database and filesystem which is local to the application instance and ephemeral.</p>
<p>We don&#8217;t want that. We want something that will scale, so let&#8217;s &#8220;Stackato-ize&#8221; it.</p>
<h2>Setting up the MySQL data service</h2>
<p>Stackato can provide a MySQL (or Postgres, or MongoDB, or Redis) database service for any application you push. We need to give the application access to the credentials for that database. You&#8217;ll find a file called <em>config.sample.php</em> in the <em>config</em> directory which shows the options you can set. After a bit of searching in the ownCloud mailing lists, I discovered you can use an <em>autoconfig.php</em> instead to set these options in a &#8220;headless&#8221; install.</p>
<p>Borrowing bits of code from the <a target="_new" href="https://github.com/Stackato-Apps/wordpress">WordPress</a> and <a target="_new" href="https://github.com/Stackato-Apps/drupal">Drupal</a> samples, I came up with something like this:</p>
<pre>
  &lt;?php
  $services = getenv("VCAP_SERVICES");
  $services_json = json_decode($services,true);
  $mysql_config = $services_json["mysql-5.1"][0]["credentials"];

  $AUTOCONFIG = array(
  "installed" =&gt; false,
  "adminlogin" =&gt; "admin",
  "adminpass" =&gt; "changeme",
  "directory" =&gt; "/app/app/data",
  "dbtype" =&gt; "mysql",
  "dbname" =&gt; $mysql_config["name"],
  "dbuser" =&gt; $mysql_config["user"],
  "dbpass" =&gt; $mysql_config["password"],
  "dbhost" =&gt; $mysql_config["hostname"],
  "dbtableprefix" =&gt; "oc_"
  );
  ?&gt;
</pre>
<p>We parse the VCAP_SERVICES environment variable (a JSON object) for the credentials we need to set up and use the database. The database service will be created when we push the app, and VCAP_SERVICES will be available to the application when it runs. For the moment, I&#8217;ve hard-coded the admin username and password.</p>
<p>The &#8220;directory&#8221; option specifies where all of the user files will be stored. We need to set this up to use Stackato&#8217;s persistent filesystem so that multiple application instances all store the files in the same place.</p>
<h2>Sharing a file system</h2>
<p>Let&#8217;s look at the other important config file for this app: <em>stackato.yml</em>. We could set up the services interactively during &#8216;stackato push &#8230;&#8217; but this config file makes the process repeatable. It&#8217;s also the only place we can set an important &#8220;pre-running&#8221; hook:</p>
<pre>
name: owncloud
framework:
  type: php
  runtime: php
mem: 128M
services:
  owncloud-mysql: mysql
  owncloud-fs: filesystem
/
hooks:
  pre-running:
    - ln -s $STACKATO_FILESYSTEM data
</pre>
<p>Here we specify the default application name, the framework and runtime, the amount of memory (for each instance), and two services. </p>
<p>In the &#8220;hooks&#8221; section, we specify commands that will be run before the application is launched. In this case, we&#8217;re linking the mount point of the filesystem service to a directory in the application tree called &#8216;data&#8217;. The full path of this link is &#8216;/app/app/data&#8217; which is what we specified in <em>autoconfig.php</em> earlier.</p>
<p>With these two files, you can push ownCloud to Stackato and scale up the number of application instances as needed. By default, the filesystem service limits each service to only 100MB and you&#8217;ll want <em>much</em> more to properly run ownCloud with lots of users. A Stackato administrator (in the micro cloud case, you) can change this default in <em>~/stackato/etc/vcap/filesystem_gateway.yml</em>.</p>
<h2>To the App Store!</h2>
<p>That might be all you need, but bear with me, there&#8217;s a way we can set up Stackato to install ownCloud with a couple of clicks from the Management Console.</p>
<p>The Stackato App Store pulls applications from a public Git repository and deploys them to Stackato using options specified in a JSON descriptor for the application (similar to the <em>stackato.yml</em> file). The App Store uses the same API as the client for deploying applications, but as there&#8217;s very little interaction (usually just one click to install, another to start). This is covered in more detail in <a target="_new" href="http://www.activestate.com/blog/2012/05/new-stackato-app-store">Ingy&#8217;s App Store post</a> from last week, and in the <a target="_new" href="https://github.com/ActiveState/stackato-app-store/blob/master/doc/store-format.md">stackato-app-store documentation</a>. The &#8220;<a target="_new" href="http://get.stackato.com/store/1.2/third-party-apps.json">Third Party Apps</a>&#8221; store file is a good example of the store JSON format and shows a number of applications, including ownCloud.</p>
<h2>Bonus points</h2>
<p>The <em>autoconfig.php</em> I used for the App Store copy is <a target="_blank" href="https://github.com/Stackato-Apps/owncloud/blob/master/config/autoconfig.php">not quite what I&#8217;ve show above</a>. I hate hard-coding usernames and passwords for the initial admin account, but there&#8217;s often no other way when you&#8217;re pushing a pre-configured app from the app store. I thought for ownCloud I could at <em>least</em> take the Stackato system user name or group name in the same way that database credentials are harvested from VCAP_SERVICES. Please excuse my rudimentary PHP. There are probably more elegant ways to do this:</p>
<pre>
&lt;?php
$services = getenv("VCAP_SERVICES");
$appinfo = getenv("VCAP_APPLICATION");
$services_json = json_decode($services,true);
$appinfo_json = json_decode($appinfo,true);
$mysql_config = $services_json["mysql-5.1"][0]["credentials"];
if (array_key_exists("users", $appinfo_json))
  $admin = $appinfo_json["users"][0];
else
  $admin = $appinfo_json["group"];

$AUTOCONFIG = array(
"installed" =&gt; false,
"adminlogin" =&gt; $admin,
"adminpass" =&gt; "changeme",
...
</pre>
<p>Though the password is still hard-coded to &#8220;changeme&#8221;, at least the username is unique to the person or group deploying the application. If you&#8217;re more paranoid, you could re-use the <code>$mysql_config["password"]</code> string for <code>"adminpass"</code>.</p>
<p>This might fall into the category of &#8220;Stupid Stackato Tricks&#8221; but you might find ways to use different environment variables (which can be set in <em>stackato.yml</em>) elsewhere in your application.</p>
<h2>Building a Stackato App Store ecosystem</h2>
<p>The current ownCloud sample in the App Store is pulled from <a target="_new" href="https://github.com/Stackato-Apps/owncloud">a Github repo</a> which just contains a copy of the 3.0.2 stable release, but since the store can use a specific branch and commit for the pull, it could instead be pulled from a &#8220;stackato&#8217; branch of the canonical <a target="_blank" href="https://gitorious.org/owncloud/owncloud">ownCloud repo</a> itself.</p>
<p>Doing it this way allows web application authors and maintainers to easily expose a current, stable version of their app to the Stackato App Store. If you&#8217;d like us to feature your app in Stackato, send us the details!</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3410</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/10J9zBP-uQc" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/05/19/owncloud-in-the-app-store-how-to-stackato-ize-a-php-cloud-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Iron Foundry and Stackato for .NET apps</title>
		<link>http://sizlopedia.in/2012/05/16/iron-foundry-and-stackato-for-net-apps/</link>
		<comments>http://sizlopedia.in/2012/05/16/iron-foundry-and-stackato-for-net-apps/#comments</comments>
		<pubDate>Wed, 16 May 2012 06:02:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/05/16/iron-foundry-and-stackato-for-net-apps/</guid>
		<description><![CDATA[We get asked occasionally about Stackato support for .NET. It&#8217;s clearly an important enterprise application platform today, but there are some technical challenges to supporting it on a Linux-based PaaS system. Stackato, like the Cloud Foundry code base it&#8217;s built upon, has a modular design that can be extended to provide application hosting on any [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="Stackato 1.2 and Iron Foundry" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/stackato-ironfoundry.png" class="as_feature_img as_left" /></p>
<p>We get asked occasionally about Stackato support for .NET. It&#8217;s clearly an important enterprise application platform today, but there are some technical challenges to supporting it on a Linux-based PaaS system.</p>
<p>Stackato, like the Cloud Foundry code base it&#8217;s built upon, has a modular design that can be extended to provide application hosting on any operating system &#8211; including Windows.</p>
<p>Tier 3&#8242;s Iron Foundry project does just that by providing a Windows-based DEA (Droplet Execution Agent) <a target="_new" href="http://blog.ironfoundry.org/2012/05/iron-foundry-support-stackato-1-2/">that works with Stackato</a>.</p>
<h2>Stackato &amp; Iron Foundry Micro VM combo</h2>
<p>The Iron Foundry and Stackato development teams have been working together to ensure smooth integration of our VMs. To add .NET support to a Stackato instance, you need to run a separate Iron Foundry Micro Cloud which handles .NET application hosting (the Iron Foundry DEA) and provides a MS-SQL database service. You can run the VMs side-by-side on the same hypervisor host, or host them separately.  You just need to make sure they can see each other (e.g. by running in bridged mode).  With the two VMs connected as per the <a target="_new" href="http://blog.ironfoundry.org/2012/03/ironfoundry-and-stackato/">setup instructions</a>, you&#8217;re ready to push applications that use the .NET framework.</p>
<h2>Get the VMs</h2>
<p>To try this pairing out for yourself, you&#8217;ll need to download VMs to run on your local hypervisor:</p>
<ul>
<li><a href="http://www.activestate.com/stackato/download_vm">Stackato VM</a></li>
<li><a href="http://www.ironfoundry.org/download">Iron Foundry VM</a></li>
</ul>
<p>The <a target="_new" href="http://community.activestate.com/forum/stackato/feedback">Stackato forums</a> and <a target="_new" href="http://help.ironfoundry.org/forums">Iron Foundry Forums</a> are there for you if you have any questions. Let us know what you think!</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3404</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/e9WoU_A2SCg" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/05/16/iron-foundry-and-stackato-for-net-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploying Java to Stackato with Buildpacks</title>
		<link>http://sizlopedia.in/2012/05/14/deploying-java-to-stackato-with-buildpacks/</link>
		<comments>http://sizlopedia.in/2012/05/14/deploying-java-to-stackato-with-buildpacks/#comments</comments>
		<pubDate>Mon, 14 May 2012 19:31:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/05/14/deploying-java-to-stackato-with-buildpacks/</guid>
		<description><![CDATA[We have just added the well known pet-clinic Java application to the Stackato App Store, and it works well! One thing about Java applications is that you need to generate byte code to execute it, and every Java developer knows that you should never commit your byte code to source control because of the size [...]]]></description>
			<content:encoded><![CDATA[<p>We have just added the well known <a title="Stackato Pet Clinic Java Demo" target="_new" href="http://static.springsource.org/docs/petclinic.html">pet-clinic Java<br />
application</a> to the Stackato App Store, and it works well!</p>
<p>One thing about Java applications is that you need to generate byte code<br />
to execute it, and every Java developer knows that you should never commit<br />
your byte code to source control because of the size (for pet-clinic, 500KB of sources become 40MB of compiled jars/wars). For this reason, with Stackato demo applications we generally recommend that Java developers do the extra step of compiling the bytecode before deployment.</p>
<p>With the preliminary support of Heroku Buildpacks in <a title="Stackato 1.2" target="_new" href="http://www.activestate.com/stackato/get_stackato">Stackato 1.2</a>,<br />
there&#8217;s now a way to make compilation happen as part of the app deployment.</p>
<p>So let&#8217;s explain both methods of deploying Java to Stackato.</p>
<h2>Building it locally</h2>
<p>The first way is to build the application before pushing to Stackato. This<br />
method has been available all along in Stackato when using the &#8216;java_web&#8217; and<br />
&#8216;spring&#8217; frameworks:</p>
<ol>
<li>Install <a target="_new" href="http://maven.apache.org/download.html">Maven</a> on your local system if you don&#8217;t have it</li>
<li>
<p>Build the application </p>
<p>mvn clean package</p>
</li>
<li>
<p>Push it to Stackato </p>
<p>stackato push -n</p>
</li>
</ol>
<p>That&#8217;s all.</p>
<p>However, if your application uses a database like pet-clinic does, and if there are maven tests on this database, you will need to set up a local database to pass these tests. You could use the  &#8216;<code>-Dmaven.test.skip</code>&#8216; argument to skip tests, but this is not recommended.</p>
<pre><code>maven clean package -Dmaven.test.skip=true</code></pre>
<p>It would be nice to run these tests against the actual database we&#8217;ll be using. We can do that using the &#8216;buildpack&#8217; framework. </p>
<h2>Using a Java Buildpack</h2>
<p>Heroku <a target="_new" href="http://docs.stackato.com/languages/buildpack.html">Buildpack support</a> is new in Stackato 1.2. Heroku introduced this system as a way for users to add custom frameworks to their PaaS. Stackato has other ways of customizing the application environment, but buildpacks have become popular, so we decided to emulate them in the Stackato environment.</p>
<p>In the case of our demo Java application, the Java buildpack allows the application bytecode to be built on Stackato instead of on your local machine. The Java buildpack also includes OpenJDK if you want to run a simple java application.</p>
<p>For the pet-clinic application for example, we need a Java-based server to run the application. To do that, we will use <a target="_new" href="http://jetty.codehaus.org/jetty/">Jetty</a>. Jetty is a light Java application server. It includes a Jetty Runner. The good thing about Jetty is that you can run your Java web application with a simple command just by providing the war file:</p>
<pre><code>java -jar jetty-runner.jar application.war
</code></pre>
<p>Advantages of using the buildpack framework?</p>
<ul>
<li>You don&#8217;t need Maven on your local machine</li>
<li>The application builds on the PaaS instead of on your machine </li>
<li>You don&#8217;t have to push all the byte code</li>
<li>You don&#8217;t need to set up a special environment for tests.</li>
</ul>
<h2>How does it work with Stackato?</h2>
<p>It is really easy! You only need to modify three files.</p>
<p>First, in &#8216;stackato.yml&#8217; you will need to define the framework type and to<br />
provide the buildpack url. Here is the pet-clinic stackato.yml:</p>
<pre><code>name: pet-clinic
mem: 512M
framework:
    type: buildpack
env:
    BUILDPACK_URL: https://github.com/heroku/heroku-buildpack-java.git
services:
    mysql-spring: mysql
</code></pre>
<p>As it is a buildpack application, you also need to create a <em>Procfile</em> in<br />
which you declare how you want your application to be executed. Here is the one<br />
from pet-clinic.</p>
<pre><code>web:    java $JAVA_OPTS -jar target/dependency/jetty-runner.jar --port $PORT target/*.war
</code></pre>
<p>And finally, add the <code>jetty</code> dependency in your <em>pom.xml</em><br />
in order to run your application.</p>
<pre><code>&lt;build&gt;
    ...
    &lt;plugins&gt;
        ...
        &lt;plugin&gt;
            &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
            &lt;artifactId&gt;maven-dependency-plugin&lt;/artifactId&gt;
            &lt;version&gt;2.3&lt;/version&gt;
            &lt;executions&gt;
                &lt;execution&gt;
                    &lt;phase&gt;package&lt;/phase&gt;
                    &lt;goals&gt;&lt;goal&gt;copy&lt;/goal&gt;&lt;/goals&gt;
                    &lt;configuration&gt;
                        &lt;artifactItems&gt;
                            &lt;artifactItem&gt;
                                &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt;
                                &lt;artifactId&gt;jetty-runner&lt;/artifactId&gt;
                                &lt;version&gt;7.5.4.v20111024&lt;/version&gt;
                                &lt;destFileName&gt;jetty-runner.jar&lt;/destFileName&gt;
                            &lt;/artifactItem&gt;
                        &lt;/artifactItems&gt;
                    &lt;/configuration&gt;
                &lt;/execution&gt;
            &lt;/executions&gt;
        &lt;/plugin&gt;
    &lt;/plugins&gt;
&lt;/build&gt;
</code></pre>
<p>And that&#8217;s it! Target your Stackato server/cluster with the client, login, and push your application.</p>
<p>So there you have it &#8211; more ways to get your applications working in <a target="_new" href="http://www.activestate.com/stackato/get_stackato">Stackato</a>. You choose the one that fits your development style.</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3402</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/O7RLBBxT_fA" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/05/14/deploying-java-to-stackato-with-buildpacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActiveState Partners with HP: Stackato 1.2 to run on HP Cloud Services</title>
		<link>http://sizlopedia.in/2012/05/11/activestate-partners-with-hp-stackato-1-2-to-run-on-hp-cloud-services/</link>
		<comments>http://sizlopedia.in/2012/05/11/activestate-partners-with-hp-stackato-1-2-to-run-on-hp-cloud-services/#comments</comments>
		<pubDate>Fri, 11 May 2012 22:31:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/05/11/activestate-partners-with-hp-stackato-1-2-to-run-on-hp-cloud-services/</guid>
		<description><![CDATA[&#160; Release of new, more powerful Stackato Private PaaS Solution Coincides with HP Cloud Services Public Beta I&#8217;m pleased to announce that ActiveState and HP Cloud Services have formed an extended partnership, ensuring support for Stackato 1.2 running on HP Cloud Services. Stackato&#160;is the application platform for creating a private Platform-as-a-Service (PaaS), and its industry-leading [...]]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<p align="center"><em>Release of new, more powerful Stackato Private PaaS Solution Coincides with HP Cloud Services Public Beta</em></p>
<p>I&rsquo;m pleased to announce that ActiveState and HP Cloud Services have formed an extended partnership, ensuring support for Stackato 1.2 running on HP Cloud Services. <a href="http://www.activestate.com/stackato">Stackato</a>&nbsp;is the application platform for creating a private Platform-as-a-Service (PaaS), and its industry-leading cloud application security, data privacy, and control are now available on the HP Cloud Services infrastructure.</p>
<p>This announcement coincides with the upcoming HP Cloud Services move to public beta. It follows on the heels of the successful launch of Stackato version 1.2, a major upgrade that delivers several new features, including persistent file system services (and associated Drupal compatibility), enhanced app store functionality, integrated debugging support with Komodo IDE, Heroku build-pack support, and configurable user/group permissions and quotas.</p>
<p>HP Cloud Services (HPCS) is based on HP&rsquo;s world class hardware and software, with key elements of HP Converged Infrastructure combined with a developer-friendly integration of OpenStack&trade; technology. Available soon in public beta, HPCS offerings include HP Cloud Compute, HP Cloud Object Storage, and the HP Cloud Content Delivery Network.</p>
<p>With this integration, developers and enterprises can quickly and seamlessly create a private PaaS in HP Cloud Services without having to download a virtual machine.</p>
<p>Stackato 1.2 on HPCS infrastructure provides a secure middleware layer to complement HPCS&rsquo; unique hybrid delivery solution for private, managed, and public cloud deployments. Stackato&rsquo;s support for HP Cloud Services gives enterprise developers more options and flexibility when choosing their cloud infrastructure services, while offering all the benefits of a private PaaS to deploy, scale, and manage applications.</p>
<p>&ldquo;ActiveState enjoys a mutually-beneficial partnership with HPCS,&rdquo; says Bart Copeland, ActiveState CEO. &ldquo;Stackato&rsquo;s support for HP Cloud Services reinforces our vision of delivering &lsquo;cloud control&rsquo; to support any underlying infrastructure, benefitting enterprise developers and IT/DevOps with the flexibility and deployment options they demand.&rdquo;</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3399</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/opxe2zq6DvM" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/05/11/activestate-partners-with-hp-stackato-1-2-to-run-on-hp-cloud-services/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The New Stackato App Store</title>
		<link>http://sizlopedia.in/2012/05/10/the-new-stackato-app-store/</link>
		<comments>http://sizlopedia.in/2012/05/10/the-new-stackato-app-store/#comments</comments>
		<pubDate>Thu, 10 May 2012 12:02:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/05/10/the-new-stackato-app-store/</guid>
		<description><![CDATA[Platform-as-a-Service is the future for deploying and managing Internet applications. It promises to provide an environment that abstracts the hard stuff (operating system, web server, programming language environment, databases, etc) and leaves you with the joy of just saying &#8220;Run this app, please&#8221;. With ActiveState&#8217;s Stackato, not only can you do that, but you own [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="Stackato App Store" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/stackato-app-store-sm.png" class="as_feature_img as_left" /></p>
<p>Platform-as-a-Service is the future for deploying and managing Internet applications. It promises to provide an environment that abstracts the hard stuff (operating system, web server, programming language environment, databases, etc) and leaves you with the joy of just saying &#8220;Run this app, please&#8221;. With ActiveState&#8217;s <a target="_new" href="http://www.activestate.com/stackato/get_stackato">Stackato</a>, not only can you do that, but <em>you own the entire PaaS system</em>, and you run it wherever you wish.</p>
<p>How easy is it to install a complete Stackato PaaS? Very. It&#8217;s just a download and a few clicks. How about deploying popular applications like Drupal or Bugzilla to your new Stackato PaaS? Even simpler. The Stackato App Store makes them a click away. What if you want to install your favorite apps that are not yet in the store? No problem. You can create your own App Store and it&#8217;s amazingly easy to do.</p>
<p>In this article, I(ngy döt Net) will teach you how to do all three of the simple and exciting exercises above. Let&#8217;s get started&#8230;</p>
<h3>Installing Stackato</h3>
<p>Stackato can be installed as an enterprise cluster of 1000+ nodes running on Amazon EC2, vSphere, or OpenStack, but it will also run as a single virtual machine (VM) on your laptop. Since deploying Stackato as a single node (we call it <a target="_new" href="http://www.activestate.com/stackato/micro-cloud-license-agreement">Micro Cloud licensing</a>) is completely free of charge (forever), let&#8217;s do the the latter.</p>
<p>The first thing you&#8217;ll need to do is download a copy of the Stackato VM. This free download is available <a href="http://www.activestate.com/stackato/download_vm">here</a>. In a nutshell, Stackato is just a VM image that is ready to boot up as a server. It is packed full of all the system software needed to get your apps running immediately. Stackato VM images are prepared for a bunch of different virtualization hypervisors. Since you are on a laptop, you&#8217;ll probably want to use VMware <a target="_new" href="https://my.vmware.com/web/vmware/info/slug/desktop_end_user_computing/vmware_fusion/4_0?rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;sqi=2&amp;ved=0CIQBEBYwAA&amp;url=http://www.vmware.com/go/downloadfusion&amp;ei=FrmpT_3UCuaniALFvPi4Ag&amp;usg=AFQjCNHzUNRJ_lA1LkenniOHerz08g6u7A">Fusion</a>/<a target="_new" href="https://my.vmware.com/web/vmware/evalcenter?p=player&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;ved=0CHYQFjAA&amp;url=http://www.vmware.com/go/downloadplayer&amp;ei=U7mpT7ThOYnfiALI5YztAg&amp;usg=AFQjCNGkmxKQEef5Efdw-HFJHYomeVtZfw">Player</a> or <a target="_new" href="https://www.virtualbox.org/wiki/Downloads">VirtualBox</a>, which have free versions. Download the Stackato image that matches your hypervisor software.</p>
<p><strong>Note:</strong> The Stackato image is 1.2GB, so now is a good time to get a cup of<br />
coffee (or a good night&#8217;s sleep), depending on your bandwidth.</p>
<p><strong>Pro Tip:</strong> Start the download now, and hopefully it will be done by the<br />
time you finish reading this.</p>
<p>After you unzip the Stackato download, you&#8217;ll want to <a target="_new" href="http://docs.stackato.com/quick-start.html#stackato-vm-setup">get the image into your hypervisor</a>. For VMware you can just &#8220;open&#8221; and &#8220;play&#8221; the <code>.vmx</code> file. For VirtualBox, you&#8217;ll need to &#8220;import&#8221; and &#8220;start&#8221; the <code>.ovf</code> file (and also adjust the Network Settings). In either case, you should see a Linux VM booting up in a window. Your Stackato is coming to life&#8230;</p>
<p>When the Stackato VM has booted, you will see a URL to a unique local domain. Just type that URL into a web browser. This is where the real fun begins. The (now running) Stackato serves up a web based Stackato Management Console (SMC), which you can use to do most of the common Stackato operations (and <em>all</em> the operations discussed here). For instance you can install apps, stop and start and launch them, view their logs, see pretty system graphs, and many many other things that I encourage you to explore on your own.</p>
<p>     <img alt="Stackato Management Console" style="width: auto;float: right" src="http://www.activestate.com/sites/default/files/images/stackato/s1.2-admin-overview2-crop.png" class="as_feature_img as_right" /></p>
<p>The first thing the SMC wants you to do is enter your email address and a password. Your email will be your Stackato id. You are now the <strong>administrator</strong> of this Stackato. That means you have full control of everything. The password you&#8217;ve entered, is <em>also</em> now the password of the <code>stackato</code> Unix user, should you want to <code>ssh</code> into the actual Stackato VM. This is a real live server, it&#8217;s yours, and you have the keys to the castle, if you want to dive deep. But let&#8217;s get back to the fun stuff!</p>
<p><strong>Note:</strong> The above process will work on a laptop that is running Mac, Linux or Windows, but with some caveats. For instance, you&#8217;ll need sufficient RAM, 64-bit capabilites and some network tweaks on Windows. If you have any problems, see the rich <a href="http://docs.stackato.com/">Stackato documentation</a>.</p>
<h3>The Stackato App Store</h3>
<p>If you look at the left side of your SMC, you&#8217;ll see a link to the App Store. Click it! You&#8217;ll be presented with a cornucopia of applications written in many programming languages. If you wanted to run all these by setting up your own server, it would likely take you days. With the Stackato app store, it&#8217;s just a few clicks.</p>
<p>Try it. Click &#8220;Install&#8221; on an interesting app. You&#8217;ll be prompted with some basic setup info. Usually the defaults are just fine, so click the &#8220;Install App&#8221; button. In a few seconds your app will be installed. You should now see your &#8220;Applications&#8221; page. From here you can start your app. Once it is fully started, you&#8217;ll see a <em>launch</em> button. This will take you to your brand new running app. Viola!</p>
<p>So what is the App Store exactly? It&#8217;s not a store in the sense that you have to buy anything. The App Store is simply a collection of links to software that is ready to run on Stackato. Currently these applications are all hosted as <a href="https://github.com/Stackato-Apps">GitHub</a> repositories. In fact, the link to &#8220;More Information&#8221; on each App Store app, points to the GitHub page for that app. Click it to read the app&#8217;s documentation and instructions. If you are a developer, you can clone the repo, change the source code, and push it to your Stackato VM using the <a target="_new" href="http://www.activestate.com/stackato/download_client">Stackato command line interface</a>.</p>
<p>You can think of the Stackato App Store as the rabbit hole to a PaaS wonderland. The folks at ActiveState are adding new apps to the App Store every day. You may just end up using Stackato to host your favorite off-the-shelf apps, but Stackato strives to be the deployment platform of choice for application developers.</p>
<h3>Creating Your Own App Store</h3>
<p>I&#8217;m not certain that I&#8217;ve conveyed just how ridiculously simple a Stackato App Store is. I said was a collection of links, but let&#8217;s take a closer look.</p>
<p>If you click on &#8220;Settings&#8221; in the SMC, you&#8217;ll see a set of tabs. Click on the <em>Stores</em> tab. You should see a list of URLs hosted by ActiveState. The URLs are links to <code>JSON</code> files. For instance, look at <a href="https://stackato.activestate.com/appstore/v1.2/activestate-apps.json">this one</a>. If you understand JSON (which is about as simple as it gets) it&#8217;s pretty easy to see what&#8217;s going on. These JSON files just contain meta-data about application sources. The App Store fetches this JSON info and presents it to you in a graphical and interactive manner.</p>
<p>With Stackato 1.2, you can change the JSON sources to whatever URLs you want, as long as they return the proper content. In other words, all you need to do is host a static JSON file, and tell the SMC about it. We call this the &#8220;App Store 2.0&#8243; and it&#8217;s a great example of how open ActiveState is making the entire Stackato platorm.</p>
<p>There are many ways to host static files, but here is a really simple and free way to test it out. Go to the link above, and copy the JSON text, then go to <a href="https://gist.github.com">https://gist.github.com</a>  and paste it into the text box. Make a small change to the JSON text (possibly change an app <code>desc</code> value) and then click the &#8220;Create Public Gist&#8221; button. Next, find the &#8220;raw&#8221; link on the page and click that. Now you&#8217;ll have a hosted static raw JSON file on the Internet! Copy the URL to the SMC&#8217;s Setting&#8217;s list of App Store URLs. That&#8217;s everything. If you go into the App Store now, you&#8217;ll see your own App Store data.</p>
<h3>Conclusion</h3>
<p>I started by asserting that PaaS is the <strong>future</strong> of computer application deployment. <strong>Stackato</strong> is <em>polishing</em> that future at every level. I hope this gives you a glimpse of the future, and that you try it out today.</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3397</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/iwtTkyU9rKk" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/05/10/the-new-stackato-app-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deploy &amp; Scale Drupal on Any Cloud with Stackato</title>
		<link>http://sizlopedia.in/2012/05/03/deploy-scale-drupal-on-any-cloud-with-stackato/</link>
		<comments>http://sizlopedia.in/2012/05/03/deploy-scale-drupal-on-any-cloud-with-stackato/#comments</comments>
		<pubDate>Thu, 03 May 2012 07:32:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/05/03/deploy-scale-drupal-on-any-cloud-with-stackato/</guid>
		<description><![CDATA[Deploy Drupal where you want Stackato lets you run Drupal, the popular content management system, on public clouds such as AWS and Rackspace, or on private clouds powered by VMWare, CloudStack or OpenStack. With Stackato, you choose the cloud hosting provider that best fits your organization&#8217;s requirements.&#160;With one &#8216;stackato push&#8217; command or one click in [...]]]></description>
			<content:encoded><![CDATA[<p><img alt="" src="http://www.activestate.com/sites/default/files/drupal-in-cloud_sticker_sq_final.jpg" style="width: 100px;height: 100px;float: left;border-width: 1px;border-style: solid;margin: 1px" /></p>
<p><em><strong>Deploy Drupal where you want</strong></em></p>
<p>Stackato lets you run Drupal, the popular content management system, on public clouds such as AWS and Rackspace, or on private clouds powered by VMWare, CloudStack or OpenStack. With Stackato, you choose the cloud hosting provider that best fits your organization&rsquo;s requirements.<br />&nbsp;With one &lsquo;stackato push&rsquo; command or one click in the Management console, you can make Drupal available on any Stackato PaaS deployment.</p>
<p>Here at ActiveState, we&rsquo;ve been huge fans of Drupal for years. Both the ActiveState corporate and community sites are powered by Drupal, so it was only natural for us to want to get it working nicely on Stackato.</p>
<p><strong>Scaling Drupal in the Cloud isn&#039;t trivial</strong></p>
<p>With Al Jazeera, Time Inc, Turner, World Economic Forum, Stanford University, New York Senate, and NPR all running their extensive web properties on Drupal, we know that Drupal can scale. It&rsquo;s not easy though &ndash; not because Drupal can&rsquo;t scale, but because replicating multiple instances of Drupal and its software stack in the cloud takes a fair amount of skill and requires a way to share user-contributed files between those instances.</p>
<p>Cloud application instances in Stackato&mdash;and in most other PaaS solutions&mdash;are ephemeral, and the storage on those instances is ephemeral as well. If the instance is shut down, the data on it goes away. That&rsquo;s not a very desirable configuration if you are deploying an application such as Drupal that expects (and requires) a persistent file system.</p>
<p>To solve this problem, Stackato offers a file system service that can be shared between application instances. Just like the data and messaging services, this service can be created using the &lsquo;stackato create-service&rsquo; command or specified in a YAML config file to automatically set up the service for an application.</p>
<p>You can link this file system to Drupal&rsquo;s &lsquo;sites/default&rsquo; directory, and even specify multiple file system services to share themes and modules between multiple Drupal sites.</p>
<p><strong>Deploying Drupal: Insanely simple with Stackato</strong></p>
<p>Stackato automates deploying, managing, and scaling a Drupal application-appropriate stack and makes it insanely simple to deploy Drupal on your private cloud:<br />1.&nbsp;&nbsp; <a href="http://community.activestate.com/stackato">&nbsp;Download the Stackato VM</a>, request access to the AMI, or sign up for the Sandbox.<br />2.&nbsp;&nbsp; &nbsp;Go to Github and get <a href="https://github.com/Stackato-Apps/drupal">ActiveState&rsquo;s ready-to-run Drupal branch</a>, which is ready to run.<br />3.&nbsp;&nbsp; &nbsp;Target Stackato and enter &#039;stackato push -n&#039; from the &lsquo;drupal&rsquo; directory.</p>
<p><strong>Deploying from the App Store is even easier!</strong></p>
<p><img alt="" src="http://www.activestate.com/sites/default/files/stackato-drupal-app-store_sm.png" style="height: 238px;border-width: 1px;border-style: solid;margin: 1px;width: 501px;float: left" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><em>Drupal is now featured in the Stackato App Store</em></p>
<p>Just launch Stackato&#039;s Management Console, navigate to the App Store, browse to the Drupal item&nbsp; and click &lsquo;Install&rsquo;. You can even import data from existing Drupal deployments using Stackato&rsquo;s &lsquo;tunnel&rsquo; and &lsquo;ssh&rsquo; commands.</p>
<p><strong>Why Drupal on a Private PaaS? Manage &amp; Scale multiple web properties with ease</strong></p>
<p>Today&rsquo;s real-world enterprise maintains more than just a single web property. Stackato enables corporate IT to easily manage and distribute multiple Drupal-powered sites across an enterprise to produce a consistent experience, while centralizing the administration, security, and control of key IT activities.</p>
<p>Stackato can scale Drupal when your organization needs access to elastic capacity to meet traffic surges. An enterprise can easily manage the secure deployment of multiple Drupal instances while securely encapsulating each web property.</p>
<p>Content can be managed locally while web site deployments are coordinated centrally. By deploying a private PaaS, an enterprise can rapidly develop a consistent web experience, easily redistribute it to various web properties, and continue to manage and evolve the underlying IT infrastructure.</p>
<p>For a quick<a href="http://www.youtube.com/watch?v=qBvs4hXRTUU#t=7m17s"> overview of Stackato and a walk-thru deploying Drupal</a>, watch <a href="http://www.youtube.com/watch?v=qBvs4hXRTUU#t=7m17s">this YouTube video</a>.</p>
<p>Test drive Drupal today on a <a href="http://www.activestate.com/stackato/download_vm">Stackato Micro Cloud</a>, with on <a href="http://www.activestate.com/stackato/amazon_ami">Amazon EC2</a> or on our <a href="http://www.activestate.com/stackato/sandbox">Private Stackato Sandbox Service today!</a><br />&nbsp;</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3372</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/FCkJ9irwQsM" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/05/03/deploy-scale-drupal-on-any-cloud-with-stackato/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stackato Demo: Management Console and App Store</title>
		<link>http://sizlopedia.in/2012/04/14/stackato-demo-management-console-and-app-store/</link>
		<comments>http://sizlopedia.in/2012/04/14/stackato-demo-management-console-and-app-store/#comments</comments>
		<pubDate>Sat, 14 Apr 2012 15:00:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/04/14/stackato-demo-management-console-and-app-store/</guid>
		<description><![CDATA[It&#8217;s getting harder and harder to give short Stackato demos. We&#8217;ve been adding so many cool features that it&#8217;s hard to cover everything. With the release of 1.0.6, we needed an updated demo screencast to show off the Management Console and the App Store, but that leaves less time for explaining the core workflow. So, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.youtube.com/v/qBvs4hXRTUU" rel="shadowbox;width=853;height=530" title="Stackato Overview: Micro Cloud, Management Console, and App Store "><br />
	<img class="as_left" style="width: 178px;height: 100px" alt="Stackato Overview: Micro Cloud, Management Console, and App Store " src="http://www.activestate.com/sites/default/files/images/misc/scast-stackato-demo.png" /></a>
</p>
<p>It&#8217;s getting harder and harder to give <em>short</em> Stackato demos. We&#8217;ve been adding so many cool features that it&#8217;s hard to cover everything. With the release of 1.0.6, we needed an updated demo screencast to show off the <a href="http://docs.stackato.com/console.html">Management Console</a> and the <a href="https://github.com/Cloud-Apps/stackato-app-store/blob/master/README.md">App Store</a>, but that leaves less time for explaining the core workflow.</p>
<p>So, with this demo I gloss over some things that are covered in previous screencasts. To get the full picture, feel free to supplement the information in the new screencast with some of the previous material:</p>
<ul>
<li><strong><a title="Stackato Demo - Micro Cloud to Private PaaS" rel="shadowbox;width=640;height=530" href="http://www.youtube.com/v/CunjLaS7Rzo">Stackato Demo &#8211; Micro Cloud to Private PaaS</a></strong>: This is the first screencast we made for a beta version of Stackato. It goes into a lot more detail on the initial setup of the VM and the client, so if you get stuck setting up your own Stackato micro cloud, have a look at this one.</li>
<li><strong><a title="Komodo IDE and Stackato" rel="shadowbox;width=640;height=530" href="http://www.youtube.com/v/OmFv19JzreI">Komodo IDE and Stackato</a></strong>: Yes, there&#8217;s integration with Komodo too! This video shows how to push applications from Komodo IDE and use its Database Explorer to view and modify the automatically provisioned database services.</li>
<li><strong><a title="Stackato on HP Cloud Services" rel="shadowbox;width=640;height=530" href="http://www.youtube.com/v/uDJfYidqGkI">Stackato on HP Cloud Services</a></strong>: Though this demo was made to show Stackato running on HPCS, it also deals with a <em>very</em> important part of Stackato&#8217;s security model &#8211; the use Linux containers (LXC) for isolating the hosted applications. This allows Stackato to offer SSH access into the user&#8217;s application containers for running remote commands.</li>
</ul>
<p>You may get sick of hearing me say &#8220;Hi, my name is Troy Topnik&#8221; but hopfully there&#8217;s enough information here to get you started setting up your own <a href="http://www.activestate.com/stackato/get_stackato">Stackato VM</a>, or taking it for a spin in our developer sandbox. There&#8217;s are active <a href="http://community.activestate.com/forum/stackato">forums on the Community site</a> if you run into any difficulties and the #stackato IRC channel on freenode. Come join the discussion.</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3369</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/qJRjUZhJa6A" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/04/14/stackato-demo-management-console-and-app-store/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started with Private PaaS on Amazon EC2</title>
		<link>http://sizlopedia.in/2012/04/13/getting-started-with-private-paas-on-amazon-ec2/</link>
		<comments>http://sizlopedia.in/2012/04/13/getting-started-with-private-paas-on-amazon-ec2/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 04:30:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/04/13/getting-started-with-private-paas-on-amazon-ec2/</guid>
		<description><![CDATA[Set up your own personal private PaaS in six easy steps Deploying and configuring your own single instance private PaaS on EC2 with Stackato is almost as easy as downloading a micro cloud virtual machine (VM) to your desktop. The ActiveState team has created an Amazon Machine Image (AMI) with Stackato installed that is ready [...]]]></description>
			<content:encoded><![CDATA[<p><em>Set up your own personal private PaaS in six easy steps</em></p>
<p>Deploying and configuring your own single instance private PaaS on EC2 with Stackato is almost as easy as downloading a micro cloud virtual machine (VM) to your desktop.  The ActiveState team has created an Amazon Machine Image (AMI) with Stackato installed that is ready to run on EC2, with a few minor configuration tweaks that even a Newbie to the cloud can figure out. The Stackato AMI is available for free subject to the terms and conditions of the <a target="_new" href="http://www.activestate.com/stackato/micro-cloud-license-agreement">Stackato Micro Cloud License Agreement.</a></p>
<h2>How simple is it?</h2>
<p>To get Stackato up and running on EC2, all you need to do is launch an EC2 AMI, configure an IP address and domain name, SSH into the instance, perform a few simple stackato-admin commands, and then launch the Stackato Web Management Console to complete your setup and configuration. Download the <a target="_new" href="http://www.activestate.com/stackato/download_client">Stackato Client</a> and you&#8217;ll be able to push your applications directly to the cloud from your desktop.  </p>
<h2>Getting Access</h2>
<p>Before you can get started, you must first have valid AWS credentials so that you can use Amazon&#8217;s web services. You can either <a target="_new" href="http://www.amazon.com/gp/aws/registration/registration-form.html">sign up for a new AWS account or use your existing AWS credentials</a>. If you&#8217;re creating a new Amazon account, you will need to provide a credit card to complete the sign-up process. At the end of each month, Amazon will charge your credit card for the cloud-related usage costs associated with your AWS account.</p>
<p>You&#8217;ll also need to send an <a target="_new" href="http://www.activestate.com/stackato/amazon_ami">email request to the ActiveState Stackato Support team</a> with your AWS Account Number (shown in the upper-right corner of the <a target="_new" href="https://aws-portal.amazon.com/gp/aws/manageYourAccount">AWS &#8220;Manage Your Account&#8221;</a> page).</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_account_number.png"><br />
     <img alt="AWS Account Number" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_account_number.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Once you have received your email confirmation from ActiveState that you&#8217;ve been granted access &#8211; you can spin up your own private PaaS on a small EC2 instance in a few quick steps.</p>
<p><ol>
    <a href="http://www.activestate.com/blog/rss.xml#launch-aws">
<li>Launch an AWS Instance of Stackato</li>
<p></a><br />
    <a href="http://www.activestate.com/blog/rss.xml#assoc-domain">
<li>Associate your Domain Name with your Stackato Instance’s Elastic IP Address</li>
<p></a><br />
    <a href="http://www.activestate.com/blog/rss.xml#log-in">
<li>Log in to your Stackato Instance with SSH/PuTTY</li>
<p></a><br />
    <a href="http://www.activestate.com/blog/rss.xml#config-host">
<li>Adding your domain to /etc/hosts</li>
<p></a><br />
    <a href="http://www.activestate.com/blog/rss.xml#stackato-admin">
<li>Use the &#8220;stackato-admin&#8221; Command Basics</li>
<p></a><br />
    <a href="http://www.activestate.com/blog/rss.xml#mgmt-console">
<li>Sign in to the Stackato Web Management Console</li>
<p></a>
  </ol>
</p>
<h2><a name="launch-aws">Step 1: Launch an AWS Instance of Stackato</a></h2>
<p>The <a target="_new" href="http://aws.amazon.com/console/">AWS Management Console</a> provides a web interface for Amazon Web Services. You can start and stop EC2 instances, view and perform actions on running instances, set configurations (e.g. security groups, key pairs, and Elastic IPs) and modify them using interactive controls.</p>
<p>Log in using your AWS account name and password. Navigate to the &#8220;Amazon EC2 Console Dashboard&#8221; and click on the &#8220;Launch Instance&#8221;. This will launch the &#8220;Request Instances Wizard&#8221; for you.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_1aa.png"><br />
     <img alt="AWS Launch Instance" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_1aa.png" class="as_feature_img as_left" /><br />
</a></p>
<p>From your AWS console, search the Amazon &#8220;<strong>Private Images</strong>&#8221; catalog for the latest Stackato AMI using the string &#8220;<strong>stackato</strong>&#8220;. Select the Stackato AMI ID.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_1afindourami.png"><br />
     <img alt="AWS Find Stackato AMI" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_1afindourami.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Choose the <strong>Instance Type</strong>  &#8220;(m1.small, 1.7 GB)&#8221;. This is the least expensive option and a good one for testing purposes. For a production environment, you will need to deploy a cluster of instances and assign different roles to each of them to spread the workload more efficiently. The Stackato AMI is currently only available for use in the &#8220;<strong>us-east-1a</strong>&#8221; EC2 Availability Zone, so select that zone at this point.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_1blaunch2.png"><br />
     <img alt="AWS Instance Details" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_1blaunch2.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Click on &#8220;Continue&#8221; and accept all the defaults on the Advanced Instance Options for now.</p>
<p>Next, give your AMI a user-friendly name or &#8220;key&#8221;. This makes it easy to identify later if you deploy more than one instance.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_1cnameit.png"><br />
     <img alt="AWS Name Instance" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_1cnameit.png" class="as_feature_img as_left" /><br />
</a></p>
<p>There is a default password for the Stackato AMI. You will be prompted to change it when you launch the Stackato Web Management Console for the first time. Click &#8220;Continue&#8221; on the &#8220;Create Key Pair&#8221; page and go directly to &#8220;Configure Firewall&#8221; to set up a Security Group.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_1fsecuritygroupsetup.png"><br />
     <img alt="AWS Create a new Security Group" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_1fsecuritygroupsetup.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Using the &#8220;Create a new rule&#8221; drop-down list, select each of the following rules: SSH, HTTP, HTTPS and DNS. This security configuration will allow you to securely shell into your instance using SSH/PuTTY and configure your instance so that it can be accessed using a domain name of your choice.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_1glaunchme.png"><br />
     <img alt="AWS Instance Launch" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_1glaunchme.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Review your choices and hit  &#8220;Launch&#8221;. Be patient as it may take a few minutes for Amazon to fulfill your request. When the instance is available it will appear in your AWS Console as a &#8220;running instance&#8221; with the name you chose earlier.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_1grunningme.png"><br />
     <img alt="AWS Management Console - Instances" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_1grunningme.png" class="as_feature_img as_left" /><br />
</a></p>
<p>You have a live Stackato Instance. Now you just have to make it &#8220;yours&#8221; by mappng your domain name to the instance.</p>
<h2><a name="assoc-domain">Step 2:  Associate your Domain Name with your Stackato Instance&#8217;s Elastic IP Address</a></h2>
<p>The Public DNS and your Private IP Address assigned automatically by AWS are ephemeral. They do not persist when an instance is restarted.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/awsfindyourpublicdns1reds.png"><br />
     <img alt="AWS Ephemeral DNS and IP" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/awsfindyourpublicdns1reds.png" class="as_feature_img as_left" /><br />
</a></p>
<p>To map a DNS entry to Stackato, you need a persistent IP address. Amazon EC2 provides Elastic IP addresses, which <em>do</em> persist through reboots.  Any Elastic IP addresses that you associate with your account remain associated with your account until you explicitly release them.</p>
<p>To allocate a new Elastic IP address for use with your PaaS</p>
<ol>
<li>Click Elastic IPs in the Navigation pane. The console displays a list of Elastic IP addresses assigned to your account.</li>
<li>Click Allocate New Address.</li>
<li>In the confirmation dialog box, ensure the value for EIP used in is set to EC2, and click Yes, Allocate.</li>
</ol>
<p>To associate the Elastic IP address with an instance</p>
<ol>
<li>Click Instances in the Navigation pane. The console displays a list of instances.</li>
<li>Write down the instance ID to associate with the Elastic IP address.</li>
<li>Click Elastic IPs in the Navigation pane. The console displays a list of Elastic IP addresses assigned to your account.</li>
<li>Select an address and click Associate Address.</li>
<li>In the Associate Address dialog box, select the instance from the Instance list box and click Yes, Associate.</li>
</ol>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_associate_elasticIP.png"><br />
     <img alt="AWS Assign Elastic IP" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_associate_elasticIP.png" class="as_feature_img as_left" /><br />
</a></p>
<p>For this example, I registered the domain &#8220;gorilla-mgmt.com&#8221; through Dreamhost.com, so I use   Dreamhost&#8217;s domain management console to make the DNS changes to point to the AWS instance.  In this example, I am using a subdomain called &#8220;paas&#8221; to associate with the Stackato PaaS running on the AWS instance.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_3dreamhostexample.png"><br />
     <img alt="DNS CNAME - Dreamhost" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_3dreamhostexample.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Type in your &#8220;AWS Elastic IP&#8221; in to the &#8220;Value&#8221; field of the CNAME Record.  You&#8217;ll need to add add a <strong>&#8220;.&#8221;</strong> at the end and then save your changes. Depending on your domain hosting provider, it may take awhile for this change to take effect.</p>
<h2><a name="log-in">Step 3: Log in to your Stackato Instance with SSH/PuTTY</a></h2>
<p>You need to tell Stackato about your instance&#8217;s &#8220;Private IP address&#8221; and your chosen domain name.</p>
<p>Log in to your machine via ssh as user &#8220;stackato&#8221; with default password &#8220;stackato&#8221;. <strong>Note</strong>: Do not change the unix user password in this step &#8211; it will happen in a later step. </p>
<p>While <a target="_new" href="http://en.wikipedia.org/wiki/Secure_Shell">Secure Shell</a> or &#8220;ssh&#8221; may sound daunting, it really is just a secure way to log into a remote computer as an authenticated user. If you&#8217;re using Linux or Mac OS X, use the &#8216;ssh&#8217; client that comes with the OS, if you&#8217;re using Windows get a copy of <a target="_new" href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">PuTTY</a>.</p>
<p>Launch PuTTY from your desktop and type in your AWS Public DNS address in the Host field, then click &#8220;Open&#8221;.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_4aputtywithawspublicdns.png"><br />
     <img alt="Putty Configuration" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_4aputtywithawspublicdns.png" class="as_feature_img as_left" /><br />
</a></p>
<p>Click the &#8220;Open&#8221; button and you&#8217;ll be prompted to login to your instance for the first time.</p>
<p>This first time, you&#8217;ll login as the user &#8220;stackato&#8221; using the default password which is also &#8220;stackato&#8221;. Do <strong>not</strong> change the password yet, this will be done in a later step.</p>
<h2><a name="config-host">Step 4:  Adding your domain to /etc/hosts</a></h2>
<p>You&#8217;ll need to add a line in the &#8216;/etc/hosts&#8217; file to resolve the domain name added above to localhost via the <tt>127.0.0.1</tt> loopback address.</p>
<p>To make these edits, you&#8217;ll need to use a console text editor like &#8220;Vim&#8221;, which is already installed on your EC2 instance (if you don&#8217;t know how to use it, <a target="_new" href="http://www.tuxfiles.org/linuxhelp/vimcheat.html">here&#8217;s a useful cheatsheet</a>). </p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_4loginin.png"><br />
     <img alt="SSH Login" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_4loginin.png" class="as_feature_img as_left" /><br />
</a></p>
<p>To edit the /etc/hosts files, you&#8217;ll have to run vim with the &#8220;sudo&#8221; command &#8211; which allows you to run programs and commands with the security privileges of another user (in this case, the superuser, or root):</p>
<pre>
$ sudo vim /etc/hosts
</pre>
<p>You&#8217;ll need to add one line to the top of the /etc/hosts file, substituting your domain name for the one used in this example.</p>
<pre>
127.0.0.1 localhost stackato paas.gorilla-mgmt.com api api.paas.gorilla-mgmt.com
</pre>
<p>When you save the file, you may get an error message such as the following: &#8220;unable to resolve host stackato-xxxx&#8221;. This message can be ignored.</p>
<p>When you are finished editing your /etc/hosts file should look something like this:</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_5etchost.png"><br />
     <img alt="Stackato - edit /etc/hosts" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_5etchost.png" class="as_feature_img as_left" /><br />
</a></p>
<h2><a name="stackato-admin">Step 5: Becoming Stackato: the &#8220;stackato-admin&#8221; command basics</a></h2>
<p>While still logged in with PuTTY to your instance, you&#8217;ll need to type in the final configuration using a few <a target="_new" href="http://docs.stackato.com/commands.html#stackato-admin">stackato-admin commands</a> and then reboot your instance.</p>
<p>The email address used in this step should be the same as for the user who will become the first admin user of the system in Step 6.</p>
<p>The &#8220;private instance IP&#8221; is the one noted as Private IP Address for your EC2 instance.</p>
<p>From the command line, type in the following stackato-admin commands substituting your domain information :</p>
<pre>
$ stackato-admin admin grant admin1@gorilla-mgmt.com
$ stackato-admin become all -m 10.110.201.176 -e api.paas.gorilla-mgmt.com -h paas --domain paas.gorilla-mgmt.com
</pre>
<p>Now reboot so all the changes take effect.</p>
<pre>
$ sudo reboot
</pre>
<p>When you do the &#8220;reboot&#8221; from PuTTY, your session will automatically end and disconnect.</p>
<h2><a name="mgmt-console">Step 6:  Sign in to the Stackato Web Management Console</a></h2>
<p>Direct your browser to https://api.&lt;Fully Qualified Domain Name&gt;/.  In this example,  you would go to https://api.paas.gorilla-mgmt.com.</p>
<p>This will take you to the initial console setup welcome page. Use the same email address here that was granted admin permission in the previous step. <strong>The password that you provide here will also become the stackato system password</strong>, replacing the default password that you used to do your first login.</p>
<p><a rel="shadowbox[Screenshots]" href="http://www.activestate.com/sites/default/files/blog_import_images/aws_6webmgmtwelcome.png"><br />
     <img alt="Stackato Management Console Welcome" style="width: auto" src="http://www.activestate.com/sites/default/files/blog_import_images/aws_6webmgmtwelcome.png" class="as_feature_img as_left" /><br />
</a></p>
<p>After that, you are ready to deploy apps to Stackato, your own single instance personal Private Paas on EC2! </p>
<p>To learn more about deploying applications to Stackato and navigating the Stackato Web Management console, watch this short YouTube video.</p>
<p>Thinking about setting-up a cluster for to scale for production use? Be sure to <a href="mailto:stackato-sales@activestate.com?subject=Stackato%20Enterprise%20">contact our sales team</a> to learn how Stackato Enterprise can help your business.</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3368</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/FRfMN1zh-aA" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/04/13/getting-started-with-private-paas-on-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Cloud Opens Up &#8212; Citrix Takes CloudStack to Apache</title>
		<link>http://sizlopedia.in/2012/04/04/the-cloud-opens-up-citrix-takes-cloudstack-to-apache/</link>
		<comments>http://sizlopedia.in/2012/04/04/the-cloud-opens-up-citrix-takes-cloudstack-to-apache/#comments</comments>
		<pubDate>Wed, 04 Apr 2012 13:31:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[browser]]></category>

		<guid isPermaLink="false">http://sizlopedia.in/2012/04/04/the-cloud-opens-up-citrix-takes-cloudstack-to-apache/</guid>
		<description><![CDATA[Today, Citrix announced that its CloudStack solution will join the Apache Software Foundation, becoming the first Apache cloud platform project. CloudStack now leaves the confines of its private cloudstack.org nest for the broader Apache community. This is positive news for the future of cloud computing, and will foster innovation in both enterprise-grade and open source [...]]]></description>
			<content:encoded><![CDATA[<p>Today, Citrix <a href="http://www.citrix.com/English/NE/news/news.asp?newsID=2323072">announced</a> that its CloudStack solution will join the Apache Software Foundation, becoming the first Apache cloud platform project. CloudStack now leaves the confines of its private cloudstack.org nest for the broader Apache community. This is positive news for the future of cloud computing, and will foster innovation in both enterprise-grade and open source development.</p>
<p>With this move, Citrix has elevated CloudStack&#039;s &quot;open-sourciness,&quot; but hasn&#039;t changed CloudStack&#039;s fundamental operating model: Citrix will continue to offer a commercial CloudStack infrastructure solution, but it will now be built upon a much-more-widely supported open-source framework. The Apache relationship gives CloudStack instant newfound clout with developers, and promises new potential for customers of all shapes and sizes developing cloud services.</p>
<p>At ActiveState, we&#039;ve long recognized the power of open source to drive innovation within the enterprise. <a href="http://www.activestate.com/stackato/get_stackato">Stackato</a>, the application platform for creating a private PaaS, is based on the open-source Cloud Foundry framework. Stackato already provides full support for the CloudStack infrastructure platform, and today&#039;s announcement represents a validation&mdash;of open source, of CloudStack, and of Stackato&#039;s enterprise-ready model. The CloudStack/Apache marriage offers great opportunities for a broader community of developers and partners to build commercial-grade extensions upon CloudStack. And that can deliver on the promise of enterprise cloud success.</p>
<p>&quot;CloudStack&#039;s evolution means greater visibility, flexibility, innovation, and opportunity,&quot; says ActiveState CEO Bart Copeland. &quot;It provides greater visibility for both CloudStack and ActiveState&#039;s Stackato, more choices for customers, and opportunities for development innovation. I look forward to seeing the exciting ways CloudStack will be extended in the future.&quot;</p>
<p>&quot;Stackato&#039;s private-PaaS middleware solution complements CloudStack,&quot; notes Sheng Liang, CTO of the Citrix Cloud Platforms Group. &quot;And with its open-source heritage, ActiveState bridges two leading open cloud communities&mdash;open source Cloudstack at an infrastructure layer, and the open source Cloud Foundry at the PaaS layer.&quot;</p>
<p>Since its introduction in 2011, ActiveState&#039;s Stackato has supported Citrix Xen and XenServer infrastructure, and by extension, CloudStack. Being part of the market-leading Apache development community will raise CloudStack&#039;s visibility, and can only help drive cloud-computing adoption. When Stackato is paired with CloudStack, enterprise customers can deploy an open source-based private cloud with the assurance of enterprise technical support from both Citrix and ActiveState, and the full collaborative support of the Apache open source community. And that&#039;s an enterprise model that benefits from the best of both the open source and commercial development worlds.</p>
<p>&lt;!&#8211;</p>
<p>&#8211;&gt;</p>
<div>
<div>
<h2>Trackback URL for this post:</h2>
<div>http://www.activestate.com/trackback/3364</div>
</div>
</div>
<p><img src="http://feeds.feedburner.com/~r/activestate/blog/~4/22snhuS--oA" height="1" width="1" /></p>
]]></content:encoded>
			<wfw:commentRss>http://sizlopedia.in/2012/04/04/the-cloud-opens-up-citrix-takes-cloudstack-to-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

