← Back to team overview

launchpad-dev team mailing list archive

Release of lpsetup

 

Hi,

As a by-product of the work the Yellow Squad has been doing to parallelize the Launchpad test suite, we've created a tool called 'lpsetup' that replaces the rocketfuel-setup scripts but with lots of new functionality.

You can use lpsetup to prepare your development machine to do Launchpad development as with rocketfuel-setup but you can also have it install everything into an LXC container, leaving your real machine mostly untouched.  Going the LXC route is straightforward and very clean.

Getting Started
-------------------

* Grab the lpsetup PPA from ppa/launchpad:

% sudo add-apt-repository ppa:launchpad/ppa
% sudo apt-get update
% sudo apt-get install lpsetup

What'll it do?
----------------

Every lpsetup command accepts the --dry-run option which just shows you what it would do.  When running a command for real, it will display the changes that will be made and give you the option of canceling.

Creating Launchpad environment using LXC
--------------------------------------------------------

% lp-setup install-lxc

Creating Launchpad environment on your host
-----------------------------------------------------------

% lp-setup init-target
% lp-setup init-repo
% cd ~/launchpad/lp-branches/sandbox
% lp-setup update
% sudo make install


The help for lp-setup and for all of its commands is pretty extensive.  The two scenarios I've listed are the most basic using reasonable defaults but you can use the tool to configure your machine to your liking.

Please give it a try.  In the not too distant future we want to remove the rocketfuel scripts  and remove duplicated code from the launchpad tree (e.g. utilities/launchpad-database-setup).

If you have questions, ask here or in #launchpad-dev.

--Brad




Follow ups