Skip to content

Commit db6e784

Browse files
KoderFPVclaude
andcommitted
fix: Use Docker bridge gateway IP for Jenkins container networking
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent a7f0661 commit db6e784

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Jenkinsfile.eval

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ pipeline {
99
TEST_LOCALE = 'en'
1010
OLLAMA_URL = 'http://192.168.68.80:11434/v1'
1111
OLLAMA_MODEL = 'mistral-small3.2:24b-instruct-2506-q8_0'
12-
MONGODB_URI = 'mongodb://localhost:27017/cognito-eval'
13-
WEAVIATE_HTTP_HOST = 'localhost'
12+
DOCKER_HOST_IP = '172.17.0.1'
13+
MONGODB_URI = 'mongodb://172.17.0.1:27017/cognito-eval'
14+
WEAVIATE_HTTP_HOST = '172.17.0.1'
1415
WEAVIATE_HTTP_PORT = '8081'
15-
WEAVIATE_GRPC_HOST = 'localhost'
16+
WEAVIATE_GRPC_HOST = '172.17.0.1'
1617
WEAVIATE_GRPC_PORT = '50052'
1718
WEAVIATE_SECURE = 'false'
1819
WEAVIATE_API_KEY = ''
@@ -34,7 +35,7 @@ pipeline {
3435
timeout 60 bash -c 'until docker exec cognito-eval-mongo mongosh --eval "db.runCommand({ ping: 1 })" > /dev/null 2>&1; do sleep 2; done'
3536

3637
echo "Waiting for Weaviate..."
37-
timeout 120 bash -c 'until curl -s http://localhost:8081/v1/.well-known/ready > /dev/null 2>&1; do sleep 2; done'
38+
timeout 120 bash -c 'until docker exec cognito-eval-weaviate curl -s http://localhost:8080/v1/.well-known/ready > /dev/null 2>&1; do sleep 2; done'
3839

3940
echo "Infrastructure ready!"
4041
'''

0 commit comments

Comments
 (0)