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

control-plane: remove needless step in docker build. #2947

Merged
merged 1 commit into from
Nov 28, 2023

Conversation

murphp15
Copy link
Collaborator

@murphp15 murphp15 commented Nov 27, 2023

Why

Between each step in a docker build it needs to save a snapshot of the system.
Some operations actually require unpacking layers created before it.

This python -V is a really expensive operation.

Because it needs to unpack all the layers that came before it to run that command.

from the logs we can see

INFO[0001] Unpacking rootfs as cmd RUN python -V requires it.

What

I removed the operation because it actually has no impact.

How was this tested?

I will deploy in CICD env and test when I get approvals.
I want it removed incase there is some context I am missing.

@mivanov1988 mivanov1988 merged commit 85b44a2 into main Nov 28, 2023
@mivanov1988 mivanov1988 deleted the person/murphp15/remove_needless_step_in_build branch November 28, 2023 12:25
murphp15 added a commit that referenced this pull request Nov 28, 2023
# Why
I want to release the changes made in this PR
#2947

Co-authored-by: paulm2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants