-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add healthcheck #1684
Merged
Merged
Add healthcheck #1684
Conversation
This file contains 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
013e0d9
to
477632a
Compare
skjnldsv
requested changes
Apr 13, 2022
c627bfe
to
7c89c0e
Compare
7c89c0e
to
c627bfe
Compare
This checks if status.php returns succesfully to determine if the Nextcloud instance is health. Signed-off-by: Sylvia van Os <[email protected]>
c627bfe
to
8355426
Compare
skjnldsv
approved these changes
Apr 13, 2022
@skjnldsv https://github.com/docker-library/faq#healthcheck= This also breaks on all FPM variants. |
@J0WI wanna revert? |
docker-library-bot
added a commit
to docker-library-bot/official-images
that referenced
this pull request
Apr 26, 2022
Changes: - https///github.com/nextcloud/docker/commit/00c5180: Merge pull request https///github.com/nextcloud/docker/pull/1737 from J0WI/readme-typos - https///github.com/nextcloud/docker/commit/a497f03: Runs update.sh - https///github.com/nextcloud/docker/commit/f511ef2: Minor typos - https///github.com/nextcloud/docker/commit/b842cb3: Merge pull request https///github.com/nextcloud/docker/pull/1728 from nextcloud/feat/simultaneaous-html-init - https///github.com/nextcloud/docker/commit/35b8ebf: Allow simultaneous initialization of common html volume - https///github.com/nextcloud/docker/commit/e76b7ca: Merge pull request https///github.com/nextcloud/docker/pull/1732 from nextcloud/revert-1684-feature/healthcheck - https///github.com/nextcloud/docker/commit/ca1e773: Revert "Add healthcheck" - https///github.com/nextcloud/docker/commit/f9d8052: Merge pull request https///github.com/nextcloud/docker/pull/1684 from TheLastProject/feature/healthcheck - https///github.com/nextcloud/docker/commit/4bb8d00: Create command-rebase.yml - https///github.com/nextcloud/docker/commit/1bd3a50: Merge pull request https///github.com/nextcloud/docker/pull/1730 from nextcloud/add/summary-mandatory-step - https///github.com/nextcloud/docker/commit/8355426: Add healthcheck - https///github.com/nextcloud/docker/commit/58273cd: Merge pull request https///github.com/nextcloud/docker/pull/1698 from t3easy/hide-nginx-infos - https///github.com/nextcloud/docker/commit/2753dad: Add mandatory summary step for branches protection - https///github.com/nextcloud/docker/commit/da935d2: Runs update.sh - https///github.com/nextcloud/docker/commit/e36ca5f: Fix regex for pecl prereleases (https///github.com/nextcloud/docker/pull/1725) - https///github.com/nextcloud/docker/commit/71f4a94: update.sh: Remove unused paths (https///github.com/nextcloud/docker/pull/1723)
docker-library-bot
added a commit
to docker-library-bot/official-images
that referenced
this pull request
Apr 26, 2022
Changes: - https///github.com/nextcloud/docker/commit/3f42156: 23.0.4 stable (https///github.com/nextcloud/docker/pull/1738) - https///github.com/nextcloud/docker/commit/00c5180: Merge pull request https///github.com/nextcloud/docker/pull/1737 from J0WI/readme-typos - https///github.com/nextcloud/docker/commit/a497f03: Runs update.sh - https///github.com/nextcloud/docker/commit/f511ef2: Minor typos - https///github.com/nextcloud/docker/commit/b842cb3: Merge pull request https///github.com/nextcloud/docker/pull/1728 from nextcloud/feat/simultaneaous-html-init - https///github.com/nextcloud/docker/commit/35b8ebf: Allow simultaneous initialization of common html volume - https///github.com/nextcloud/docker/commit/e76b7ca: Merge pull request https///github.com/nextcloud/docker/pull/1732 from nextcloud/revert-1684-feature/healthcheck - https///github.com/nextcloud/docker/commit/ca1e773: Revert "Add healthcheck" - https///github.com/nextcloud/docker/commit/f9d8052: Merge pull request https///github.com/nextcloud/docker/pull/1684 from TheLastProject/feature/healthcheck - https///github.com/nextcloud/docker/commit/4bb8d00: Create command-rebase.yml - https///github.com/nextcloud/docker/commit/1bd3a50: Merge pull request https///github.com/nextcloud/docker/pull/1730 from nextcloud/add/summary-mandatory-step - https///github.com/nextcloud/docker/commit/8355426: Add healthcheck - https///github.com/nextcloud/docker/commit/58273cd: Merge pull request https///github.com/nextcloud/docker/pull/1698 from t3easy/hide-nginx-infos - https///github.com/nextcloud/docker/commit/2753dad: Add mandatory summary step for branches protection - https///github.com/nextcloud/docker/commit/da935d2: Runs update.sh - https///github.com/nextcloud/docker/commit/e36ca5f: Fix regex for pecl prereleases (https///github.com/nextcloud/docker/pull/1725) - https///github.com/nextcloud/docker/commit/71f4a94: update.sh: Remove unused paths (https///github.com/nextcloud/docker/pull/1723)
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.
This communicates to the built-in serverinfo system to see if the Nextcloud instance is healthy.
I have marked this as WIP because this won't work under php-fpm and I'm not sure how to deal with that. If nextcloud/serverinfo#190 gets implemented this could be made to work in both regular and php-fpm version.
This could also be implemented without
jq
by using sed as follows (| sed -n 's;<status>\(.*\)</status>;\1;p')
) but this is definitely less clean and may cause unexpected issues if there is ever another "status" field added so I wouldn't recommend that.