Author: everett
Date: Mon Jun 23 14:59:52 2014
New Revision: 1604832
URL: http://svn.apache.org/r1604832
Log:
deploy jclouds site content
Added:
jclouds/site-content/guides/google/
jclouds/site-content/guides/google/index.html
Modified:
jclouds/site-content/guides/index.html
Added: jclouds/site-content/guides/google/index.html
URL:
http://svn.apache.org/viewvc/jclouds/site-content/guides/google/index.html?rev=1604832&view=auto
==============================================================================
--- jclouds/site-content/guides/google/index.html (added)
+++ jclouds/site-content/guides/google/index.html Mon Jun 23 14:59:52 2014
@@ -0,0 +1,257 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+<title>Apache jclouds® :: Google Cloud Platform: Getting Started
Guide</title>
+<meta name="viewport" content="width=device-width, initial-scale=1.0">
+<meta name="description" content="">
+<meta name="author" content="">
+
+<!--link rel="stylesheet/less" href="less/bootstrap.less" type="text/css" /-->
+<!--link rel="stylesheet/less" href="less/responsive.less" type="text/css" /-->
+<!--script src="js/less-1.3.3.min.js"></script-->
+<!--append â#!watchâ to the browser URL, then refresh the page. -->
+
+<link href="/css/bootstrap.min.css" rel="stylesheet">
+<link href="/css/style.css" rel="stylesheet">
+<link href="/css/syntax.css" rel="stylesheet">
+
+<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
+<!--[if lt IE 9]>
+<script src="js/html5shiv.js"></script>
+<![endif]-->
+
+<!-- Fav and touch icons -->
+<!--
+<link rel="apple-touch-icon-precomposed" sizes="144x144"
href="/img/apple-touch-icon-144-precomposed.png">
+<link rel="apple-touch-icon-precomposed" sizes="114x114"
href="/img/apple-touch-icon-114-precomposed.png">
+<link rel="apple-touch-icon-precomposed" sizes="72x72"
href="/img/apple-touch-icon-72-precomposed.png">
+<link rel="apple-touch-icon-precomposed"
href="/img/apple-touch-icon-57-precomposed.png">
+-->
+<link rel="shortcut icon" href="/favicon.ico">
+
+<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml"
title="Blog Posts Feed">
+<link rel="alternate" type="application/atom+xml"
href="/releasenotes/atom.xml" title="Release Notes Feed">
+
+<script type="text/javascript" src="/js/jquery.min.js"></script>
+<script type="text/javascript" src="/js/bootstrap.min.js"></script>
+<script type="text/javascript" src="/js/toc.js"></script>
+
+<script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-8638379-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript';
ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' :
'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(ga, s);
+ })();
+</script>
+<script type="text/javascript">
+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new
Date();a=s.createElement(o),
+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
+
+ ga('create', 'UA-47106724-1', 'jclouds.apache.com');
+ ga('send', 'pageview');
+</script>
+
+ <script type="text/javascript">
+ $(document).ready(createTOC);
+ </script>
+ </head>
+ <body>
+ <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
+ <div class="container">
+ <div class="navbar-header">
+ <button type="button" class="navbar-toggle" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1">
+ <span class="sr-only">Toggle navigation</span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="/">Apache jclouds ®</a>
+ </div>
+
+ <div class="collapse navbar-collapse"
id="bs-example-navbar-collapse-1">
+ <ul class="nav navbar-nav">
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle"
data-toggle="dropdown">Getting Started<strong class="caret"></strong></a>
+ <ul class="dropdown-menu">
+ <li><a href="/start/what-is-jclouds/">What Is Apache
jclouds?</a></li>
+ <li><a href="/start/install/">Installation
Guide</a></li>
+ <li class="divider"></li>
+ <li><a href="/start/concepts/">Core Concepts</a></li>
+ <li><a href="/start/compute/">ComputeService</a></li>
+ <li><a href="/start/blobstore/">BlobStore</a></li>
+ <li><a
href="http://github.com/jclouds/jclouds-examples">Examples</a></li>
+ </ul>
+ </li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle"
data-toggle="dropdown">Documentation<strong class="caret"></strong></a>
+ <ul class="dropdown-menu">
+ <li><a href="/reference/providers/">Cloud
Providers</a></li>
+ <li><a href="/guides">User Guides</a></li>
+ <li><a
href="/reference/troubleshooting/">Troubleshooting</a></li>
+ <li><a
href="/reference/configuration/">Configuration</a></li>
+ <li><a href="/reference/logging/">Logging</a></li>
+ <li><a href="/reference/javadoc/">Javadoc</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Developer Guides</li>
+ <li><a
href="http://wiki.apache.org/jclouds/">Wiki</a></li>
+ </ul>
+ </li>
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle"
data-toggle="dropdown">Community<strong class="caret"></strong></a>
+ <ul class="dropdown-menu">
+ <li><a href="/community/">Get In Touch!</a></li>
+ <li><a href="http://www.meetup.com/jclouds/">Attend An
Event</a></li>
+ <li><a href="/community/users/">Who Is Using
jclouds?</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Contribute</li>
+ <li><a href="/reference/report-a-bug/">Report a
Bug</a></li>
+ <li><a
href="http://wiki.apache.org/jclouds/How%20to%20Contribute">How To Contribute
Code</a></li>
+ <li><a
href="http://wiki.apache.org/jclouds/How%20to%20Contribute%20Documentation">How
To Contribute Documentation</a></li>
+ </ul>
+ </li>
+ <li><a href="/blog">Blog</a></li>
+ </ul>
+ <ul class="nav navbar-nav navbar-right">
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle"
data-toggle="dropdown">Release Notes<strong class="caret"></strong></a>
+ <ul class="dropdown-menu">
+ <!-- only keep the release notes for supported
versions in this list -->
+ <li><a href="/releasenotes/1.7.3">1.7.3</a></li>
+ <li><a href="/releasenotes/1.7.2">1.7.2</a></li>
+ <li><a href="/releasenotes/1.7.1">1.7.1</a></li>
+ <li><a href="/releasenotes/1.7.0">1.7.0</a></li>
+ <li><a href="/releasenotes/1.6.3">1.6.3</a></li>
+ <li><a href="/releasenotes/1.6.2">1.6.2</a></li>
+ <li><a href="/releasenotes/1.6.1">1.6.1</a></li>
+ <li class="divider"></li>
+ <li class="dropdown-header">Previous releases</li>
+ <li><a href="/releasenotes">Release archive</a></li>
+ </ul>
+ </li>
+ <li>
+ <div>
+ <a class="btn btn-success navbar-btn"
href="/start/install/">
+ <span class="glyphicon glyphicon-download"></span>
+ Install
+ </a>
+ </div>
+ </li>
+ </ul>
+ </div>
+ </div>
+</nav>
+
+ <div class="container">
+ <div class="page-header">
+ <h1>Google Cloud Platform: Getting Started Guide</h1>
+ </div>
+ <div id="toc"></div>
+ <div id="content">
+ <h2><a id="intro"></a>Introduction</h2>
+
+<p>This guide helps you to get started with <a
href="https://cloud.google.com/">Google Cloud Platform</a> development using
jclouds.</p>
+
+<p>Currently, <a href="https://developers.google.com/compute/">Google Compute
Engine</a> is covered. This is a <a
href="http://jclouds.apache.org/start/compute/">compute service</a> that allows
you to run vitual machines on Google's infrastructure.</p>
+
+<p>This guide assumes you have a Google Cloud project. If you do not have a
project yet, you can sign up via the <a
href="https://console.developers.google.com/">Developer Console</a>. For GCE,
you need to set up billing.</p>
+
+<h2><a id="auth"></a>Authentication</h2>
+
+<p>Google Cloud Platform uses OAuth2 which gives a variety of choices how to
authenticate:</p>
+
+<ol>
+<li>You can ask a user for consent to perform operations in their name.</li>
+<li>You can create a service account and authenticate using its private
key.</li>
+<li>Unless configured otherwise, programs running on a GCE instance can
perform operations as the project's default service account (<a
href="https://developers.google.com/compute/docs/authentication">documentation</a>).</li>
+</ol>
+
+
+<p>You can find all the details in <a
href="https://developers.google.com/accounts/docs/OAuth2">the
documentation</a>, while in these examples we will focus on option 2: service
accounts.</p>
+
+<p>To create a new service account:</p>
+
+<ul>
+<li>Go to the <a href="https://console.developers.google.com/">Developer
Console</a>.</li>
+<li>Choose your project.</li>
+<li>Choose API & auth > Credentials.</li>
+<li>Click "Create new Client ID".</li>
+<li>Select "Service account" and click "Create service ID".</li>
+<li>Details of the new service account will be displayed. You will also be
able to download the private key for this account, which you will need for
authentication. Make a note of the service account email address - you will
need it to use the account.</li>
+<li>To keep the examples simple, we use private keys without passwords. It
might be something you will not do in a production environment, but to create a
private key without a password for use in the examples, run: <code>openssl
pkcs12 -in {downloaded_file}.p12 -nodes -out gcp-example.pem -passin
pass:notasecret</code>.</li>
+</ul>
+
+
+<h2><a id="examples"></a>Running examples</h2>
+
+<p>A good starting point for using GCE vis jclouds is to run <a
href="https://github.com/jclouds/jclouds-examples/tree/master/google/src/main/java/org/jclouds/examples/google/computeengine">examples
programs</a>. For this, download the <a
href="https://github.com/jclouds/jclouds-examples">jclouds-example</a>
repository and build the "google" Maven project. Each example can be run by
passing the service account email as the first parameter and the path to the
gcp-example.pem file (created by removing the password from the *.p12 file by
the command above) as the second.</p>
+
+<p>For example, running <a
href="https://github.com/jclouds/jclouds-examples/blob/master/google/src/main/java/org/jclouds/examples/google/computeengine/CreateServer.java">org.jclouds.examples.google.computeengine.CreateServer</a>
will create a new virtual machine running Debian (and its persistent disk).
Open the <a href="https://console.developers.google.com/">Developer Console</a>
and navigate to your project and choose "Compute Engine" to see it. You can use
gcutil from Google Cloud SDK to ssh to that machine - see the SSH button on
that page.</p>
+
+<p>If anything failed, you can see the operation status on Compute Engine >
Operations page of the <a
href="https://console.developers.google.com/">Developer Console</a>.</p>
+
+ </div>
+ <div class="row clearfix">
+ <div id="footer" class="col-md-12 column">
+ <div id="footer">
+ <hr/>
+ <div class="row clearfix">
+ <div class="col-md-2 column">
+ <p class="text-center">
+ <a class="text-primary" href="/start/">Getting Started</a>
+ </p>
+ </div>
+ <div class="col-md-2 column">
+ <p class="text-center">
+ <a class="text-primary" href="/reference/report-a-bug/">Report
a Bug</a>
+ </p>
+ </div>
+ <div class="col-md-2 column">
+ <p class="text-center">
+ <a
href="https://github.com/jclouds/jclouds-site/edit/master/guides/google.md">Fix
This Page</a><a class="text-primary"
href="https://wiki.apache.org/jclouds/How%20to%20Contribute%20Documentation"><sup>*</sup></a>
+ </p>
+ </div>
+ <div class="col-md-2 column">
+ <p class="text-center">
+ <a class="text-primary"
href="https://wiki.apache.org/jclouds/How%20to%20Contribute">Contribute Code</a>
+ </p>
+ </div>
+ <div class="col-md-2 column">
+ <p class="text-center">
+ <a class="text-primary" href="/community/">Contact Us</a>
+ </p>
+ </div>
+ <div class="col-md-2 column">
+ <p class="text-center">
+ <a class="text-primary"
href="https://twitter.com/jclouds">Follow Us</a>
+ </p>
+ </div>
+ </div>
+ <hr style="margin-top: 10px"/>
+ <div class="row clearfix">
+ <div class="col-md-12 column">
+ <p class="text-center">
+ Copyright © 2011-2014 <a href="http://www.apache.org">The
Apache Software Foundation</a>. All Rights Reserved.
+ </p>
+ <p class="text-center">
+ Apache, jclouds, Apache jclouds, the jclouds logo, and the
Apache feather logos are registered trademarks or trademarks of the Apache
Software Foundation.
+ </p>
+ <p class="text-center">
+ <img src="/img/feather-small.gif" width="80", height="24"/>
+ </p>
+ <br/>
+ </div>
+ </div>
+</div>
+
+ </div>
+ </div>
+ </div>
+ </body>
+</html>
Modified: jclouds/site-content/guides/index.html
URL:
http://svn.apache.org/viewvc/jclouds/site-content/guides/index.html?rev=1604832&r1=1604831&r2=1604832&view=diff
==============================================================================
--- jclouds/site-content/guides/index.html (original)
+++ jclouds/site-content/guides/index.html Mon Jun 23 14:59:52 2014
@@ -158,6 +158,7 @@
<li><a href="bluelock">BlueLock vCloud</a></li>
<li><a href="cloudsigma">Cloud Sigma</a></li>
<li><a href="go-grid">Go Grid</a></li>
+<li><a href="google">Google Cloud Platform</a></li>
<li><a href="hpcloud">HP Cloud</a></li>
<li><a href="openstack">OpenStack</a></li>
<li><a href="rackspace">Rackspace</a></li>