Hi Andrew, Dropping in on this thread only now. The curl, wget, xmlsh, whatever options are nice if already available. Which of those you will use is most likely a matter of personal taste or whether one of those is already available to you.
But I personally think that the most ideal case is where you can manage with MarkLogic Server alone. The install.xqy approach is véry straight-forward, no hassle at all, though my install.xqy is typically a small web-app. I have employed it in most of the projects I have done so far with MarkLogic Server, and my experience is that Systems administrators can work well with that method. The general procedure I prescribe is: - Fetch the latest release package (zip, gz, whatever) - Unpack and drop at some appropriate place at the server - Go to MarkLogic Server Admin interface - Do a one-time creation of an App Server pointing to that folder on the file-system, attaching it to some admin user - Run the install.xqy (which could be a nice web-app if you are willing to take the effort, allowing any options you like) - Disable the App Server untill deployment of next release The installer web-app could provide just one button 'do it all', but you can also provide a few text fields to enter unique names for databases, app servers, users accounts, etc. Systems administrators really like to have the ability to manage things a bit. But instead of writing lengthy guides how to do that with the full-blown Admin interface, you just provide what they need. Moreover, you could create different manager roles, unlocking different groups of tasks. And since MarkLogic Server can unzip as well, you could also make in installer web-app in which you upload a release package and have it extracted and deployed for you. And yes, there is pretty much hardly anything you can't do from xquery directly with a few calls, that you can do from the Admin interface manually. :-) Kind regards, Geert > drs. G.P.H. (Geert) Josten Consultant Daidalos BV Hoekeindsehof 1-4 2665 JZ Bleiswijk T +31 (0)10 850 1200 F +31 (0)10 850 1199 mailto:[email protected] http://www.daidalos.nl/ KvK 27164984 P Please consider the environment before printing this mail. De informatie - verzonden in of met dit e-mailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: [email protected] > [mailto:[email protected]] On Behalf Of > Andrew Welch > Sent: dinsdag 2 maart 2010 19:17 > To: General Mark Logic Developer Discussion > Subject: Re: [MarkLogic Dev General] user installation using a query > > On 2 March 2010 18:04, Lee, David <[email protected]> wrote: > > You might want to consider the MarkLogic extension to xmlsh which > > provides cross-platform access to xml processing and > sending requests > > via either HTTP or XCC. > > This is all "100% pure java" so the scripting, and the > execution will > > run identically independent of the OS. > > (windows, linux/unix , mac ... anything with a Java 1.6 ). > > And since it can execute ad-hoc queries constructed dynamnically it > > doesn't rely on "/use-cases/eval2.xqy" pre-existing. > > > > This way you don't have to write separate .BAT and .sh files for > > different OS's or depend on installations of additional 3rd party > > tools (like curl, perl, etc). > > > > http://www.xmlsh.org > > Ok this sounds good - so assuming the initial configuration > is in a file called "setup.xqy" could you provide and example > of how would the user run it using xmlsh? > > Fwiw, curl doesn't need installing, it would just need to be > on the disc, so the user could just run "install.bat" and > that would be it (providing the query it curls to eval2.xqy > runs without a problem) > > > -- > Andrew Welch > http://andrewjwelch.com > Kernow: http://kernowforsaxon.sf.net/ > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general > _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
