Better, Stronger, Faster! A New Open Atrium Installer. May 8, 2014 in Drupal 9 Comments on this post. http://www.alexweber.com.br/ Alex Weber Nice! Feature-based distributions (are there other kinds?) are notoriously difficult to maintain because of this kind of issues… I’ve personally lost track of just how much time I’ve spent installing, clearing databases, looking at logs, tweaking a line of code and re-installing over and over again because the installer just stopped working all of a sudden. It’s also almost always related to a new feature export that’s causing interdependencies and changing up module installation orders and things get out of whack. A lot of times I wonder whether it’s worth it and somewhat miss the D6 days where every project started from a base build and no node ever had id 1 anymore Whereas it might seem like a step back, I actually kinda like the idea of starting from a dump, not only to solve this particular issue, but in general, for distributions. Wouldn’t it be nice to install, get demo content, jump right into it without having to jump through the same hoops over and over? Just boom, instant Drupal! Specially as far as in-house distros go… maybe I’m just infatuated with this idea but either way, this is very cool, thanks for sharing! Othermachines Works like a charm. Tim Loudon that’s super cool! do you know offhand if this is something that would easily work w/ any distro? briefly looking @ the install_from_db.profile code, it doesn’t look like it’s oa specific. btw, i’m wondering if there are further optimizations to be had: [tloudon@addy install_from_db]$ time mysql tester < ../db/openatrium.sql real 0m21.732s user 0m0.257s sys 0m0.123s the actual db importing part only takes ~22s. could you split openatrium.sql into two files, one for "constants" across installations and another for the installation-specific transformations? i'm guessing the ~100-160s is largely spent parsing and regexing the 2.6mb dumpfile; but how much actually needs to be changed? idk, just a thought. again, super cool. thanks for sharing! Mike Potter It shouldn’t be distribution-specific, but since installers are a bit complex, your mileage may vary. The bulk of the new install time is actually the clearing of the drupal cache after the databases are imported. The parsing and regexing goes quickly. But after importing the tables you need to clear the drupal cache. Then after entering site information the Drupal installer clears the cache again. I didn’t want to get fancy with splitting the sql file or anything. My release process is to add a “drush sql-dump” command to my Jenkins test script that does a “drush site-install” for each release to verify it can be installed. So unless it can easily be automated like this, the work involved in splitting the db dump and keeping it updated wouldn’t be worth the small time savings. RyeSeronie ok so this seems to be the most recent thing I can find about Atrium. I cannot find anything explaining how to get atrium up and running. Do I install drupal first or is atrium its own installation; if so do I just copy the files over or do I install it using the drupal module installer… for something so great I can’t seem to get an answer from anyone! Mike Potter Open Atrium includes Drupal. So just go to http://drupal.org/project/openatrium and click on the 7.x-2.18 tar.gz or zip link at the bottom of the page to download it. Unpack it to a directory in the root of your web server. Then in your browser enter your hostname/install.php to run the installer. More information on installing and updating is found here: https://drupal.org/node/2169701 Jake Schlachter Mike, this is a great idea. I’m using Barracuda / Aegir to manage my OA platforms. Any thoughts on how this will / will not interact with the Aegir automated install process? moshe I’ve been longing for the old ‘import from database’ days as I wait eternally for Drupal 8 to install. I agree that this makes sense sometimes. Aslan Kanzas Mike, this is really great! Thank you very much for your ongoing contributions. Alex’ idea of demo content would really ice this cake – making it really easy to communicate the value of OA to new users. Demo data would also be great for new users to get a feel of how to build their own system, without getting lost in the myriad of awesome options that may be used to do so. Do you have any plans on adding demo data e.g. a demo University OA setup? Let me know if I can help.