Skip to content

Commit

Permalink
Merge pull request #23 from nextcloud/feat/health-check
Browse files Browse the repository at this point in the history
feat: "healthcheck" file
  • Loading branch information
bigcat88 authored Oct 18, 2024
2 parents e2f47ce + 0a8028a commit 62cdc69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .nextcloudignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@
/ex_app/src
/ex_app_scripts
/translationtool.phar
/healthcheck.sh
tests
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ ADD /ex_app/j[s] /ex_app/js
ADD /ex_app/l10[n] /ex_app/l10n
ADD /ex_app/li[b] /ex_app/lib

COPY --chmod=775 healthcheck.sh /

WORKDIR /ex_app/lib
ENTRYPOINT ["python3", "main.py"]
HEALTHCHECK --interval=2s --timeout=2s --retries=300 CMD /healthcheck.sh
3 changes: 3 additions & 0 deletions healthcheck.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

exit 0

0 comments on commit 62cdc69

Please sign in to comment.