Thanks Jim for the testing.

Could you please share the docker version you are using to build the image?
It works well for "20.10.8".

*COPY *.git ./.git*

The above copy command should ignore the .git directory if it does not
exist.

Best,
Yang

Jim Busche <jbus...@us.ibm.com> 于2022年5月27日周五 02:57写道:

> Hi Yang,
>
>
> I still see the git issue when trying to build from source:
>
> [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
>
>
>
> If I remove that COPY git line, or I first make an empty .git filesystem,
> then the build proceeds ok.  Not sure what all we lose in the image if the
> underlying .git items are missing.
>
>
>
> Other testing:
>
>   *   The helm install looks good
>   *   Twistlock vulnerability scan of the Debian image looks good.
>   *   Basic example deployed ok
>
> Thanks, Jim
>
>
>

Reply via email to