Closed Bug 689755 Opened 9 years ago Closed 9 years ago

Add vagrant image for building AMO / Zamboni

Categories

(addons.mozilla.org Graveyard :: Maintenance Scripts, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: kumar, Assigned: kumar)

References

Details

It's hard to set up an AMO, let's land a vagrant config file in the source so someone can clone the repo and simply type:

vagrant up

Then get:
- A fully working dev site w/ data from landfill http://micropipes.com/blog/2011/03/29/welcome-to-the-landfill/
- An environment to run the test suite

This would be helpful for:
- new developers within Mozilla who want to fix a quick app store bug or join the team
- QA, so they can run functional tests in a controlled environment
- Outside contributors

Docs for setting up Zamboni: http://jbalogh.github.com/zamboni/
Assignee: nobody → kumar.mcmillan
Target Milestone: --- → Q4 2011
cc'ing aclark because of his awesome work so far on SUMO https://github.com/aclark4life/kitsune-vagrant/

This is about as far as I got provisioning:

sudo apt-get -y install mysql-server-5.1
sudo aptitude -y install python-dev python-virtualenv libxml2-dev libxslt1-dev libmysqlclient-dev libmemcached-dev git-core
virtualenv ~/.virtualenv
source ~/.virtualenv/bin/activate
pip install -r requirements/compiled.txt 
./manage.py test -x

but I didn't puppetize.  After the tests are working some code will be needed to pull in the landfill DB (see above) so the dev server can start up.
Blocks: 688911
Shazam. http://mozilla.github.com/zamboni/topics/install-with-vagrant.html

Added in https://github.com/mozilla/zamboni/commit/2001057e080b591b1268652739d112dd8755c577

It "works"! I'm getting some feedback from UX'ers to see if I missed anything.

There's a lot more to do, when we have time and if we feel it's beneficial. TODO:
- Get lessc, etc, working so manage.py compress_assets can run.
- Add landfill images. Right now there are no addon images.
- Build elastic search indexes and configure the site for search. Right now elasticsearch is installed but not really used.
- Configure redis/memcache. These are installed but also not really used.
- Install Sphinx? I dunno, it would get the tests passing.
- Install and configure celery
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: Q4 2011 → 6.3.8
This is awesome!
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.