Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove .git in dockerignore #1616

Merged
merged 2 commits into from
Jul 29, 2023
Merged

Conversation

PragmaTwice
Copy link
Member

@PragmaTwice PragmaTwice commented Jul 29, 2023

If /.git is ignored in docker container for building kvrocks, the built kvrocks binary (in apache/kvrocks:nightly) will lose commit info, e.g.

$ kvrocks -v
kvrocks unstable

instead of

$ kvrocks -v
kvrocks unstable (commit 1234567)

(and also in crash stack info)

It will hugely increase the difficulty to debug and locate problems.

Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we don't COPY . . in the final image, this is fine.

Cross-refer to a former related task I did for flink-kubernetes-operator: https://issues.apache.org/jira/browse/FLINK-27834.

@PragmaTwice PragmaTwice merged commit 77aeec2 into unstable Jul 29, 2023
50 checks passed
@PragmaTwice PragmaTwice deleted the PragmaTwice/fix-dockerignore branch July 29, 2023 08:52
p1u3o pushed a commit to p1u3o/incubator-kvrocks that referenced this pull request Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants