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

chore: remove redundant steps in docker build #807

Merged

Conversation

salasberryfin
Copy link
Contributor

What this PR does / why we need it:

We've added improvements to Dockerfile in other repositories rancher/cluster-api-provider-rke2#483 and https://github.com/rancher/clusterapi-forks/pull/7. Removing redundant steps during build reduces execution time considerably. go build handles downloading dependencies so go mod steps are redundant.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Checklist:

  • squashed commits into logical changes
  • includes documentation
  • adds unit tests
  • adds or updates e2e tests

@salasberryfin salasberryfin added kind/enhancement Categorizes issue or PR as related to a new feature. kind/chore labels Oct 25, 2024
@salasberryfin salasberryfin requested a review from a team as a code owner October 25, 2024 09:46
Copy link
Contributor

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

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

Shall we take the possibility to do the same in https://github.com/rancher/turtles/blob/main/exp/etcdrestore/Dockerfile#L37-L52? Otherwise, LGTM

furkatgofurov7
furkatgofurov7 previously approved these changes Oct 25, 2024
Copy link
Contributor

@furkatgofurov7 furkatgofurov7 left a comment

Choose a reason for hiding this comment

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

Thank you!

@salasberryfin salasberryfin merged commit 3edf9ef into rancher:main Oct 25, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/chore kind/enhancement Categorizes issue or PR as related to a new feature.
Development

Successfully merging this pull request may close these issues.

3 participants