Skip to content
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

Make Hostmaster container upgradable. #15

Merged
merged 19 commits into from Mar 27, 2017
Merged

Conversation

jonpugh
Copy link
Member

@jonpugh jonpugh commented Sep 8, 2016

This PR changes the file layout of the home folder so that /var/aegir/hostmaster is the path.

This is so subsequent container versions can replace those files.

I've altered the entrypoint.sh script to check for an active hostmaster, and if it's there, immediately run drush updb on it. This will allow easy container based upgrades to Aegir.

It seems to work pretty well!

See this commit for a detailed description of what changed: 3495fdc

jonpugh and others added 19 commits Sep 7, 2016
  - Create new environment variable AEGIR_HOSTMASTER_ROOT to make the path to hostmaster fixed.
  - Check for an active hostmaster as soon as database is available in docker-entrypoint.sh. If @hostmaster responds, run 'drush updb -y' immediately, then provision-verify!
  - If hostmaster does not respond, run the drush @hostmaster-install command
  - Set 'root' option explicity to $AEGIR_HOSTMASTER_ROOT in 'drush hostmaster-install' command.
  - Remove the confusing AEGIR_VERSION variable, as it is only used by drush_hostmaster_install() function to determine what path to install hostmaster to.  Instead of that, we are fixing the path since we want to be able to replace the containers without having to dynamically alter anything.

  First big step towards upgradable Aegir containers!
…latform exists, if so, run hostmaster-migrate on it.
@jonpugh jonpugh merged commit a3955a6 into master Mar 27, 2017
@jonpugh jonpugh deleted the fixed-hostmaster-path branch Mar 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants