CGI release script

From Genecats
Jump to navigationJump to search

Explanation

Before anything gets pushed to the RR, run the following command on hgwbeta:

 sudo /root/cgiPreRelease

This command basically copies everything for that release to the "current release" areas on hgwbeta, effectively doing the push to "public" first:

 /usr/local/apache/cgi-bin-public/
 /usr/local/apache/htdocs/js-public/
 /usr/local/apache/htdocs/style-public/

It also pushes the information to (where $CGVER is the version number (for example: v123):

 /data/apache/cgi-bin-public.$CGVER/
 /data/apache/htdocs/js-public.$CGVER/
 /data/apache/htdocs/style-public.$CGVER/

When doing the actual push, run the command:

 sudo /root/cgiRelease -t $TARGET

where $TARGET is which machine to push to. If no target is specified, it will push to all machines (hgw1/2, genome-euro, genome-asia)

Walkthrough

So a standard push request process goes like this:


Request: Please push to hgw0 Actions:

 sudo /root/cgiPreRelease
 sudo /root/cgiRelease -t hgw0

Request: Please push to hgw1 Actions:

 sudo /root/cgiRelease -t hgw1

Request: Please push to the rest of the RR, Euro and Asia: Actions:

 sudo /root/cgiRelease

Summary

 sudo /root/cgiPreRelease
 sudo /root/cgiRelease -t hgw0
 sudo /root/cgiRelease -t hgw1
 sudo /root/cgiRelease -t hgw2
 sudo /root/cgiRelease -t genome-euro
 sudo /root/cgiRelease -t genome-asia

Reverting a change

If you want to revert, you have to run the script like this:

 sudo /root/cgiRelease -s {version to revert to)

eg.

 sudo /root/cgiRelease -s v467

You can also get all the available options by doing:

 sudo /root/cgiRelease -h