https://github.com/mozilla-services/tuxedo
INACTIVE - An improved version of Mozilla's download load balancer Bouncer, with a user interface written in Django/Python.
https://github.com/mozilla-services/tuxedo
inactive unmaintained
Last synced: 12 months ago
JSON representation
INACTIVE - An improved version of Mozilla's download load balancer Bouncer, with a user interface written in Django/Python.
- Host: GitHub
- URL: https://github.com/mozilla-services/tuxedo
- Owner: mozilla-services
- Archived: true
- Created: 2009-12-16T15:59:45.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2021-06-10T17:29:30.000Z (about 5 years ago)
- Last Synced: 2025-03-29T01:29:09.579Z (over 1 year ago)
- Topics: inactive, unmaintained
- Language: Python
- Homepage: https://wiki.mozilla.org/Bouncer
- Size: 1.26 MB
- Stars: 20
- Watchers: 23
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
tuxedo
======
An improved version of the [Bouncer](https://wiki.mozilla.org/Bouncer) mirror
management software.
Bouncer is a Mozilla project. The new admin backend was originally written by
Frederic Wenzel (fwenzel@mozilla.com).
Getting Started
---------------
### Python
You need Python 2.6. Also, you probably want to run this application in a
[virtualenv][virtualenv] environment.
Run ``easy_install pip`` followed by ``pip install -r requirements.txt``
to install the required Python libraries.
[virtualenv]: http://pypi.python.org/pypi/virtualenv
### git submodules
The list of known languages is provided by ``languages.json`` in the directory
``inc/product-details/json`` and imported as a [git submodule][git-submodule].
The source of the data is the [Mozilla product-details library][prod-details].
To initialize the submodule (or pull updates from it), run this from the tuxedo
root directory:
git submodule update --init
[git-submodule]: http://www.kernel.org/pub/software/scm/git/docs/git-submodule.html
[prod-details]: http://svn.mozilla.org/libs/product-details/
### Initial Database Setup
If you're installing a new copy of Bouncer, run ``./manage.py syncdb``
followed by ``./manage.py migrate`` (see "Database Migrations" below).
### Database Migrations
I am using [South](http://south.aeracode.org/) to keep track of database
migrations. ``./manage.py migrate`` will apply these migrations when
necessary.
### Upgrading an older version of Bouncer
If you are upgrading from an earlier version of Bouncer that isn't locale-
aware yet, apply ``sql/bouncer-add-lang.sql`` first.
Then, apply ``sql/incremental.sql`` to bring the DB up to date.
Finally, run the following steps to initialize Django and South:
./manage.py syncdb # initialize django
# (answer "no" to the "add a new admin?" question)
./manage.py migrate mirror 0001 --fake # initialize South
./manage.py migrate # apply all existing migrations
Tuxedo API and mod_wsgi
-----------------------
There are multiple ways to deploy a Django project on a web server. If you
want to use Apache with mod_wsgi, make sure to set it up so it passes
[HTTP Basic Auth credentials][userauth] on to the application, otherwise
the Tuxedo API won't work.
[userauth]: http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#User_Authentication
Why "tuxedo"?
-------------
In my silly mind, I chose to interpret "Bouncer" as "doorman" and subsequently
decided that its new version should be codenamed like what fancy bouncers wear:
a tuxedo.
Licensing
---------
This software is licensed under the [Mozilla Tri-License][MPL]:
***** BEGIN LICENSE BLOCK *****
Version: MPL 1.1/GPL 2.0/LGPL 2.1
The contents of this file are subject to the Mozilla Public License Version
1.1 (the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
for the specific language governing rights and limitations under the
License.
The Original Code is tuxedo.
The Initial Developer of the Original Code is Mozilla.
Portions created by the Initial Developer are Copyright (C) 2010
the Initial Developer. All Rights Reserved.
Contributor(s):
Frederic Wenzel
Alternatively, the contents of this file may be used under the terms of
either the GNU General Public License Version 2 or later (the "GPL"), or
the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
in which case the provisions of the GPL or the LGPL are applicable instead
of those above. If you wish to allow use of your version of this file only
under the terms of either the GPL or the LGPL, and not to allow others to
use your version of this file under the terms of the MPL, indicate your
decision by deleting the provisions above and replace them with the notice
and other provisions required by the GPL or the LGPL. If you do not delete
the provisions above, a recipient may use your version of this file under
the terms of any one of the MPL, the GPL or the LGPL.
***** END LICENSE BLOCK *****
[MPL]: http://www.mozilla.org/MPL/