This is an automated email from the ASF dual-hosted git repository. mapohl pushed a commit to branch FLINK-34324 in repository https://gitbox.apache.org/repos/asf/flink.git
commit ba8473936a9fddd41a712e74506607e0f1d94214 Author: Matthias Pohl <[email protected]> AuthorDate: Wed Feb 7 11:42:32 2024 +0100 [hotfix][ci] Docker might return multiple port bindings Adding the grep will work around this issue. --- flink-end-to-end-tests/test-scripts/common_s3_minio.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flink-end-to-end-tests/test-scripts/common_s3_minio.sh b/flink-end-to-end-tests/test-scripts/common_s3_minio.sh index a56ce4e9410..d3d08392caa 100644 --- a/flink-end-to-end-tests/test-scripts/common_s3_minio.sh +++ b/flink-end-to-end-tests/test-scripts/common_s3_minio.sh @@ -54,7 +54,7 @@ function s3_start { while [[ "$(docker inspect -f {{.State.Running}} "$MINIO_CONTAINER_ID")" -ne "true" ]]; do sleep 0.1 done - export S3_ENDPOINT="http://$(docker port "$MINIO_CONTAINER_ID" 9000 | sed s'/0\.0\.0\.0/localhost/')" + export S3_ENDPOINT="http://$(docker port "$MINIO_CONTAINER_ID" 9000 | grep -F '0.0.0.0' | sed s'/0\.0\.0\.0/localhost/')" echo "Started minio @ $S3_ENDPOINT" on_exit s3_stop } @@ -115,4 +115,4 @@ function s3_setup_with_provider { set_config_key "s3.path-style-access" "true" } -source "$(dirname "$0")"/common_s3_operations.sh \ No newline at end of file +source "$(dirname "$0")"/common_s3_operations.sh
