Skip to content

Commit 7b5cba8

Browse files
GitHKAndrei Neagu
and
Andrei Neagu
authored
🐛 Making dy-sidecar start faster when volumes contain data (#6886)
Co-authored-by: Andrei Neagu <[email protected]>
1 parent f56acf6 commit 7b5cba8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

services/dynamic-sidecar/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ RUN chmod +x services/dynamic-sidecar/docker/*.sh
187187
HEALTHCHECK \
188188
--interval=10s \
189189
--timeout=5s \
190-
--start-period=30s \
190+
--start-period=180s \
191191
--start-interval=1s \
192192
--retries=5 \
193193
CMD ["python3", "services/dynamic-sidecar/docker/healthcheck.py", "http://localhost:8000/health"]

services/dynamic-sidecar/docker/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,12 @@ fi
9393
# Change ownership of volumes mount directory
9494
# directories are empty at this point
9595
# each individual subdirectory is a unique volume
96-
chown --verbose --recursive "$SC_USER_NAME":"$GROUPNAME" "${DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR}"
96+
chown --recursive "$SC_USER_NAME":"$GROUPNAME" "${DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR}"
9797
# Allow owner and group to edit write and execute
9898
# files from all the subdirectories
9999
# When the service access files downloaded by the dynamic-sidecar
100100
# it uses group permissions
101-
chmod --verbose --recursive 774 "${DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR}"
101+
chmod --recursive 774 "${DYNAMIC_SIDECAR_DY_VOLUMES_MOUNT_DIR}"
102102

103103
echo "$INFO Starting $* ..."
104104
echo " $SC_USER_NAME rights : $(id "$SC_USER_NAME")"

0 commit comments

Comments
 (0)