-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some questions on how to set up and upgrade a new platform, based on a default one #512
Comments
Try to keep this simple. Basically, all your questions are answered in this section: https://omega8.cc/library/development Just add your modules to the built-in platform: https://omega8.cc/how-to-customize-built-in-platforms-252 And if this is not enough, create custom platform: https://omega8.cc/how-to-add-custom-platform-properly-140 Also, please understand that Aegir helps you manage your sites upgrades, but it doesn't manage your codebases. It just uses the codebases - either built-in or custom you will create. Again, read https://omega8.cc/your-drupal-site-upgrade-safe-workflow-298 and other articles linked in https://omega8.cc/library/aegir-basics-index That said, we could probably add a magic command like this:
|
Thanks for the info. For example the drupal-site-upgrade-safe-workflow documentation gives a good explanation on how one can/should upgrade a site, but the first step says: Create a new platform (or use some pre-built platform if available and applicable) With links to the documentation on creating a new platform as well as a link to the "pre-built" platforms. Based on the info in other docs I understand it's recommended to use a makefile for the platforms, which is probably perfectly doable for the core drupal platforms, as their make files can be easily downloaded from github. But for the non-core drupal platfroms this doesn't work because I can't just download a makefile an create a new platform off of it. Another possibility would be to rsync everything from /data/disk/sat1/distro/001/panopoly-7.x-1.13-7.33.1 to /data/disk/o1/static but I'm not sure this is recommended ? So as you can see, while the basics are answered in the docs, there are still some important gaps, especially for newcomers to the aegir/boa ecosystem, possibly because it requires a different way of thinking :-) So yes, it would definitely be awesome if you could add the possibility to clone a platform. Also, where can I find more documentation on the barracuda and octopus commands ? I'm sorry for the lengthy post and the many questions, but I'm trying to understand everything as good as possible. |
Every built-in distro comes with its own makefiles you can use to create just another copy of such platform in ~/static. Just modify that makefile to use our enhanced Drupal core. And that is it! Don't mess with creating makefiles from scratch. Just re-use what is already created. Maybe you need to learn more about drush makefiles. But it is outside of the BOA project scope. There are plenty of Drush related docs and articles on d.o You can also rsync the platform locally (to skip the makefile build time) with -L flag to create a mirror copy with different name, and it will include complete code, with dereferenced o_contrib copied/embedded. Just remember to set correct permissions on platform root, /sites and /modules. You can then delete that copied o_contrib directory and simply re-verify the platform in Aegir and it will instantly add the symlink to the system level o_contrib. No magic involved. BOA comes with built-in docs, and what is not included can be easily found on our website. As for the hostmaster platforms, yes, that is how BOA and Aegir works.= |
Ok, thanks, but then again, where am I supposed to find the makefiles ? |
We don't build these platforms from scratch, so we don't provide copies of their own makefiles. You can find them in the respective platforms codebases/profiles which are downloaded from their repositories on drupal.org You can also download and use their already built codebases from drupal.org and only replace the Drupal core - that is exactly what BOA does. No need to run makefiles if you intend to start with some ready to download distro as a base for your custom platform.= |
Allright, that's apparently part of the misconception then. So if I understand it correctly, I can for example set up an OpenAid platform by simply downloading their makefile and replacing the drupal core with the one from boa and in that way still benefit from all the optimizations made to boa ? |
Correct. We don't modify any distro, with rare exceptions, if there is a known bug or duplicate module already provided by BOA specific o_contrib so it could generate PHP errors, so it need to be removed. Or if there is critical security upgrade to some contrib module not yet included in the distro. But these are rare exceptions. Otherwise they are just vanilla distros + our enhanced Drupal core + automatically symlinked o_contrib.= |
Wonderful, this helps a lot in my understanding of the inner workings of Aegir/Boa! |
We should improve our docs, perhaps. |
Yes you should, cause I am lost exactly like santo74 or even more. I would add this too: |
You can't and shouldn't "update" any built-in platform. Please read for more information and context: https://omega8.cc/your-drupal-site-upgrade-safe-workflow-298 You can add/install/re-add new platforms by running octopus upgrade also when there is no new BOA version if old platforms have been deleted, but it is not possible on our hosted BOA - you need to submit support request then. As for the BOA system and platforms upgrade - it is explained in this project docs, but it doesn't apply to hosted BOA, so it is not explained on our website, because we handle these upgrades as a part of managed hosting service. |
I agree that updating the help docs would be good. Please add specific examples. |
What's the recommended way to do the following ?
Set up a platform based on a default provided one, but with additional modules and still being able to easily upgrade this platform whenever a module or platform upgrade becomes available ?
E.g. I want to have a panopoly platform based on the one that gets installed by Octopus (i.e. panopoly with the additional optimizations).
But I need additional modules, such as multilingual capabilities and other contributed modules.
should I create a new platform for this, based on the default one or should I just use the default one and add the additional modules to it directly (with drush dl or similar) ?
In case of the former, then what's the recommended way to do this ?
I can't find any makefile for the default panopoly platform installed by octopus (i.e. with optimizations)
and I'm unable to create a makefile of it, as explained in this issue: unable to use drush make-generate #510
Depending on 1) and 2) above, how can I update the platform and/or the modules?
Can I run octopus up-stable all and will it automatically take care of upgrading/migrating the existing platform, modules and sites on the platform ?
I'm not new to drupal, but I'm quite new to Aegir/Boa and still trying to understand how everything works and how things have to be done.
I'm aware of the nice documentation on the website of omega8.cc, but reading through those docs multiple times, I still ddin't find a complete answer to my questions above.
The text was updated successfully, but these errors were encountered: