~gbancroft-canonical/juju-website/homepage-realignment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/*
Template Name: Get started
*/
$template_id = 'get-started';
?>

<?php get_header(); ?>

	<div class="grid-12">
		<h2>Step-by-step guide to getting started</h2>
		<div class="container-step clearfix">
			<div class="box grid-3">
				<a href="http://www.ubuntu.com/download/ubuntu/download">Do you need a copy of Ubuntu?</a>
			</div>
			<div class="step grid-9">
				<span class="number">1</span>
				<div>
					<h2>Install Juju</h2>
					<p><tt>sudo add-apt-repository ppa:juju/pkgs</tt><br/>
<tt>sudo apt-get update && sudo apt-get install juju</tt></p>
Mac users, check out our <a href="http://jujutools.github.com/">beta package</a>.
					</a>
				</div>
			</div>
			<div class="step grid-9">
				<span class="number">2</span>
				<div>
					<h2>Take 5 minutes to get to know Juju</h2>
					<p>With Juju installed, press <strong>Ctrl</strong>+<strong>Alt</strong>+<strong>T</strong> to open the Terminal and create a new ssh keypair if you don't already have one:</p>
					<code>ssh-keygen -t rsa -b 2048</code>

					<p>And then create a new environment by typing:</p>
					<code>juju bootstrap</code>
					<p>Then edit <code>~/.juju/environments.yaml</code> with the credentials to your cloud provider:
                                        <ul>
					<li>For <a href="https://juju.ubuntu.com/docs/getting-started.html#configuring-your-environment-using-ec2">Amazon AWS</a></li>
					<li>For <a href="https://juju.ubuntu.com/docs/provider-configuration-openstack.html">OpenStack</a></li>
					<li>For <a href=https://juju.ubuntu.com/docs/getting-started.html#configuring-a-local-environment">your own local machine</a>.</li>
					</ul></p>
					<p>Now start browsing the <a href="http://jujucharms.com/charms">Charm Store</a> for the things you want to deploy.</p>

					<a href="https://juju.ubuntu.com/docs/getting-started.html">Learn more about setting up Juju in the documentation;</a>
				</div>
			</div>
			<div class="step grid-9">
				<span class="number">3</span>
				<div>
					<h2>Deploy and Manage Services</h2>
					<p>Now you're ready to deploy things into your cloud. Let's deploy a WordPress blog, at scale.</p>
					<p><code>juju bootstrap<br>
					juju deploy wordpress<br>
					juju deploy mysql<br>
					juju add-relation wordpress mysql</code></p>

					<p>Now get a cup of coffee while Juju not only provisions the instances, but installs and configures them to talk to each other. No more wading around looking for AMIs, you get the latest 64 bit Ubuntu Server image and the service you deploy on the instance, that's it! After your cloud provider has finished deploying, you can check out your environment, and then expose it to the world.</p>

					<p><code>juju expose wordpress<br>
					juju status</code></p>

</p>The status shows you the public IP your provider has given you, paste that into a browser and you're done! This is a simple example, check out how we do <a href="http://jujucharms.com/charms/precise/hadoop">Hadoop</a>, any <a href="http://jujucharms.com/charms/precise/node-app">Node.js application</a>, and even <a href="http://jujucharms.com/charms/precise/cassandra">Cassandra</a>.</p>

					<a href="/resources/technologies/ubuntu-developer-stack">Find out more about the Ubuntu Developer Stack &rsaquo;</a>
				</div>
			</div>
			<div class="step grid-9">
				<span class="number">4</span>
				<div>
					<h2>Scale like a champ</h2>
					<p>Lots of tools help automate your deployments, but Juju isn't just about launching instances, it's about managing your deployment's entire lifecycle. The traffic really starting to come in? Let's scale out WordPress with just a simple command:</p>
					<p><code>juju add-unit wordpress</code></p>
<p>Since you've already defined the relationship between MySQL and WordPress at the <i>service level</i> rather than the machine level, there's nothing else for you to do. This new instance will automatically connect to MySQL and start load balancing. Let's add a few more nodes for a 6 node auto-loadbalancing WordPress environment:</p>
					<p><code>juju add-unit -n5 wordpress</code></p>

<p>Still not enough? let's drop in Memcached:</p>

					<p><code>juju deploy memcached<br>
   					juju add-relation wordpress memcached</code></p>

<p>And just like before, since you're at the service level and not the machine level, every single WordPress instance will just use that memcached. In the cloud we're talking about dozens, hundreds, even thousands of servers. We believe that to meet thes hyperscale needs that managing things at a higher, service oriented level is the way to go, and we built Juju to get you there.</p> 

				</div>
			</div>
		</div>
		<div class="community grid-9">
			<div>
				<span>Oh, and if you get stuck, there's a whole <a href="/community">community of developers</a> who can help!</span>
			</div>
		</div>
	</div>

<?php get_footer(); ?>