Closed Bug 1118970 Opened 9 years ago Closed 9 years ago

Convert wiki.m.o to a git deployment model

Categories

(Websites :: wiki.mozilla.org, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2015-Q1

People

(Reporter: jd, Assigned: jd)

References

Details

(Keywords: meta, Whiteboard: [kanban:https://webops.kanbanize.com/ctrl_board/2/188] [dev=2015-01-08] [stage=2015-01-08] [prod=2015-01-15])

The first step in revamping the wiki.m.o deployment model is to convert it to a git based vcs. Once this is completed and tested it will need to be rolled out to dev/stage/prod. Trackers for that work are blockers to this bug.
Depends on: 1118972
Depends on: 1118973
Depends on: 1118976
Repository is here:
https://github.com/mozilla/wiki.mozilla.org

Migration steps:
1) fix up files in puppet:
    puppet/trunk/modules/webapp/files/genericrhel6{env}/etc-httpd/domains/wiki{env}.org.conf
    puppet/trunk/modules/webapp/manifests/admin/genericrhel6/wikimo.pp
2) rm current dirroot (/data/genericrhel6{|-stage|-dev}/src/wiki{-dev.allizom|.allizom|.mozilla}.org/)
3) create named dirroot (cannot simply clone for dev|stage)
4) clone repository
5) Sync & Edit database:
    (dev & stage) bash tools/sync_assets.sh
    (prod) mysqldump wiki_mozilla_org > wiki_mozilla_org.sql
    ALTER TABLE swl_groups ADD COLUMN group_custom_texts BLOB NULL;
6) from dirroot:
    bash tools/install.sh
7) from dirroot:
    php core/maintenance/update.php
8) from dirroot/core:
    php ../extensions/SemanticMediaWiki/maintenance/SMW_refreshData.php -d 50 -v
Blocks: 1118991
Migration to dev is complete (as noted by the closed bug). The scripts and procedures for migrating have been tested (and a few bugs corrected) while deploying to dev. The repository @261195 is what will be deployed into stage tomorrow. If all goes well that same position will be the candidate for production on the following Thursday (Jan 15).
Whiteboard: [dev=2015-01-08] [stage=2015-01-08] [prod=2015-01-15]
Is this a meta tracking bug, or are the steps in comment 1 an independent activity?
This is sort of both since I did not create the bugs till the work was almost done. This is the bug for the work I did actually setting up the repository on github. The steps in comment 1 are the instructions to deploy this into Mozilla core infra. I put them here so I did not have to duplicate them in the 3 dependent bugs (the dev / stage / prod ones).

Hope this helps
Whiteboard: [dev=2015-01-08] [stage=2015-01-08] [prod=2015-01-15] → [kanban:https://webops.kanbanize.com/ctrl_board/2/188] [dev=2015-01-08] [stage=2015-01-08] [prod=2015-01-15]
Keywords: meta
Assignee: nobody → jcrowe
This is finished and has been deployed to all environments. Meetings are being scheduled to discuss the workflow and process necessary with this new model.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
OS: Linux → All
Hardware: x86_64 → All
Target Milestone: --- → 2015-Q1
You need to log in before you can comment on or make changes to this bug.