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

[infra] Remove unneeded binaries, docs from CMake install #5161

Merged
merged 2 commits into from
Feb 18, 2021

Conversation

jonathanmetzman
Copy link
Contributor

This should reduce the image layer size from 127 MB to 57 MB

@@ -25,7 +25,8 @@ RUN apt-get update && apt-get install -y wget sudo && \
chmod +x cmake-$CMAKE_VERSION-Linux-x86_64.sh && \
./cmake-$CMAKE_VERSION-Linux-x86_64.sh --skip-license --prefix="/usr/local" && \
rm cmake-$CMAKE_VERSION-Linux-x86_64.sh && \
SUDO_FORCE_REMOVE=yes apt-get remove --purge -y wget sudo
SUDO_FORCE_REMOVE=yes apt-get remove --purge -y wget sudo && \
rm -rf /usr/local/doc/cmake /usr/local/bin/cmake-gui /usr/local/bin/cmake
Copy link
Collaborator

Choose a reason for hiding this comment

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

LGTM with a change needed.

I think removing "/usr/local/bin/cmake" is incorrect, we want cmake binary. Rest "/usr/local/doc/cmake /usr/local/bin/cmake-gui" are nice to remove.

Copy link
Contributor Author

@jonathanmetzman jonathanmetzman Feb 18, 2021

Choose a reason for hiding this comment

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

Oops. My calculation of savings was still right though.
Done.

@jonathanmetzman
Copy link
Contributor Author

Test failure is spurious see #5218 and #5213

@jonathanmetzman jonathanmetzman merged commit d7164ef into master Feb 18, 2021
@jonathanmetzman jonathanmetzman deleted the slim-image2 branch February 18, 2021 17:49
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.

2 participants