Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-27834

Flink kubernetes operator dockerfile could not work with podman

    XMLWordPrintableJSON

Details

    Description

      [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.

       

      WORKDIR /app
      
      COPY . .
      
      RUN --mount=type=cache,target=/root/.m2 mvn -ntp clean install -pl !flink-kubernetes-docs -DskipTests=$SKIP_TESTS 

      Attachments

        Issue Links

          Activity

            People

              tison Zili Chen
              wangyang0918 Yang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: