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

minimize docker image #4

Open
alexeldeib opened this issue Apr 13, 2020 · 0 comments
Open

minimize docker image #4

alexeldeib opened this issue Apr 13, 2020 · 0 comments
Labels
good first issue Good for newcomers

Comments

@alexeldeib
Copy link
Owner

alexeldeib commented Apr 13, 2020

2.5Mi -- rust formatter compiled for release
1.8Mi -- static file binary ==> probably remove, only need for debug
3.4Mi -- static mount binary ==> take from busybox?
3.4Mi -- static umount binary ==> take from busybox?
1.2Mi -- amd64/busybox
17.9Mi -- gcr.io.distroless/static
19.8Mi -- gcr.io.distroless/cc
49.0Mi -- e2fsprogs
71.9Mi -- final image

e2fsprogs seems like the obvious candidate for minimization. We currently copy everything from e2fsprogs into our final image, picking up lots of random (if useful) stuff.

COPY --from=build /app/e2fsprogs/sbin/* /usr/local/bin/

we only need the minimal tooling to create whatever kind of file system we want on the disk. Currently that is mkfs.ext4 // mke2fs -t ex4. it'd be nice to keep some things like wipefs too, but it's not critical.

@alexeldeib alexeldeib added the good first issue Good for newcomers label Apr 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant