Tree [6ce8ed] asf_release_1.0.0 /  History

HTTPS access


File Date Author Commit
 Allura 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 AlluraTest 2013-07-26 Yuriy Arhipov Yuriy Arhipov [e23020] [#3154] ticket:407 ForgeBlog API refactoring
 ForgeActivity 2012-06-26 Tim Van Steenburgh Tim Van Steenburgh [d13b9c] Merge branch 'dev' into tv/4142
 ForgeBlog 2013-08-12 Tim Van Steenburgh Tim Van Steenburgh [675495] [#6480] Improvements to Trac importer
 ForgeChat 2013-07-18 Tim Van Steenburgh Tim Van Steenburgh [2dcec8] [#5517] Add permission descriptions
 ForgeDiscussion 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 ForgeGit 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 ForgeImporters 2013-08-15 Cory Johns Cory Johns [37aacc] [#6506] Shortened Trac Ticket Importer tool_label
 ForgeLink 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 ForgeSVN 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 ForgeShortUrl 2013-07-18 Tim Van Steenburgh Tim Van Steenburgh [2dcec8] [#5517] Add permission descriptions
 ForgeTracker 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 ForgeUserStats 2013-07-18 Tim Van Steenburgh Tim Van Steenburgh [2dcec8] [#5517] Add permission descriptions
 ForgeWiki 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 NoWarnings 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 fuse 2010-05-21 Rick Copeland Rick Copeland [131348] [#1206] Add support for hosting SCM repositories
 scripts 2013-08-02 Tim Van Steenburgh Tim Van Steenburgh [512ee4] [#6480] Add trac ticket importer plugin
 solr_config 2010-03-23 Rick Copeland Rick Copeland [01d9bf] [#118] - Testing infrastructure upgrades
 vagrant 2012-04-24 Tim Van Steenburgh Tim Van Steenburgh [8cc8b9] [#3907] Create a vagrant box for Allura.
 .gitattributes 2011-03-13 Wolf Wolf [4f057b] make git-diff hunk headers python-aware
 .gitignore 2013-07-23 Cory Johns Cory Johns [227396] [#6456] Added documentation for ForgeImporters ...
 .gitmodules 2009-12-01 Wolf Wolf [9ad1f9] Adding Ming as 'submodule'
 .travis.yml 2013-05-29 Dave Brondsema Dave Brondsema [c33c65] [#6287] provide travis-ci.org config file
 CHANGES unknown
 CONTRIBUTING 2011-01-24 Wolf Wolf [c4b566] [#1367] Add CONTRIBUTING
 LICENSE 2010-09-22 Wolf Wolf [e09d8d] [#793] add BSD license to each package and to t...
 Makefile 2012-02-10 Yaroslav Luzin Yaroslav Luzin [c49955] ticket:2 Added a simple Makefile required for g...
 Makefile.def.buildbot 2012-02-10 Yaroslav Luzin Yaroslav Luzin [c49955] ticket:2 Added a simple Makefile required for g...
 NOTICE 2013-08-20 Cory Johns Cory Johns [6ce8ed] [#6422] Added "incubating" to NOTICE files
 README.markdown 2013-06-17 Tim Van Steenburgh Tim Van Steenburgh [2761f3] [#4559] In README, %s/anvil/env-allura/g
 coverage-report-all.sh 2011-01-27 Paul Sokolovsky Paul Sokolovsky [397c72] [#1237] Add script to produce combined coverage...
 rat-excludes.txt 2013-05-06 Dave Brondsema Dave Brondsema [37e91c] [#4122] rename AlluraTesting dir to AlluraTest,...
 rebuild-all.bash 2013-03-14 Dave Brondsema Dave Brondsema [d4a0cf] [#5973] rename rebuild.bash to rebuild-all.bash...
 requirements-common.txt 2013-08-06 Dave Brondsema Dave Brondsema [fb0626] [#6461] remove gdata dep since it'll be replace...
 requirements-optional.txt 2013-07-31 Tim Van Steenburgh Tim Van Steenburgh [868694] Move requests pkg to common dependencies
 requirements-sf.txt 2013-08-16 Dave Brondsema Dave Brondsema [2b0a10] [#6506] Added TracWikiImporter to requirements-...
 requirements.txt 2012-03-28 Dave Brondsema Dave Brondsema [268dc0] rename requirements-dev.txt->requirements.txt
 run_clonedigger 2013-05-06 Dave Brondsema Dave Brondsema [37e91c] [#4122] rename AlluraTesting dir to AlluraTest,...
 run_tests 2013-05-28 Dave Brondsema Dave Brondsema [d2a60b] [#6277] make forgeuserstats tmp repos not confl...
 update.sh 2012-07-13 Dave Brondsema Dave Brondsema [45b7b9] [#4539] add script to get an environment up to ...

Read Me

Sandbox Creation

We'll use VirtualBox and Ubuntu 12.04 (11.10 works too) to create a disposable sandbox for Allura development/testing.

  • Download and install VirtualBox for your platform.

  • Download a minimal Ubuntu 12.04 64-bit ISO.

  • Create a new virtual machine in Virtual Box, selecting Ubuntu (64 bit) as the OS type. The rest of the wizards' defaults are fine.

  • When you launch the virtual machine for the first time, you will be prompted to attach your installation media. Browse to the mini.iso that you downloaded earlier.

  • After a text-only installation, you may end up with a blank screen and blinking cursor. Press Alt-F1 to switch to the first console.

  • Consult available documentation for help installing Ubuntu.

Installation

Before we begin, you'll need to install some system packages.

~$ sudo aptitude install git-core default-jre-headless python-dev libssl-dev libldap2-dev libsasl2-dev libjpeg8-dev zlib1g-dev

To install MongoDB 2.2.3, follow the instructions here:

http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

Optional, for SVN support:

~$ sudo aptitude install subversion python-svn

Setting up a virtual python environment

The first step to installing the Allura platform is installing a virtual environment via virtualenv. This helps keep our distribution python installation clean.

~$ sudo aptitude install python-pip
~$ sudo pip install virtualenv

Once you have virtualenv installed, you need to create a virtual environment. We'll call our Allura environment 'env-allura'.

~$ virtualenv env-allura

This gives us a nice, clean environment into which we can install all the allura dependencies.
In order to use the virtual environment, you'll need to activate it:

~$ . env-allura/bin/activate

You'll need to do this whenever you're working on the Allura codebase so you may want to consider adding it to your ~/.bashrc file.

Installing the Allura code and dependencies

Now we can get down to actually getting the Allura code and dependencies downloaded and ready to go.

(env-allura)~$ mkdir src
(env-allura)~$ cd src
(env-allura)~/src$ git clone https://git-wip-us.apache.org/repos/asf/incubator-allura.git allura

Although the application setup.py files define a number of dependencies, the requirements.txt files are currently the authoritative source, so we'll use those with pip to make sure the correct versions are installed.

(env-allura)~/src$ cd allura
(env-allura)~/src/allura$ pip install -r requirements.txt

This will take a while. If you get an error from pip, it is typically a temporary download error. Just run the command again and it will quickly pass through the packages it already downloaded and then continue.

Optional, for SVN support: symlink the system pysvn package into our virtual environment

(env-allura)~/src/allura$ ln -s /usr/lib/python2.7/dist-packages/pysvn ~/env-allura/lib/python2.7/site-packages/

And now to setup the Allura applications for development. If you want to setup all of them, run ./rebuild-all.bash
If you only want to use a few tools, run:

cd Allura
python setup.py develop
cd ../ForgeWiki   # required tool
python setup.py develop
# repeat for any other tools you want to use

Initializing the environment

The Allura forge consists of several components, all of which need to be running to have full functionality.

SOLR search and indexing server

We have a custom config ready for use.

(env-allura)~$ cd ~/src
(env-allura)~/src$ wget -nv http://archive.apache.org/dist/lucene/solr/4.2.1/solr-4.2.1.tgz
(env-allura)~/src$ tar xf solr-4.2.1.tgz && rm -f solr-4.2.1.tgz
(env-allura)~/src$ cp -f allura/solr_config/schema.xml solr-4.2.1/example/solr/collection1/conf

(env-allura)~/src$ cd solr-4.2.1/example/
(env-allura)~/src/apache-solr-1.4.1/example/$ mkdir ~/logs/
(env-allura)~/src/apache-solr-1.4.1/example/$ nohup java -jar start.jar > ~/logs/solr.log &

Allura task processing

Allura uses a background task service called "taskd" to do async tasks like sending emails, and indexing data into solr, etc. Let's get it running

(env-allura)~$ cd ~/src/allura/Allura
(env-allura)~/src/allura/Allura$ nohup paster taskd development.ini > ~/logs/taskd.log &

The application server

In order to initialize the Allura database, you'll need to run the following:

(env-allura)~/src/allura/Allura$ paster setup-app development.ini

This shouldn't take too long, but it will start the taskd server doing tons of stuff in the background. Once this is done, you can start the application server:

(env-allura)~/src/allura/Allura$ nohup paster serve --reload development.ini > ~/logs/tg.log &

Next Steps

Go to the Allura webapp running on your local machine port 8080.
(If you're running this inside a VM, you'll probably have to configure the port forwarding settings)

You can log in with username admin1, test-user or root. They all have password "foo". (For more details
on the default data, see bootstrap.py)

There are a few default projects (like "test") and neighborhoods. Feel free to experiment with them. If you want to
register a new project in your own forge, visit /p/add_project

Extra