[ 
https://issues.apache.org/jira/browse/FLINK-17857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17118440#comment-17118440
 ] 

Yang Wang commented on FLINK-17857:
-----------------------------------

The root cause is when building the image we use {{localhost:9999}} to fetch 
the flink.tgz. However, in K8s e2e tests on Mac OS, actually we are building 
the image in virtual machine, not the physical machine. So the local host could 
not be used to downloaded the tgz.

> Why do we build the image in virtual machine?

Because we set {{eval $(minikube docker-env)}} in {{common_kubernetes.sh}}. 

> All Kubernetes e2e tests could not run on Mac after migration
> -------------------------------------------------------------
>
>                 Key: FLINK-17857
>                 URL: https://issues.apache.org/jira/browse/FLINK-17857
>             Project: Flink
>          Issue Type: Test
>          Components: Deployment / Kubernetes, Tests
>            Reporter: Yang Wang
>            Priority: Major
>             Fix For: 1.11.0
>
>
> In FLINK-17656, we migrate all the e2e tests from {{flink-container/docker}} 
> to {{apache/flink-docker}}. After the migration, when building a docker 
> image, we need to start a file server and then download it in the 
> {{Dockerfile}}.
> It works well in linux environment since the minikube is started in 
> "vm-driver=none". However, it is not true in the Mac. We usually start a 
> virtual machine for minikube and this will make "localhost" could not work.
> So i suggest to support local Flink dist when building the docker image, not 
> always need to download from a URL.
>  
> cc [~chesnay]



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to