fix(mpc-service): change healthcheck from wget to curl

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 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-06 23:42:48 -08:00
parent 5e93bbac33
commit a181fd0d2d
3 changed files with 43 additions and 11 deletions

View File

@ -20,7 +20,10 @@
"Bash(services/mpc-service/src/infrastructure/messaging/kafka/event-consumer.service.ts)", "Bash(services/mpc-service/src/infrastructure/messaging/kafka/event-consumer.service.ts)",
"Bash(npm run build:*)", "Bash(npm run build:*)",
"Bash(npx nest build)", "Bash(npx nest build)",
"Bash(npm install)" "Bash(npm install)",
"Bash(node:*)",
"Bash(git checkout:*)",
"Bash(git clean:*)"
], ],
"deny": [], "deny": [],
"ask": [] "ask": []

View File

@ -1,9 +1,38 @@
{ {
"permissions": { "permissions": {
"allow": [ "allow": [
"Bash(xargs ls:*)" "Bash(xargs ls:*)",
], "Bash(git add:*)",
"deny": [], "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 <noreply@anthropic.com>\nEOF\n)\")",
"ask": [] "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 <noreply@anthropic.com>\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 <noreply@anthropic.com>\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": []
}
}

View File

@ -55,7 +55,7 @@ services:
volumes: volumes:
- ./logs:/app/logs - ./logs:/app/logs
healthcheck: healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost:3001/health"] test: ["CMD", "curl", "-f", "http://localhost:3001/api/v1/health"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3