From 7b5cba8d030592a1901558af2cdcdb261c2be2a4 Mon Sep 17 00:00:00 2001 From: Andrei Neagu <5694077+GitHK@users.noreply.github.com> Date: Thu, 5 Dec 2024 00:42:58 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Making=20dy-sidecar=20start=20fa?= =?UTF-8?q?ster=20when=20volumes=20contain=20data=20(#6886)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Andrei Neagu --- services/dynamic-sidecar/Dockerfile | 2 +- services/dynamic-sidecar/docker/entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/services/dynamic-sidecar/Dockerfile b/services/dynamic-sidecar/Dockerfile index 5eb6662593f..a6e9fc0a4a1 100644 --- a/services/dynamic-sidecar/Dockerfile +++ b/services/dynamic-sidecar/Dockerfile @@ -187,7 +187,7 @@ RUN chmod +x services/dynamic-sidecar/docker/*.sh HEALTHCHECK \ --interval=10s \ --timeout=5s \ - --start-period=30s \ + --start-period=180s \ --start-interval=1s \ --retries=5 \ CMD ["python3", "services/dynamic-sidecar/docker/healthcheck.py", "http://localhost:8000/health"] diff --git a/services/dynamic-sidecar/docker/entrypoint.sh b/services/dynamic-sidecar/docker/entrypoint.sh index 9ccf61d8f67..89a33fb8a74 100755 --- a/services/dynamic-sidecar/docker/entrypoint.sh +++ b/services/dynamic-sidecar/docker/entrypoint.sh @@ -93,12 +93,12 @@ fi # Change ownership of volumes mount directory # directories are empty at this point # each individual subdirectory is a unique volume -chown --verbose --recursive "$SC_USER_NAME":"$GROUPNAME" "${DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR}" +chown --recursive "$SC_USER_NAME":"$GROUPNAME" "${DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR}" # Allow owner and group to edit write and execute # files from all the subdirectories # When the service access files downloaded by the dynamic-sidecar # it uses group permissions -chmod --verbose --recursive 774 "${DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR}" +chmod --recursive 774 "${DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR}" echo "$INFO Starting $* ..." echo " $SC_USER_NAME rights : $(id "$SC_USER_NAME")"