Skip to content

Commit

Permalink
🐛 Making dy-sidecar start faster when volumes contain data (ITISFound…
Browse files Browse the repository at this point in the history
…ation#6886)

Co-authored-by: Andrei Neagu <[email protected]>
  • Loading branch information
GitHK and Andrei Neagu authored Dec 4, 2024
1 parent f56acf6 commit 7b5cba8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion services/dynamic-sidecar/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions services/dynamic-sidecar/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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")"
Expand Down

0 comments on commit 7b5cba8

Please sign in to comment.