fix: resolve CouchDB deployment and init job issues
- Remove problematic ERL_FLAGS from CouchDB StatefulSet - Copy setup-couchdb.js to backend/scripts/ for Docker image inclusion - Update init job to use full DNS name and add timeout/retry logic - Fix script path in init job command 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -20,8 +20,15 @@ spec:
|
||||
- sh
|
||||
- -c
|
||||
- |
|
||||
until curl -f -s http://adopt-a-street-couchdb:5984/_up > /dev/null 2>&1; do
|
||||
echo "Waiting for CouchDB to be ready..."
|
||||
COUNT=0
|
||||
MAX_ATTEMPTS=60
|
||||
until curl -f -s http://adopt-a-street-couchdb.adopt-a-street.svc.cluster.local:5984/_up > /dev/null 2>&1; do
|
||||
COUNT=$((COUNT+1))
|
||||
if [ $COUNT -ge $MAX_ATTEMPTS ]; then
|
||||
echo "Timeout waiting for CouchDB after $MAX_ATTEMPTS attempts"
|
||||
exit 1
|
||||
fi
|
||||
echo "Waiting for CouchDB to be ready... (attempt $COUNT/$MAX_ATTEMPTS)"
|
||||
sleep 3
|
||||
done
|
||||
echo "CouchDB is ready!"
|
||||
|
||||
Reference in New Issue
Block a user