-
Notifications
You must be signed in to change notification settings - Fork 180
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 devscripts expect the checkbashisms script, and remove lsb-release from rocker/r-ver
#511
Conversation
Unfortunately, the image built from 4a1df66 does not appear to have reduced image size ( |
Perhaps we need to rethink the minimum package requirements: python3 will be installed even if devscripts is not installed (listed below). rocker-versioned2/scripts/install_R_source.sh Lines 34 to 57 in 4a1df66
|
yeah, I'm still relatively skeptical that there are major savings to be had here, especially that will persist after a user also adds commonly used packages etc, at least while remaining based on Ubuntu. @gaborcsardi's Alpine based https://github.com/r-hub/r-minimal is probably a better option for environments where saving 10s of MB is critical. |
@eitsupi The problematic line is
ℹ️ |
@cboettig It's not only about reducing image size, but also reducing the number of [unneeded] packages. Installing |
You could use
instead of [installing and] using |
Thanks @benz0li , 💯 with you on trimming unnecessary dependencies. The Having unneeded packages increases image size and maybe makes a bigger surface area of dependencies that could break later, as well as potential security issues. Though for the latter two issues I think relying on the official ubuntu LTS repo sources is probably a better way to avoid either security or dependency issues than us hand-rolling dependencies. I like both of the above work-arounds because it looks like they will still be based on the official repo sources, where we benefit from the dependency management and security patching of the Debian and Canonical maintainers. |
I've been writing shell scripts as Dev Container Features for these days and I've learned how good the method of loading |
4a1df66
to
bfe2d71
Compare
The size of rocker/r-ver:devel was reduced from 836MB (bfe2d71) -> 808MB (c5a1e36) by deleting lsb-release.
Edit: I was mistaken. The following apt packages have been removed. Thanks @benz0li ! distro-info-data 0.52ubuntu0.2
libmpdec3 2.5.1-2build2
libpython3-stdlib 3.10.6-1~22.04
libpython3.10-stdlib 3.10.6-1~22.04.1
libsqlite3-0 3.37.2-2
lsb-release 11.1.0ubuntu4
python3-minimal 3.10.6-1~22.04
python3.10 3.10.6-1~22.04.1 |
rocker/r-ver
69623bf
to
61d9317
Compare
Close #510
ToDo
install_R_source.sh
to test rocker scripts on newrocker/r-ver
. ([CI] More tests for rocker scripts #523)