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



File Date Author Commit
Allura 2013-07-23 Igor Bondarenko Igor Bondarenko <Commit 0b4c11b1d0c14f8d65849ce60d96d552b656f646> [#3154] ticket:394 Set up context before callin...
AlluraTest 2013-07-26 Yuriy Arhipov Yuriy Arhipov <Commit e23020d03926ed022434aade5762221d9f3e486d> [#3154] ticket:407 ForgeBlog API refactoring
ForgeActivity 2013-04-18 Peter Hartmann Peter Hartmann <Commit 6f8012136c2f2b78614e4bc86a564212519f2d5e> Override newline after license header in jinja2...
ForgeBlog 2013-08-14 Cory Johns Cory Johns <Commit a661fd5821b600db157ead13ed5ba066ac1e0f2f> [#6464] Refactored plain2markdown tests
ForgeChat 2013-07-18 Tim Van Steenburgh Tim Van Steenburgh <Commit 2dcec81c7d4e861fc47c348f25333ec3b547e510> [#5517] Add permission descriptions
ForgeDiscussion 2013-08-20 Cory Johns Cory Johns <Commit 6ce8edf50e207013aa81fa2bb8bdf1b369751c8a> [#6422] Added "incubating" to NOTICE files
ForgeGit 2013-08-20 Cory Johns Cory Johns <Commit 6ce8edf50e207013aa81fa2bb8bdf1b369751c8a> [#6422] Added "incubating" to NOTICE files
ForgeImporters 2013-08-22 Tim Van Steenburgh Tim Van Steenburgh <Commit 8c24eec4ce11dd6fa76b1124302e84bf4568c240> Add logging to debug Trac import
ForgeLink 2013-07-23 Igor Bondarenko Igor Bondarenko [f0d671] [#3154] ticket:394 Fix test
ForgeSVN 2013-08-22 Cory Johns Cory Johns <Commit d1f150e27c59926a245a9fa72bc138528267d002> [#6594] Added ignore_externals to SVN export
ForgeShortUrl 2013-07-18 Tim Van Steenburgh Tim Van Steenburgh <Commit 2dcec81c7d4e861fc47c348f25333ec3b547e510> [#5517] Add permission descriptions
ForgeTracker 2013-08-20 Cory Johns Cory Johns <Commit ef4918b1b729b894b29642410d265e1f732c6819> [#6464] Fixed Open/Closed search bins on GC Tra...
ForgeUserStats 2013-07-18 Tim Van Steenburgh Tim Van Steenburgh <Commit 2dcec81c7d4e861fc47c348f25333ec3b547e510> [#5517] Add permission descriptions
ForgeWiki 2013-07-05 Igor Bondarenko Igor Bondarenko <Commit b5f79e6fa5a9dd405f59bc1890026de8d97e018e> [#3154] ticket:388 Export wiki
NoWarnings 2013-08-20 Cory Johns Cory Johns <Commit 6ce8edf50e207013aa81fa2bb8bdf1b369751c8a> [#6422] Added "incubating" to NOTICE files
fuse 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
scripts 2013-08-02 Tim Van Steenburgh Tim Van Steenburgh <Commit 512ee4b11f6fe09be909d539ff51f5b14824954c> [#6480] Add trac ticket importer plugin
solr_config 2013-05-02 Tim Van Steenburgh Tim Van Steenburgh <Commit 16ea2661b75dbeb0677ae2cc25f9c188e54058c7> [#4321] Change solr type of 'labels' field
vagrant 2013-05-25 Dave Brondsema Dave Brondsema <Commit 84638183a71bc8f7e40a4dab973c3ce245a8bbfb> [#6255] remove symlink workarounds for PIL
.gitattributes 2011-03-13 Wolf Wolf <Commit 4f057bfbac58f84bffea3fdfa9e562415a6bf359> make git-diff hunk headers python-aware
.gitignore 2013-07-23 Cory Johns Cory Johns <Commit 227396fa98c0b7d00fffc52552e30a1198273116> [#6456] Added documentation for ForgeImporters ...
.gitmodules 2009-12-01 Wolf Wolf <Commit e4830bd691eb52e6ae1e0921b09247bf4ec3aed5> Remove Ming submodule
.travis.yml 2013-06-03 Cory Johns Cory Johns <Commit cf25d5e6d4b58955fa90dbbb89b651e458b5dc68> [#6287] Remove symlink workarounds for PIL from...
CHANGES 2013-08-19 Cory Johns Cory Johns <Commit afb7bb4d34141f22ac63be19986355065f7febd5> [#6422] Added CHANGES file for ASF release
CONTRIBUTING 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
LICENSE 2011-02-01 Wolf Wolf <Commit 23c644ff05fdc87e89b443afe1f6f9d25b4e2cff> License is Apache 2
Makefile 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
Makefile.def.buildbot 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
NOTICE 2013-08-20 Cory Johns Cory Johns <Commit 6ce8edf50e207013aa81fa2bb8bdf1b369751c8a> [#6422] Added "incubating" to NOTICE files
README.markdown 2013-06-17 Tim Van Steenburgh Tim Van Steenburgh <Commit 2761f3722a0dc56ec09963053cb612d63e698ca1> [#4559] In README, %s/anvil/env-allura/g
coverage-report-all.sh 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
rat-excludes.txt 2013-05-06 Dave Brondsema Dave Brondsema <Commit 37e91c9136b973d84eb7309858ddb1e20f05c586> [#4122] rename AlluraTesting dir to AlluraTest,...
rebuild-all.bash 2013-04-15 Peter Hartmann Peter Hartmann <Commit c17704dbecce85a7ebaaacb69068f31994cf3756> [#4648] Add missing license headers
requirements-common.txt 2013-08-06 Dave Brondsema Dave Brondsema <Commit fb06265590066cd8748ae1355ec12db2b113c7dc> [#6461] remove gdata dep since it'll be replace...
requirements-optional.txt 2013-07-31 Tim Van Steenburgh Tim Van Steenburgh <Commit 868694ecb4c4471741693e13c6b1033aa6151d79> Move requests pkg to common dependencies
requirements-sf.txt 2013-08-21 Dave Brondsema Dave Brondsema <Commit ce7baf3cc258c5c9e48c9f2de457b497a7f415a7> [#6464] bump GoogleCodeWikiImporter version to ...
requirements.txt 2013-04-24 Cory Johns Cory Johns <Commit 022d84de5559b159396e6e6ec772a3855c1b7154> [#6093] Moved WebError requirement so it's not ...
run_clonedigger 2013-05-06 Dave Brondsema Dave Brondsema <Commit 37e91c9136b973d84eb7309858ddb1e20f05c586> [#4122] rename AlluraTesting dir to AlluraTest,...
run_tests 2013-05-28 Dave Brondsema Dave Brondsema <Commit d2a60bbbf547798b74a42ee87d68b6a26480a373> [#6277] make forgeuserstats tmp repos not confl...
update.sh 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary

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