EricGao888 commented on code in PR #13936:
URL: 
https://github.com/apache/dolphinscheduler/pull/13936#discussion_r1169421793


##########
dolphinscheduler-api-test/dolphinscheduler-api-test-case/src/test/resources/docker/basic/docker-compose.yaml:
##########
@@ -26,12 +26,18 @@ services:
     ports:
       - "12345:12345"
     networks:
-      - api-test
+      network:
+        ipv4_address: 10.5.0.5
     healthcheck:
       test: [ "CMD", "curl", "http://localhost:12345/actuator/health"; ]
       interval: 5s
       timeout: 60s
       retries: 120
 
 networks:
-  api-test:
+  network:
+    driver: bridge
+    ipam:
+      config:
+        - subnet: 10.5.0.0/16
+          gateway: 10.5.0.1

Review Comment:
   We need to know the worker ip address when calling `saveWorkerGroup`. If we 
use a random ip, it would figure out there is no such worker and lead to 
failure.
   
![image](https://user-images.githubusercontent.com/34905992/232653100-758968b7-43c3-489f-ab22-24ef05dfb665.png)
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to