Just to followup here: in the company I work for we discarded usage of Alpine and settled on Debian because: * Alpine has no process for handling CVEs * Alpine's musl libc has subtle differences to glibc which led to strange problems (we use Java a lot) * When building images for Python or Ruby precompiled modules with C-bindings on pypi.org are normally built for glibc, so build times got bigger
And finally: the size of the base image does not matter that much: * We have a Kubernetes cluster where a typical node runs 140 pods * Now if most of these pods share the same debian:buster-slim base (or in our case debian:buster-slim + adoptopenjdk base), the base images' sizes are really not very relevant. Best regards Mirko On Thursday, 17 December 2020 at 13:44:29 UTC+1 Space A. wrote: > Hi Constantine, > > In our project we'd chosen debian-slim images vs alpine few years ago due > to a number of reasons, if I recall arguments were like: > > 1. presence of libc > 2. bugs and performance issues of alpine > 3. security issues of alpine > 4. debian is more suitable for testing with huge amount of tools available > out of the box, if needed > > > After all, talking about saving few tens of megs of hdd space per image > (it's the main reason for ppl selecting alpine) is ridiculous nowadays IMO. > > > > среда, 16 декабря 2020 г. в 20:10:49 UTC+3, Constantine Vassilev: > >> What about the size of images? For pure Golang project what are the >> advantages of glibc? >> >> For a project I have to present pro and cons before the team to decide. >> >> On Tuesday, December 15, 2020 at 6:03:29 PM UTC-8 amits...@gmail.com >> wrote: >> >>> >>> >>> On Wed, 16 Dec 2020, 12:38 pm Constantine Vassilev, <ths...@gmail.com> >>> wrote: >>> >>>> All examples in Google Cloud Run for building >>>> Golang Docker images are based on Debian. >>>> >>>> FROM golang:alpine AS builder >>>> ... >>>> FROM debian:buster-slim >>>> ... >>>> >>>> What are debian:buster-slim advantages vs alpine ones? >>>> >>> >>> Besides the size of the images, one key difference would be the >>> underlying C library - Debian would be glibc and Alpine would be libmusl >>> >>> So advantages would be if knowing that libc is available. >>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "golang-nuts" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to golang-nuts...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/golang-nuts/2433a1dd-c3ea-4c5c-9f6e-d1595cef99f9n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/golang-nuts/2433a1dd-c3ea-4c5c-9f6e-d1595cef99f9n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/64332e72-da92-4f91-9a53-34fcf68424c8n%40googlegroups.com.