Ensure entrypoint waits until Moodle is fully installed#24
Open
derdennis1012 wants to merge 1 commit intomainfrom
Open
Ensure entrypoint waits until Moodle is fully installed#24derdennis1012 wants to merge 1 commit intomainfrom
derdennis1012 wants to merge 1 commit intomainfrom
Conversation
Fixes #23 Add logic to wait for Moodle to be fully installed and healthy before proceeding with the entry point. * **docker-compose.yml** - Modify health check to include a check for the admin page to ensure Moodle is fully installed. * **docker/moodle/scripts/setup.sh** - Add function `is_moodle_installed` to check if Moodle is fully installed by querying the database. - Add function `is_moodle_healthy` to check the health status of the Moodle service. - Add a loop to wait for Moodle to be fully installed and healthy before proceeding with the setup script. * **Makefile** - Modify `install-plugins` command to wait for Moodle to be fully installed and healthy before proceeding. - Modify `check-updates` command to wait for Moodle to be fully installed and healthy before proceeding. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/derdennis1012/moodle-cli/issues/23?shareId=XXXX-XXXX-XXXX-XXXX).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #23
Add logic to wait for Moodle to be fully installed and healthy before proceeding with the entry point.
is_moodle_installedto check if Moodle is fully installed by querying the database.is_moodle_healthyto check the health status of the Moodle service.install-pluginscommand to wait for Moodle to be fully installed and healthy before proceeding.check-updatescommand to wait for Moodle to be fully installed and healthy before proceeding.For more details, open the Copilot Workspace session.