Mercurialicious and Subversionastic
Tuesday, Oct 10. 2006 – Category: OpenSolaris
sch, garypen and i have spent the last week or so tearing through our SCM scripts/environment trying to finalise them to put Subversion support into production. We’re also preparing for the Mercurial beta support, which should include the ON read-only mirrour I’ve been blogging about for months. Here’s a very high-level, brief, and scatter-brained overview of how our SCM hosting environment is done:
We have our production webapp which powers opensolaris.org. Gary wrote an ‘SCM Management’ sibling webapp which handles SCM related tasks. Basically the leaders of a project can grant committer access to people affiliated with a project, add and delete repositories, and make repositories accessible for anonymous checkout. These actions all change values in the MySQL database we use to back opensolaris.org.
Every user on opensolaris.org can add SSH keys (either RSA2 or DSA) to their user-profile. These are synchronised onto our NFS server (which backs each user’s home directories). When the user tries to do an SCM operation (either svn+ssh:// for SVN, or ssh:// for Hg), their private key gets authenticated against the authorized_keys. A mini chroot is setup in their home directory, and project repositories are loopback mounted from their original NFS mounts on the app server. This all happens via some auto-mount map wizardry put together by Stephen. The nice thing is the auto-mount maps check the userid against the MySQL tables to determine what to loopback-mount, and what not to. This is a cheap way of doing ACL access. We may have something more sophisticated when we deploy a Mercurial version with the ACL extension. And thus you get happy happy SVN/Hg repositories available to you to checkout via your opensolaris.org user account.
I’ve also been rewhacking my Teamware->Mercurial bridge/conversion, and I’m pretty happy with its state. I’ve modularised some of the Teamware and SCCS functions into proper Perl modules, and have tried to extricate the code which is independent of ON so that it can be used by other folks. My code was dependent on diffs that Danek built for each putback on ON, so I’ve been writing code to walk through the Teamware history file and build diffs for arbitrary repositories. It’s still a work in progress at the moment, but I’m hopeful..
And on a totally random note, I’ve found a good tour to the DMZ to go on while I’m in Seoul run by the USO… so I’m psyched
No Trackbacks to “Mercurialicious and Subversionastic”
One Comment to “Mercurialicious and Subversionastic”
-
Stephen Says:
October 11th, 2006 at 10:57Actually, Frank wrote the automount map, Alan readjusted it, and Gary’s now rewritten it in Python so we can use common functions for the database queries. I only take credit for keeping us out of writing per-SCM ACL support, by using basic Solaris functions… — Stephen
Leave a Reply
Recent posts
- Gesture Lock
(Saturday, Nov 13. 2010 – 12 Comments) - ConnectIn 1.1.1 & HTC Sense UI
(Tuesday, Sep 28. 2010 – 38 Comments) - ConnectIn
(Saturday, Sep 25. 2010 – 62 Comments) - Proguard, Android, Ant, and 3rd party external JARs
(Wednesday, Sep 22. 2010 – 18 Comments)
Categories
- Android
- Cars
- ChinaBlog
- Code
- Computers
- Development
- Food
- Football
- Grommit
- Linkage
- Movies&TV
- Music
- Musings
- OpenSolaris
- OpenSource
- Outdoors
- Pets
- Photos
- Quotage
- Rdio
- Songbird
- Sun
- Travel
Grommit
Mozilla
OpenSolaris
- alan burlison
- bonnie corwin
- eric boutilier
- glynn foster
- jim grisanzio
- mark nelson
- mike kupfer
- planet opensolaris
- stephen hahn
Songbird
Archives
- November 2010
- September 2010
- August 2010
- June 2010
- May 2010
- February 2010
- January 2010
- December 2009
- October 2009
- September 2009
- August 2009
- June 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- April 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- May 2004
- April 2004
- March 2004
- February 2004
- January 2004
- December 2003
- November 2003
- October 2003
- September 2003
- August 2003
- July 2003
- June 2003
- May 2003
- April 2003
- March 2003
- February 2003
- January 2003
- December 2002
- November 2002
- October 2002
- September 2002
- August 2002
- July 2002
- June 2002
- May 2002
- April 2002
- March 2002
