Hi, for our project with MarkLogic we've built a tool chain using Apache Ant to set up and tear down forests, databases (including triggers, modules, schemas), servers, indexes, data loading, etc. which has been integrated with Jenkins but can also be run from the command line. One important thing which took us some time to figure out was to write the scripts so that they are idempotent. The scripting guide was rather useful in that respect ( http://docs.marklogic.com/guide/admin-api/intro)
cheers, Jakob. On Tue, Feb 16, 2016 at 3:14 PM, Gary Larsen <[email protected]> wrote: > Here’s something I run in query console to setup a database, forest and > XDBC server, after which a configuration in imported with configuration > manager: > > > > xquery version "1.0-ml"; > > import module namespace admin = "http://marklogic.com/xdmp/admin" > > at "/MarkLogic/admin.xqy"; > > > > let $dbName := 'dbname' > > let $port := portno > > > > > > let $config := admin:get-configuration() > > let $config := admin:forest-create($config, $dbName, xdmp:host(), ()) > > let $config := admin:database-create($config, $dbName, > xdmp:database("Security"), xdmp:database("Schemas")) > > let $save := admin:save-configuration($config) > > let $config := admin:database-attach-forest($config, > xdmp:database($dbName), xdmp:forest($dbName)) > > let $save := admin:save-configuration($config) > > let $config := admin:xdbc-server-create($config, > admin:group-get-id($config, "Default"), concat($dbName, '-XDBC'), "/", > $port, 0, xdmp:database($dbName)) > > return admin:save-configuration($config) > > > > Gary > > > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Andreas Jung > *Sent:* Tuesday, February 16, 2016 8:43 AM > *To:* [email protected] > *Subject:* [MarkLogic Dev General] Automatic provisioning and > configuration of ML server? > > > > Hi there, > > > > I am pretty new to MLS and currently evaluating and testing options. > > > > General question: what is the preferred way to configure a MLS > automatically > > after installation without clicking around through the web user interface. > > E.g. I want to create a test database automatically, configure a webdav > app server it > > in a fully automated way...what is the approach here? > > > > Andreas > > _______________________________________________ > General mailing list > [email protected] > Manage your subscription at: > http://developer.marklogic.com/mailman/listinfo/general > >
_______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
