File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ cleanup() {
2121trap cleanup EXIT
2222
2323# 1. Pull a2a-samples and checkout revision
24- : " ${A2A_SAMPLES_REVISION:? A2A_SAMPLES_REVISION environment variable must be set } "
24+ : " ${A2A_SAMPLES_REVISION:= $(grep " A2A_SAMPLES_REVISION: " .. / .github / workflows / itk.yaml | head -n 1 | awk ' {print $2} ' ) } "
2525
2626if [ ! -d " a2a-samples" ]; then
2727 git clone https://github.com/a2aproject/a2a-samples.git a2a-samples
@@ -66,13 +66,15 @@ docker rm -f itk-service || true
6666docker run -d --name itk-service \
6767 -v " $A2A_PYTHON_ROOT :/app/agents/repo" \
6868 -v " $ITK_DIR :/app/agents/repo/itk" \
69+ -v " $A2A_PYTHON_ROOT /.git:/app/agents/repo/.git" \
6970 -p 8000:8000 \
7071 itk_service
7172
7273# 5.1. Fix dubious ownership for git (needed for uv-dynamic-versioning)
7374docker exec itk-service git config --global --add safe.directory /app/agents/repo
7475docker exec itk-service git config --global --add safe.directory /app/agents/repo/itk
7576
77+
7678# 6. Verify service is up and send post request
7779MAX_RETRIES=30
7880echo " Waiting for ITK service to start on 127.0.0.1:8000..."
You can’t perform that action at this time.
0 commit comments