git clone https://@opensourceprojects.eu/git/p/osp/allura-contrib osp-allura-contrib



File Date Author Commit
Allura 2013-03-20 Dave Brondsema Dave Brondsema <Commit 6127cf7ac716ade1c5f0aa6d5b78b49b4a04dc80> [#5973] preserve deterministic order in diff li...
AlluraTesting 2013-04-03 Dave Brondsema Dave Brondsema [7d53aa] [#5973] allow print in ForgeSVN/setup.py
ForgeActivity 2013-02-19 Dave Brondsema Dave Brondsema <Commit eb3bea3ec030c826ed519bd2b79592360d529095> [#5837] remove pylons backwards compat code
ForgeBlog 2013-03-15 Igor Bondarenko Igor Bondarenko <Commit f211493fef93814cbbe27209e5346e339bdc9d4a> [#2835] ticket:303 Get rid of `title_s`, use `t...
ForgeChat 2013-03-15 Igor Bondarenko Igor Bondarenko <Commit f211493fef93814cbbe27209e5346e339bdc9d4a> [#2835] ticket:303 Get rid of `title_s`, use `t...
ForgeDiscussion 2013-01-15 Peter Hartmann Peter Hartmann <Commit 21b68eb28dfeb3462d064a07df09f912c7774189> [#4648] Add NOTICE files alongside existing LIC...
ForgeGit 2013-03-29 Cory Johns Cory Johns <Commit 07861f4a485fa8c4fd199e8932f25defc7bb218e> [#5963] Minor fixups to code-snapshots
ForgeLink 2013-01-15 Peter Hartmann Peter Hartmann <Commit 21b68eb28dfeb3462d064a07df09f912c7774189> [#4648] Add NOTICE files alongside existing LIC...
ForgeSVN 2013-04-03 Dave Brondsema Dave Brondsema <Commit 3a3e769b2fc82ac9950ac8cced1239b976d6a4d5> [#5973] simple pysvn import check
ForgeShortUrl 2013-03-19 Dave Brondsema Dave Brondsema <Commit 1f9e46b3063e07689f940b13af2960be0233002f> [#5973] remove sf.net-specific shorturl migration
ForgeTracker 2013-03-27 Cory Johns Cory Johns <Commit cbbd95eea81483cfd72a36072a56d38ea5f3b280> [#5932] Fixed Invalid field error for removed _...
ForgeWiki 2013-03-15 Igor Bondarenko Igor Bondarenko <Commit f211493fef93814cbbe27209e5346e339bdc9d4a> [#2835] ticket:303 Get rid of `title_s`, use `t...
NoWarnings 2013-01-15 Peter Hartmann Peter Hartmann <Commit 21b68eb28dfeb3462d064a07df09f912c7774189> [#4648] Add NOTICE files alongside existing LIC...
fuse 2011-11-19 Rick Copeland Rick Copeland <Commit 943e3a7c9509d7bd85763e50be819ca9e0fd59a1> Fix FUSE filesystem to handle path correctly
scripts 2013-03-26 Jon Schewe Jon Schewe <Commit e8161e69c103daed29313d626cb358c3423e46ed> Create a new JSON object for the ticket to import
solr_config 2010-03-23 Rick Copeland Rick Copeland <Commit 01d9bfb1ddef49835820f1d10b2414ba56703480> [#118] - Testing infrastructure upgrades
vagrant 2013-04-03 Dave Brondsema Dave Brondsema <Commit eeb743b98d1dc213749517905faa5e0bd1d8f731> Revert "[#5973] crazy pysvn hacking so that pac...
.gitattributes 2011-03-13 Wolf Wolf <Commit 4f057bfbac58f84bffea3fdfa9e562415a6bf359> make git-diff hunk headers python-aware
.gitignore 2013-01-22 Tim Van Steenburgh Tim Van Steenburgh <Commit d8a364b2ca1f320b66830ecc9958952064e5e466> Update .gitignore with new ini file for forced ...
.gitmodules 2009-12-01 Wolf Wolf <Commit e4830bd691eb52e6ae1e0921b09247bf4ec3aed5> Remove Ming submodule
CONTRIBUTING 2013-03-18 Dave Brondsema Dave Brondsema <Commit 556feffa63c2b60af9c0001a7f0cfcf2a7f2c40b> [#5973] update repo location
LICENSE 2011-02-01 Wolf Wolf <Commit 23c644ff05fdc87e89b443afe1f6f9d25b4e2cff> License is Apache 2
Makefile 2012-06-22 Tim Van Steenburgh Tim Van Steenburgh <Commit 9d8474bbcea68af43f25a4c90fd87bfd7cc5594c> Merge branch 'dev' into tv/4142
Makefile.def.buildbot 2013-03-14 Dave Brondsema Dave Brondsema <Commit d4a0cfdc00f31c4a682a423d58043d42ff1c1696> [#5973] rename rebuild.bash to rebuild-all.bash...
README.markdown 2013-04-03 Dave Brondsema Dave Brondsema <Commit 3fec1d22d18081ab9a6ef62d5625e88ab825a1e1> [#5973] remove another reference to system-site...
coverage-report-all.sh 2011-01-27 Paul Sokolovsky Paul Sokolovsky <Commit 397c7248c20c9f4d79ed28b0c480ba1e0a891bf2> [#1237] Add script to produce combined coverage...
rebuild-all.bash 2013-03-14 Dave Brondsema Dave Brondsema <Commit d4a0cfdc00f31c4a682a423d58043d42ff1c1696> [#5973] rename rebuild.bash to rebuild-all.bash...
requirements-common.txt 2013-03-18 Dave Brondsema Dave Brondsema <Commit 8691037c0d9a1b144f7b9132c6cc1f4953578bbc> [#5973] move ipython requirement since it is us...
requirements-optional.txt 2013-01-09 Dave Brondsema Dave Brondsema <Commit ad2be6d16af7b23ab09db70dd0f26cecebc163b9> [#4647] move html2text from requirements.txt to...
requirements-sf.txt 2013-03-18 Dave Brondsema Dave Brondsema <Commit 8691037c0d9a1b144f7b9132c6cc1f4953578bbc> [#5973] move ipython requirement since it is us...
requirements.txt 2013-02-28 Cory Johns Cory Johns <Commit a1f369e350af47c717ddaa5808264d06848f996c> [#5411] Adjusted requirements for patched versi...
run_clonedigger 2012-10-11 Cory Johns Cory Johns <Commit 30c0f473dac5d58b7aefb08912d38e77ac0db87d> [#4942] Removed some more references to ForgeDo...
run_tests 2013-02-19 Dave Brondsema Dave Brondsema <Commit 9c4a6b0d3ba27def3b6f0d2991f6e87705063ee1> [#5837] remove ForgeHg from run_tests
update.sh 2013-03-14 Dave Brondsema Dave Brondsema <Commit d4a0cfdc00f31c4a682a423d58043d42ff1c1696> [#5973] rename rebuild.bash to rebuild-all.bash...

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. Use google if you need additional PIL/jpeg help.

~$ sudo aptitude install mongodb-server git-core default-jre-headless python-dev libssl-dev libldap2-dev libsasl2-dev libjpeg8-dev zlib1g-dev
~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
~$ sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib

Optional, for SVN support:

~$ sudo aptitude install subversion python-svn

If you are using a different base system, make sure you have Mongo 1.8 or better. If you need to upgrade, you can download the latest from http://www.mongodb.org/downloads

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 'anvil'.

~$ virtualenv anvil

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:

~$ . anvil/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.

(anvil)~$ mkdir src
(anvil)~$ cd src
(anvil)~/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.

(anvil)~/src$ cd allura
(anvil)~/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

(anvil)~/src/allura$ ln -s /usr/lib/python2.7/dist-packages/pysvn ~/anvil/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.

(anvil)~$ cd ~/src
(anvil)~/src$ wget http://archive.apache.org/dist/lucene/solr/1.4.1/apache-solr-1.4.1.tgz
(anvil)~/src$ tar xf apache-solr-1.4.1.tgz
(anvil)~/src$ cd apache-solr-1.4.1/example/
(anvil)~/src/apache-solr-1.4.1/example/$ mkdir -p ~/src/allura/solr_config/conf
(anvil)~/src/apache-solr-1.4.1/example/$ cp solr/conf/solrconfig.xml ~/src/allura/solr_config/conf/
(anvil)~/src/apache-solr-1.4.1/example/$ mkdir ~/logs/
(anvil)~/src/apache-solr-1.4.1/example/$ nohup java -Dsolr.solr.home=$(cd;pwd)/src/allura/solr_config -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

(anvil)~$ cd ~/src/allura/Allura
(anvil)~/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:

(anvil)~/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:

(anvil)~/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