You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ma...@apache.org on 2024/05/10 08:03:18 UTC
(flink) 01/04: [hotfix][ci] Docker might return multiple port bindings
This is an automated email from the ASF dual-hosted git repository.
mapohl pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
commit b2cdb4aac98b1858ba63596e6c6a3bddf3f274da
Author: Matthias Pohl <ma...@aiven.io>
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