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



File Date Author Commit
Allura 2013-05-23 Tim Van Steenburgh Tim Van Steenburgh [5f7d38] Merge branch 'master' of https://git-wip-us.apa...
AlluraTesting 2013-05-13 Dave Brondsema Dave Brondsema <Commit ac7e00315e984dff5174c3441fc845c798639f9c> be more flexible in mimetypes during test valid...
ForgeActivity 2013-04-18 Peter Hartmann Peter Hartmann <Commit 6f8012136c2f2b78614e4bc86a564212519f2d5e> Override newline after license header in jinja2...
ForgeBlog 2013-04-30 Tim Van Steenburgh Tim Van Steenburgh <Commit d34331e8d500e77a8f390222606e62758b10638a> [#6172] Rename new Feed object to FeedArgs
ForgeChat 2013-05-17 Cory Johns Cory Johns <Commit e34ca49ab28ced893db93010d8560cd17e9879df> [#6226] Added missing indexes for project_id fo...
ForgeDiscussion 2013-04-01 Yuriy Arhipov Yuriy Arhipov <Commit 9badd061e9fa07a9ee3312249679cc464d780b64> [#5571] ticket:302 Spam moderation: comments
ForgeGit 2013-05-20 Dave Brondsema Dave Brondsema <Commit 760cf5ee15f4894fcc98db8a9dce0bda03cd3468> [#6256] use TMPDIR instead of /tmp everywhere
ForgeLink 2013-04-30 Tim Van Steenburgh Tim Van Steenburgh <Commit 7244932d5eee45ec5289b90b78c8b3d98df22226> [#6172] Remove default TG file extension handling.
ForgeSVN 2013-05-20 Dave Brondsema Dave Brondsema <Commit 760cf5ee15f4894fcc98db8a9dce0bda03cd3468> [#6256] use TMPDIR instead of /tmp everywhere
ForgeShortUrl 2013-04-24 Dave Brondsema Dave Brondsema <Commit d958fae688f198dceb680709a09dadb62b9291f4> [#2835] show search help on all search pages
ForgeTracker 2013-04-09 Yuriy Arhipov Yuriy Arhipov <Commit 5b7cbaa5fb6d920d794b2b0b91548c57348eecd0> [#5571] ticket:302 added submit ham
ForgeUserStats 2013-05-15 Dave Brondsema Dave Brondsema <Commit 983418297d860e04a777e29ff1edd3b0919ba77a> [#6212] use registration date (was stats start ...
ForgeWiki 2013-05-23 Tim Van Steenburgh Tim Van Steenburgh [5f7d38] Merge branch 'master' of https://git-wip-us.apa...
NoWarnings 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
fuse 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
scripts 2013-04-12 Peter Hartmann Peter Hartmann <Commit 647759f217cd7028dee5d30146508b84bd7339db> Add Apache Ant buildfile for use with Apache Rat
solr_config 2013-05-02 Tim Van Steenburgh Tim Van Steenburgh <Commit 16ea2661b75dbeb0677ae2cc25f9c188e54058c7> [#4321] Change solr type of 'labels' field
vagrant 2013-05-23 Tim Van Steenburgh Tim Van Steenburgh [5f7d38] Merge branch 'master' of https://git-wip-us.apa...
.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-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-04-18 Peter Hartmann Peter Hartmann <Commit ee4602190b27ec275c89991fcd55f6471671ea30> [#4648] Add NOTICE file in top directory
README.markdown 2013-05-15 Dave Brondsema Dave Brondsema <Commit 78e97ac49d2d5e3b5cc4bcb2284839d648c9aa3a> use correct comment syntax in README.markdown
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-04-24 Dave Brondsema Dave Brondsema <Commit d8a9c75db5bb2bea13a807bcedf0a1adec822d2d> add a few missed license headers; ignore a few ...
rebuild-all.bash 2013-04-15 Peter Hartmann Peter Hartmann <Commit c17704dbecce85a7ebaaacb69068f31994cf3756> [#4648] Add missing license headers
requirements-common.txt 2013-05-23 Tim Van Steenburgh Tim Van Steenburgh [5f7d38] Merge branch 'master' of https://git-wip-us.apa...
requirements-optional.txt 2013-05-23 Tim Van Steenburgh Tim Van Steenburgh [5f7d38] Merge branch 'master' of https://git-wip-us.apa...
requirements-sf.txt 2013-05-22 Cory Johns Cory Johns <Commit 79642a38869b4690ce839f3aa180aaf5f98c5c7a> [#5571] Enable akismet and mollom EPs and impro...
requirements.txt 2013-04-24 Cory Johns Cory Johns <Commit 022d84de5559b159396e6e6ec772a3855c1b7154> [#6093] Moved WebError requirement so it's not ...
run_clonedigger 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
run_tests 2013-04-12 Peter Hartmann Peter Hartmann <Commit ddf08c46381352d02accc7a9f6d9878cfad8695b> Apply Apache License 2.0 header where necessary
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. Use google if you need additional PIL/jpeg help.

~$ sudo aptitude install 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

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 '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 -nv http://archive.apache.org/dist/lucene/solr/4.2.1/solr-4.2.1.tgz
(anvil)~/src$ tar xf solr-4.2.1.tgz && rm -f solr-4.2.1.tgz
(anvil)~/src$ cp -f allura/solr_config/schema.xml solr-4.2.1/example/solr/collection1/conf

(anvil)~/src$ cd solr-4.2.1/example/
(anvil)~/src/apache-solr-1.4.1/example/$ mkdir ~/logs/
(anvil)~/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

(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