diff --git a/.nextcloudignore b/.nextcloudignore index 489e2de..252fe07 100644 --- a/.nextcloudignore +++ b/.nextcloudignore @@ -47,5 +47,6 @@ /ex_app/src /ex_app_scripts /translationtool.phar +/healthcheck.sh /client tests diff --git a/Dockerfile b/Dockerfile index d225d55..4777629 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Makefile b/Makefile index 859e4da..a3e3312 100644 --- a/Makefile +++ b/Makefile @@ -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" diff --git a/healthcheck.sh b/healthcheck.sh new file mode 100644 index 0000000..8c3cbfc --- /dev/null +++ b/healthcheck.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +exit 0