From 621e2086126c1ed12a74ebaf303ee0130f534a84 Mon Sep 17 00:00:00 2001 From: Andreas Bleuler Date: Thu, 9 Sep 2021 11:14:07 +0200 Subject: [PATCH] fix: remove logic to avoid race condition in entrypoint Note: the race condition will be avoided by moving the cloning back to an init container also with Amalthea. --- docker/py/entrypoint.sh | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/docker/py/entrypoint.sh b/docker/py/entrypoint.sh index dd306a97..f5adddca 100755 --- a/docker/py/entrypoint.sh +++ b/docker/py/entrypoint.sh @@ -22,18 +22,6 @@ then fi # install git hooks -# we need to avoid a race condition where renku could try to install -# the git hooks before the repo is actually cloned during the execution -# of the entrypoint of the git sidecar -if [[ -v GIT_CLONE_REPO && -v NOTEBOOK_DIR ]] -then - while [[ ! -f ./.renku-repo-clone-complete ]] - do - echo "Waiting for repository to be cloned..." - sleep 1 - done - rm ./.renku-repo-clone-complete -fi ~/.local/bin/renku githooks install || true # run the post-init script in the root directory (i.e. coming from the image)