Jump to: navigation, search

Difference between revisions of "Getting The Code"

Line 2: Line 2:
 
= Getting the source code =
 
= Getting the source code =
  
[[OpenStack]] manages source code in git using a code review tool called Gerrit. The workflow for working with Gerrit is described at [[GerritWorkflow]]. git repositories are mirrored to github for ease of fetching.
+
OpenStack manages source code in git using a code review tool called Gerrit. The workflow for working with Gerrit is described at [[GerritWorkflow]]. Git repositories are mirrored to Github for ease of fetching.
  
To get a copy of any of the other [[OpenStack]] projects, you can look at the [https://github.com/openstack OpenStack Organization] and browse, or you can clone a repo. For instance, for swift:
+
To get a copy of any of the other OpenStack projects, you can look at the Github [https://github.com/openstack OpenStack organization] and browse, or you can clone a repo. For instance, for swift:
  
  
Line 12: Line 12:
  
  
= Nova Dependencies (Ubuntu) =
+
= Getting dependencies =
  
Commands for installing dependencies on Ubuntu => [[DependsOnUbuntu]]
+
== Nova  ==
 +
* Commands for installing dependencies on Ubuntu => [[DependsOnUbuntu]]
 +
* Commands for installing dependencies on OSX => [[DependsOnOSX]]
  
= Nova Dependencies (OSX) =
+
== Swift ==
  
Commands for installing dependencies on OSX => [[DependsOnOSX]]
+
=== All in One (Manual Install) ===
 
 
= Swift All in One (Manual Install) =
 
  
 
Swift documentation can be found at [http://swift.openstack.org/]].  The [[http://swift.openstack.org/development_saio.html Swift All in One] documentation will lead you step by step to do a development install of Swift on a VM.
 
Swift documentation can be found at [http://swift.openstack.org/]].  The [[http://swift.openstack.org/development_saio.html Swift All in One] documentation will lead you step by step to do a development install of Swift on a VM.
  
= Swift All In One (Chef Auto Install) =
+
=== All In One (Chef Auto Install) ===
  
 
You'll want to have an Ubuntu 10.04 system/VM that you're willing to turn in to a Swift development environment.  First step is to get the SSH key you are using for launchpad in your ~/.ssh directory.
 
You'll want to have an Ubuntu 10.04 system/VM that you're willing to turn in to a Swift development environment.  First step is to get the SSH key you are using for launchpad in your ~/.ssh directory.

Revision as of 12:02, 12 October 2011

Getting the source code

OpenStack manages source code in git using a code review tool called Gerrit. The workflow for working with Gerrit is described at GerritWorkflow. Git repositories are mirrored to Github for ease of fetching.

To get a copy of any of the other OpenStack projects, you can look at the Github OpenStack organization and browse, or you can clone a repo. For instance, for swift:


git clone git://github.com/openstack/swift.git


Getting dependencies

Nova

Swift

All in One (Manual Install)

Swift documentation can be found at [1]]. The [Swift All in One documentation will lead you step by step to do a development install of Swift on a VM.

All In One (Chef Auto Install)

You'll want to have an Ubuntu 10.04 system/VM that you're willing to turn in to a Swift development environment. First step is to get the SSH key you are using for launchpad in your ~/.ssh directory.

Log in as your user, and do the following:


curl http://c0020195.cdn1.cloudfiles.rackspacecloud.com/install-swift.sh > install-swift.sh
bash install-swift.sh


You'll be prompted for your username, group name (which is your user group name likely identical to your username), launchpad login, and the email address you want bzr to use when sending commits. Eventually, you will also be prompted to accept the Launchpad SSH Host Key, and may be prompted for your keyphrase.

When the script completes, you'll have a functioning Swift All In One that's prepped for running the functional tests.