|c0c52d55||2012-07-19 04:00:03||Tim Van Steenburgh||Merge branch 'dev' of git://sfi-engr-scm-1/forge into dev|
|948611f5||2012-07-19 03:59:40||Tim Van Steenburgh||Script to add a user to a group on a project. Signed-off...|
|a96b42f3||2012-07-19 03:58:58||Dave Brondsema||[#4539] move solr installation into the box setup|
|41011296||2012-07-19 03:58:58||Dave Brondsema||[#4539] Add solr port to port-forwarding; fixes for lates...|
|9f10826a||2012-07-19 03:58:58||Dave Brondsema||[#4539] quieter rebuild|
|06e1c4f8||2012-07-19 00:10:33||Dave Brondsema||[#4481] correct docs on solr field names for voting|
|19e3c413||2012-07-18 23:53:17||Dave Brondsema||[#4556] clarify wording in clone failure emails|
|591c0ae9||2012-07-18 23:48:12||Igor Bondarenko||[#4556] ticket:122 remove h.push_config when clonning the...|
|b97f695a||2012-07-18 23:45:48||Igor Bondarenko||[#4529] ticket:121 remove sidebar_menu from UserProfileApp|
|482f6868||2012-07-18 23:45:47||Igor Bondarenko||[#4529] ticket:112 Remove sidebar on user profile page.|
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.
Before we begin, you'll need the following additional packages in order to work with the Forge source code.
~$ sudo aptitude install git-core subversion python-svn
You'll also need additional development packages in order to compile some of the modules. Use google for additional PIL/jpeg help.
~$ sudo aptitude install 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
And finally our document-oriented database, MongoDB
~$ sudo aptitude install mongodb-server
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
The first step to installing the Forge 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 Forge environment 'anvil'.
~$ virtualenv --system-site-packages anvil
This gives us a nice, clean environment into which we can install all the forge dependencies. (The site-packages flag is to include the python-svn package). In order to use the virtual environment, you'll need to activate it. You'll need to do this whenever you're working on the Forge codebase so you may want to consider adding it to your
~$ . anvil/bin/activate
Now we can get down to actually getting the Forge code and dependencies downloaded and ready to go.
(anvil)~$ mkdir src (anvil)~$ cd src (anvil)~/src$ git clone git://git.code.sf.net/p/allura/git.git forge
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 forge (anvil)~/src/forge$ 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.
And now to setup each of the Forge applications for development. Because there are quite a few (at last count 15), we'll use a simple shell loop to set them up.
for APP in Allura* Forge* NoWarnings do pushd $APP python setup.py develop popd done
Hopefully everything completed without errors. We'll also need to create a place for Forge to store any SCM repositories that a project might create.
for SCM in git svn hg do mkdir -p ~/var/scm/$SCM chmod 777 ~/var/scm/$SCM sudo ln -s ~/var/scm/$SCM /tmp done
The forge consists of several components, all of which need to be running to have full functionality.
We have a custom config ready for use.
(anvil)~$ cd ~/src (anvil)~/src$ wget http://apache.mirrors.tds.net/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/forge/solr_config/conf (anvil)~/src/apache-solr-1.4.1/example/$ cp solr/conf/solrconfig.xml ~/src/forge/solr_config/conf/ (anvil)~/src/apache-solr-1.4.1/example/$ nohup java -Dsolr.solr.home=$(cd;pwd)/src/forge/solr_config -jar start.jar > ~/logs/solr.log &
Responds to asynchronous task requests.
(anvil)~$ cd ~/src/forge/Allura (anvil)~/src/forge/Allura$ nohup paster taskd development.ini > ~/logs/taskd.log &
In order to initialize the Forge database, you'll need to run the following:
(anvil)~/src/forge/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. It should complete in 5-6 minutes. Once this is done, you can start the application server.
(anvil)~/src/forge/Allura$ nohup paster serve --reload development.ini > ~/logs/tg.log &
Go to the server running on your local machine port 8080. 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
$ ALLURA_VALIDATION=none ./run_tests
Welcome to OSDN Wiki system. Here is your chamber Wiki space.
Check Wiki Guide (English) to refer syntax and functions.
(auto generated page)
[Permissions] view:all, edit:login users, delete/config:admins