Skip to content

Commit b8ccb48

Browse files
committed
added healthcheck.sh
Signed-off-by: Alexander Piskun <[email protected]>
1 parent d134f89 commit b8ccb48

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.nextcloudignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@
4747
/ex_app/src
4848
/ex_app_scripts
4949
/translationtool.phar
50+
/healthcheck.sh
5051
/client
5152
tests

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,13 @@ ADD /ex_app/j[s] /ex_app/js
8383
ADD /ex_app/l10[n] /ex_app/l10n
8484
ADD /ex_app/li[b] /ex_app/lib
8585

86+
COPY --chmod=775 healthcheck.sh /
87+
8688
WORKDIR /Visionatrix
8789

8890
CMD ["/bin/sh", \
8991
"/ex_app_scripts/entrypoint.sh", \
9092
"/ex_app/lib/main.py", \
9193
"/ex_app_scripts/run_visionatrix.sh"]
94+
95+
HEALTHCHECK --interval=2s --timeout=2s --retries=300 CMD /healthcheck.sh

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ help:
1818
@echo " build-push-rocm builds ROCM image and uploads it to ghcr.io"
1919
@echo " "
2020
@echo " > Next commands are only for the dev environment with nextcloud-docker-dev!"
21-
@echo " > They should run from the host you are developing on(with activated venv) and not in the container with Nextcloud!"
21+
@echo " > They must be run from the host you are developing on, not in a Nextcloud container!"
2222
@echo " "
2323
@echo " run30 installs $(APP_NAME) for Nextcloud 30"
2424
@echo " run installs $(APP_NAME) for Nextcloud Latest"

healthcheck.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
exit 0

0 commit comments

Comments
 (0)