[ https://issues.apache.org/jira/browse/FLINK-27834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17543760#comment-17543760 ]
Gyula Fora commented on FLINK-27834: ------------------------------------ yes, the user can have anything in their local directory by accident > 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 > Priority: Major > > [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)