Skip to content

Commit

Permalink
[hotfix][ci] Docker might return multiple port bindings
Browse files Browse the repository at this point in the history
Adding the grep will work around this issue.
  • Loading branch information
XComp committed May 10, 2024
1 parent 4fe66e0 commit b2cdb4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flink-end-to-end-tests/test-scripts/common_s3_minio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -115,4 +115,4 @@ function s3_setup_with_provider {
set_config_key "s3.path-style-access" "true"
}

source "$(dirname "$0")"/common_s3_operations.sh
source "$(dirname "$0")"/common_s3_operations.sh

0 comments on commit b2cdb4a

Please sign in to comment.