[ 
https://issues.apache.org/jira/browse/FLINK-27834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yang Wang closed FLINK-27834.
-----------------------------
    Fix Version/s: kubernetes-operator-1.0.0
       Resolution: Fixed

Fixed via:

main: db13018975361e3271e26be64a3940a5710097e7

release-1.0: c8d2a71a61a943fb9b5cf31575a40c6988665740

> Flink kubernetes operator dockerfile could not work with podman
> ---------------------------------------------------------------
>
>                 Key: FLINK-27834
>                 URL: https://issues.apache.org/jira/browse/FLINK-27834
>             Project: Flink
>          Issue Type: Bug
>          Components: Kubernetes Operator
>            Reporter: Yang Wang
>            Assignee: Zili Chen
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: kubernetes-operator-1.0.0
>
>
> [1/2] STEP 16/19: COPY *.git ./.git
> Error: error building at STEP "COPY *.git ./.git": checking on sources under 
> "/root/FLINK/release-1.0-rc2/flink-kubernetes-operator-1.0.0": Rel: can't 
> make  relative to 
> /root/FLINK/release-1.0-rc2/flink-kubernetes-operator-1.0.0; copier: stat: 
> ["/*.git"]: no such file or directory
>  
> podman version
> Client:       Podman Engine
> Version:      4.0.2
> API Version:  4.0.2
>  
>  
> I think the root cause is "*.git" is not respected by podman. Maybe we could 
> simply copy the whole directory when building the image.
>  
> {code:java}
> WORKDIR /app
> COPY . .
> RUN --mount=type=cache,target=/root/.m2 mvn -ntp clean install -pl 
> !flink-kubernetes-docs -DskipTests=$SKIP_TESTS {code}



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to