Heterogeneous deployment v2

From Wikitech
(Difference between revisions)
Jump to: navigation, search
(Cleanup: more updates)
(Deploying a new version of MediaWiki to Wikimedia sites: update versions)
Line 6: Line 6:
 
<pre>
 
<pre>
 
//Do this wherever, formey works
 
//Do this wherever, formey works
make-wmf-branch 1.20wmf8 master
+
make-wmf-branch 1.20wmf6 master
  
 
// Do this on Fenari/bastion
 
// Do this on Fenari/bastion
/home/wikipedia/common/multiversion/checkoutMediaWiki 1.20wmf8 php-1.20wmf8
+
/home/wikipedia/common/multiversion/checkoutMediaWiki 1.21wmf6 php-1.21wmf6
  
cp -a /home/wikipedia/common/php-1.20wmf7/cache/trusted-xff.cdb /home/wikipedia/common/php-1.20wmf8/cache/
+
cp -a /home/wikipedia/common/php-1.21wmf5/cache/trusted-xff.cdb /home/wikipedia/common/php-1.21wmf6/cache/
cp -a /home/wikipedia/common/php-1.20wmf7/cache/interwiki.cdb /home/wikipedia/common/php-1.20wmf8/cache/
+
cp -a /home/wikipedia/common/php-1.21wmf5/cache/interwiki.cdb /home/wikipedia/common/php-1.21wmf6/cache/
  
cp -a /home/wikipedia/common/wmf-config/ExtensionMessages-1.20wmf7.php /home/wikipedia/common/wmf-config/ExtensionMessages-1.20wmf8.php
+
cp -a /home/wikipedia/common/wmf-config/ExtensionMessages-1.21wmf5.php /home/wikipedia/common/wmf-config/ExtensionMessages-1.21wmf6.php
  
sync-dir php-1.20wmf8 Initial sync of php-1.20wmf8
+
sync-dir php-1.21wmf6 Initial sync of php-1.21wmf6
  
/home/wikipedia/common/wikiversions.dat # Add test2 to php-1.20wmf4
+
/home/wikipedia/common/wikiversions.dat # Add test2 to php-1.21wmf6
  
sync-wikiversions test2wiki to php-1.20wmf4
+
sync-wikiversions test2wiki to php-1.20wmf6
  
 
scap // Rebuild messages etc
 
scap // Rebuild messages etc
Line 27: Line 27:
  
 
// Making the changelog
 
// Making the changelog
php make-deploy-notes origin/wmf/1.20wmf7 origin/wmf/1.20wmf8
+
php make-deploy-notes origin/wmf/1.21wmf5 origin/wmf/1.20wmf6
 
</pre>
 
</pre>
  

Revision as of 17:35, 26 November 2012

Work in progress...

Git style!

Deploying a new version of MediaWiki to Wikimedia sites

//Do this wherever, formey works
make-wmf-branch 1.20wmf6 master

// Do this on Fenari/bastion
/home/wikipedia/common/multiversion/checkoutMediaWiki 1.21wmf6 php-1.21wmf6

cp -a /home/wikipedia/common/php-1.21wmf5/cache/trusted-xff.cdb /home/wikipedia/common/php-1.21wmf6/cache/
cp -a /home/wikipedia/common/php-1.21wmf5/cache/interwiki.cdb /home/wikipedia/common/php-1.21wmf6/cache/

cp -a /home/wikipedia/common/wmf-config/ExtensionMessages-1.21wmf5.php /home/wikipedia/common/wmf-config/ExtensionMessages-1.21wmf6.php

sync-dir php-1.21wmf6 Initial sync of php-1.21wmf6

/home/wikipedia/common/wikiversions.dat # Add test2 to php-1.21wmf6

sync-wikiversions test2wiki to php-1.20wmf6

scap // Rebuild messages etc

dsh -F25 -cM -g mediawiki-installation -o -oSetupTimeout=10 'sudo -u mwdeploy /usr/bin/scap-recompile'

// Making the changelog
php make-deploy-notes origin/wmf/1.21wmf5 origin/wmf/1.20wmf6

Cleanup

cd /home/wikipedia/common && rm php && ln -s php-1.20wmf12 php

dsh -F10 -cM -g mediawiki-installation -o -oSetupTimeout=10 'cd /usr/local/apache/common && sudo -u mwdeploy rm php && sudo -u mwdeploy ln -s php-1.21wmf1 php'


dsh -F10 -cM -g mediawiki-installation -o -oSetupTimeout=10 'sudo -u mwdeploy rm -rf /usr/local/apache/common/php-1.20wmf10'

# Remove version dirs created by multiversion/checkoutMediaWiki
rm -rf /home/wikipedia/common/live-1.5/static-1.20wmf10
rm -rf /home/wikipedia/common/docroot/secure/skins-1.20wmf10
rm -rf /home/wikipedia/common/docroot/bits/static-1.20wmf10
rm /home/wikipedia/common/wmf-config/ExtensionMessages-1.20wmf10.php

sync-docroot
sync-dir live-1.5
Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox