Skip to content

Commit 4c93b68

Browse files
committed
[FLINK-17857][e2e] Fix docker e2e tests on Mac OS
1 parent 072992f commit 4c93b68

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flink-end-to-end-tests/test-scripts/common_docker.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ function containers_health_check() {
3535

3636
function build_image() {
3737
local image_name=${1:-flink-job}
38-
local file_server_address=${2:-localhost}
38+
local default_file_server_address="localhost"
39+
[[ "${OS_TYPE}" != "linux" ]] && default_file_server_address="host.docker.internal"
40+
local file_server_address=${2:-${default_file_server_address}}
3941

4042
echo "Starting fileserver for Flink distribution"
4143
pushd ${FLINK_DIR}/..

0 commit comments

Comments
 (0)