From 92784a940b2c99f669c50b0c8fda31e0c5d13c7a Mon Sep 17 00:00:00 2001 From: Krzysztof Dziedzic Date: Tue, 7 Apr 2026 12:29:32 +0000 Subject: [PATCH] mount git to itk --- itk/run_itk.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/itk/run_itk.sh b/itk/run_itk.sh index 908a5fbc5..ebea19f66 100755 --- a/itk/run_itk.sh +++ b/itk/run_itk.sh @@ -21,7 +21,7 @@ cleanup() { trap cleanup EXIT # 1. Pull a2a-samples and checkout revision -: "${A2A_SAMPLES_REVISION:?A2A_SAMPLES_REVISION environment variable must be set}" +: "${A2A_SAMPLES_REVISION:=$(grep "A2A_SAMPLES_REVISION:" ../.github/workflows/itk.yaml | head -n 1 | awk '{print $2}')}" if [ ! -d "a2a-samples" ]; then git clone https://github.com/a2aproject/a2a-samples.git a2a-samples @@ -66,6 +66,7 @@ docker rm -f itk-service || true docker run -d --name itk-service \ -v "$A2A_PYTHON_ROOT:/app/agents/repo" \ -v "$ITK_DIR:/app/agents/repo/itk" \ + -v "$A2A_PYTHON_ROOT/.git:/app/agents/repo/.git" \ -p 8000:8000 \ itk_service @@ -73,6 +74,7 @@ docker run -d --name itk-service \ docker exec itk-service git config --global --add safe.directory /app/agents/repo docker exec itk-service git config --global --add safe.directory /app/agents/repo/itk + # 6. Verify service is up and send post request MAX_RETRIES=30 echo "Waiting for ITK service to start on 127.0.0.1:8000..."