From a181fd0d2da322605c4f6fdcdd41ab1d69981863 Mon Sep 17 00:00:00 2001 From: hailin Date: Sat, 6 Dec 2025 23:42:48 -0800 Subject: [PATCH] fix(mpc-service): change healthcheck from wget to curl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docker compose healthcheck was using wget which is not installed in the node:20-slim image. Changed to use curl and corrected endpoint path. šŸ¤– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/services/.claude/settings.local.json | 5 +- .../.claude/settings.local.json | 47 +++++++++++++++---- .../services/mpc-service/docker-compose.yml | 2 +- 3 files changed, 43 insertions(+), 11 deletions(-) diff --git a/backend/services/.claude/settings.local.json b/backend/services/.claude/settings.local.json index b99eee48..22feb92d 100644 --- a/backend/services/.claude/settings.local.json +++ b/backend/services/.claude/settings.local.json @@ -20,7 +20,10 @@ "Bash(services/mpc-service/src/infrastructure/messaging/kafka/event-consumer.service.ts)", "Bash(npm run build:*)", "Bash(npx nest build)", - "Bash(npm install)" + "Bash(npm install)", + "Bash(node:*)", + "Bash(git checkout:*)", + "Bash(git clean:*)" ], "deny": [], "ask": [] diff --git a/backend/services/identity-service/.claude/settings.local.json b/backend/services/identity-service/.claude/settings.local.json index 9a54b6b2..6a56fe55 100644 --- a/backend/services/identity-service/.claude/settings.local.json +++ b/backend/services/identity-service/.claude/settings.local.json @@ -1,9 +1,38 @@ -{ - "permissions": { - "allow": [ - "Bash(xargs ls:*)" - ], - "deny": [], - "ask": [] - } -} +{ + "permissions": { + "allow": [ + "Bash(xargs ls:*)", + "Bash(git add:*)", + "Bash(git commit -m \"$(cat <<''EOF''\nfix(identity-service): convert deploy.sh line endings from CRLF to LF\n\nFix bash interpreter error caused by Windows-style CRLF line endings\n\nšŸ¤– Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.5 \nEOF\n)\")", + "Bash(git push)", + "Bash(wsl bash -c \"cd /mnt/c/Users/dong/Desktop/rwadurian/backend/services/identity-service && docker-compose logs --tail=50\")", + "Bash(wsl bash -c \"cd /mnt/c/Users/dong/Desktop/rwadurian/backend/services/identity-service && docker compose logs --tail=50\")", + "Bash(wsl bash -c \"docker ps -a | grep identity\")", + "Bash(wsl bash -c \"docker logs rwa-identity-service --tail=100\")", + "Bash(git commit -m \"$(cat <<''EOF''\nfix(identity-service): add MpcEventConsumerService to InfrastructureModule\n\nAdd missing MpcEventConsumerService provider to fix NestJS dependency injection error.\nMpcClientService requires MpcEventConsumerService but it was not registered in the module.\n\nšŸ¤– Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.5 \nEOF\n)\")", + "Bash(wsl bash -c \"cd /mnt/c/Users/dong/Desktop/rwadurian/backend/services/identity-service && docker compose up -d --build\")", + "Bash(wsl bash -c \"cd /home/dong/rwadurian && git pull\")", + "Bash(wsl bash -c \"cd /home/dong/rwadurian && git fetch && git status\")", + "Bash(wsl bash -c \"cd /home/dong/rwadurian && git log --oneline -3\")", + "Bash(wsl bash -c \"cd /home/dong/rwadurian/backend/services/identity-service && docker compose up -d --build\")", + "Bash(wsl bash -c \"pgrep -f ''docker build'' | xargs -r kill -9; docker ps -q --filter ''status=running'' | head -5\")", + "Bash(wsl bash -c \"pkill -9 -f ''docker-compose\\|docker compose'' 2>/dev/null; docker buildx stop 2>/dev/null; echo ''Done''\")", + "Bash(wsl bash -c \"docker buildx stop 2>/dev/null; pkill -9 -f ''docker'' 2>/dev/null; echo ''Build killed''\")", + "Bash(wsl bash -c \"cat /home/dong/rwadurian/backend/services/identity-service/src/infrastructure/infrastructure.module.ts\")", + "Bash(wsl bash -c \"docker logs rwa-identity-service --tail=50\")", + "Bash(wsl bash:*)", + "Bash(git commit -m \"$(cat <<''EOF''\nfix(identity-service): add MpcEventConsumerService to app.module.ts\n\nThe InfrastructureModule was defined inline in app.module.ts, not using\nthe separate infrastructure.module.ts file. Added MpcEventConsumerService\nto the inline module definition.\n\nšŸ¤– Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude Opus 4.5 \nEOF\n)\")", + "Bash(powershell -Command \"(Get-Content ''c:\\Users\\dong\\Desktop\\rwadurian\\backend\\services\\mpc-service\\deploy.sh'' -Raw) -match ''\\r\\n''\")", + "Bash(git commit:*)", + "Bash(del \"src\\api\\controllers\\deposit.controller.ts\")", + "Bash(del \"src\\application\\services\\deposit.service.ts\")", + "Bash(del \"src\\infrastructure\\external\\blockchain\\blockchain-query.service.ts\")", + "Bash(powershell -Command:*)", + "Bash(git pull:*)", + "Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" add -A)", + "Bash(git -C \"c:\\Users\\dong\\Desktop\\rwadurian\" status)" + ], + "deny": [], + "ask": [] + } +} diff --git a/backend/services/mpc-service/docker-compose.yml b/backend/services/mpc-service/docker-compose.yml index 92a08f6b..f8813f89 100644 --- a/backend/services/mpc-service/docker-compose.yml +++ b/backend/services/mpc-service/docker-compose.yml @@ -55,7 +55,7 @@ services: volumes: - ./logs:/app/logs healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://localhost:3001/health"] + test: ["CMD", "curl", "-f", "http://localhost:3001/api/v1/health"] interval: 30s timeout: 10s retries: 3