rust-lang / rust-lang/docker-rust
Suggestion Toolchain size can be reduced by trimming fat debug symbols
Open
Nobody has claimed this yet.
- Dominant language
- Dockerfile
- Stars
- 537
- Forks
- 111
- Avg merge
- 1d 38m
- Merged PRs (30d)
- 4
Description
Subj.
Running something like:
find /usr/local/rustup/ -type f -executable -exec strip --strip-unneeded {}
find /usr/local/rustup/ -name *.so -exec strip --strip-unneeded {}
find /usr/local/rustup/ -name *.rlib -exec strip -d {}
find /usr/local/rustup/ -name *.a -exec strip -d {}
Produces image with size 604MB which means 211MB compressed on docker hub (instead of 250 for official image) for ultimate slim-alpine image
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files or tests; start by reproducing the commands against the Rust toolchain under /usr/local/rustup/. Compare the resulting image size and compressed size with the current image, then determine whether the build configuration can safely incorporate the trimming while preserving a usable toolchain.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, dockerfile
- Domain
- build-system, devops
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100