Skip to content

Commit

Permalink
added healthcheck.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Piskun <[email protected]>
  • Loading branch information
bigcat88 committed Oct 18, 2024
1 parent d134f89 commit b8ccb48
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .nextcloudignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,6 @@
/ex_app/src
/ex_app_scripts
/translationtool.phar
/healthcheck.sh
/client
tests
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,13 @@ 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 /Visionatrix

CMD ["/bin/sh", \
"/ex_app_scripts/entrypoint.sh", \
"/ex_app/lib/main.py", \
"/ex_app_scripts/run_visionatrix.sh"]

HEALTHCHECK --interval=2s --timeout=2s --retries=300 CMD /healthcheck.sh
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ help:
@echo " build-push-rocm builds ROCM image and uploads it to ghcr.io"
@echo " "
@echo " > Next commands are only for the dev environment with nextcloud-docker-dev!"
@echo " > They should run from the host you are developing on(with activated venv) and not in the container with Nextcloud!"
@echo " > They must be run from the host you are developing on, not in a Nextcloud container!"
@echo " "
@echo " run30 installs $(APP_NAME) for Nextcloud 30"
@echo " run installs $(APP_NAME) for Nextcloud Latest"
Expand Down
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 b8ccb48

Please sign in to comment.