jbergstroem / mariadb-alpine

A tiny and fast MariaDB container
MIT License
72 stars 19 forks source link

Add comparing against some other images #72

Closed williamdes closed 3 years ago

williamdes commented 3 years ago
jbergstroem commented 3 years ago

@williamdes out of curiosity, what type of comparisons would be beneficial to you? Right now I mostly focus on size.

williamdes commented 3 years ago

@williamdes out of curiosity, what type of comparisons would be beneficial to you? Right now I mostly focus on size.

Size too ;)

I am using Dive on your container and will try to make a PR in 30min to improve the layers

Your image is awesome 👏🏻

I would also compare image layers, some people use Docker the wrong way and make useless layers

Example useless layers:

RUN rm /foo/bar
RUN rm /foo/baz

Use

RUN rm /foo/bar && \
         rm /foo/baz

And for stupid layers that add weight

RUN install package
RUN cleanup files

vs

RUN install package && \
         cleanup files
jbergstroem commented 3 years ago

Example useless layers

Yeah, the project goes into great lengths to try and minimize the footprint since that was the main goal. I'm sure we've done local Wordpress development once or twice in our lives..