| 1 | The raison d'etre of repository management is to keep all working copies of files used in a production system, without having multiple copies across several developer instances and without duplicating the file with references to dates or other clues as to version within the production directories themselves. |
| 2 | |
| 3 | == The Need for a Repository == |
| 4 | The advantages of using a repository are: |
| 5 | * Centralized store of all changes made to files |
| 6 | * Log entries describing the purpose of the change |
| 7 | * Identity of last person effecting a change to a file |
| 8 | * By using ant, maven, or eclipse, an archive can be created from the most recent source and becomes the means to distribute the same working copy across multiple servers and instances |
| 9 | * The primary and secondary servers remain free of clutter as developers experiment with versions |
| 10 | |
| 11 | == Preparing A Workspace for the Shibboleth IdP == |
| 12 | |
| 13 | First, create a directory, named of your choice on your local machine and download the most current version of the repository to that location. |
| 14 | |
| 15 | * <User Home Directory>$ mkdir <repository directory name> |
| 16 | * <User Home Directory>$ cd <repository directory name> |
| 17 | * <User Home Directory>$ svn co svn+ssh://<sx''xxx''>@iron.alaska.edu/usr/local/iam/shib-svn/ |
| 18 | |
| 19 | You will be prompted for your sx''xxx'' OIT ID password. Once the correct password is entered, the most recent version of the following will be installed on your desktop or laptop: |
| 20 | * /opt/shibboleth-idp |
| 21 | * /opt/tomcat/webapps/idp |
| 22 | * idp.war |
| 23 | |
| 24 | == Managing Updates Via the Repository == |
| 25 | The followings steps outline how to modify a file, test it, and then submit it to the repository as the most recent version. |
| 26 | |
| 27 | * Be sure your repository copy is up to date |
| 28 | ** <User Home Directory>/<respository directory>$ svn up |
| 29 | * Make the changes to it and then copy it into heald |
| 30 | * Test the change on the secondary IdP server. |
| 31 | * If successful, then check in the change |
| 32 | ** <User Home Directory>/<respository directory>$ svn ci [-m"''description''"] |
| 33 | ** You will be prompted for a description if you do not enter it on the command line. |
| 34 | * Make a tar or jar file of what has changed .. |
| 35 | .. For any file that has changed under /opt/shibboleth-idp, tar the directory that has the modifed file ( tar -cvf shib-<directory>.tar <directory>/ ) |
| 36 | .. For any file that has changed under /opt/tomcat/webapps/idp, jar the idp directory into idp.war ( jar cvf idp.war idp ) ** |
| 37 | Copy the tar/jar to hanin to be extracted when the machines have been switched. |