[
https://issues.apache.org/jira/browse/FLINK-27746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17541407#comment-17541407
]
Zili Chen edited comment on FLINK-27746 at 5/24/22 10:31 AM:
-------------------------------------------------------------
Thanks for sharing the background.
Then I think here we have two opinions:
1. Include .git folder in the released tarball.
2. Setup another approach to generate git properties before release and skip
the related phase when building with release artifacts.
ZooKeeper uses similar maven plugin but unfortunately I find that if you build
with released tarball the commit field is remain unresolved. It may not be a
problem to show the info as "${git.commit.time}" barely but I'm not sure.
FYI, if we simply remove "COPY .git" the final properties are:
project.version=1.0.0
git.commit.id.abbrev=${git.commit.id.abbrev}
git.commit.time=${git.commit.time}
But to produce the docker image properly, we may still COPY .git when packaging
in a git repo.
was (Author: tison):
Thanks for sharing the background.
Then I think here we have two opinions:
1. Include .git folder in the released tarball.
2. Setup another approach to generate git properties before release and skip
the related phase when building with release artifacts.
ZooKeeper uses similar maven plugin but unfortunately I find that if you build
with released tarball the commit field is remain unresolved. It may not be a
problem to show the info as "${git.commit.time}" barely but I'm not sure.
> Flink kubernetes operator docker image could not build with source release
> --------------------------------------------------------------------------
>
> Key: FLINK-27746
> URL: https://issues.apache.org/jira/browse/FLINK-27746
> Project: Flink
> Issue Type: Bug
> Components: Kubernetes Operator
> Reporter: Yang Wang
> Assignee: Nicholas Jiang
> Priority: Blocker
> Labels: pull-request-available
> Fix For: kubernetes-operator-1.0.0
>
>
> Could not build the Docker image from the source release, getting the
> following error:
> > [build 11/14] COPY .git ./.git:
> ------
> failed to compute cache key: "/.git" not found: not found
--
This message was sent by Atlassian Jira
(v8.20.7#820007)