question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider switching to Debian as base image

See original GitHub issue

Currently, we are using Alpine as the base image for almost all services. At the time, this was the recommended base image and Docker themself move their own images on Alpine too.

2020 could be the year we switch back to Debian as nowadays they provide official image that no so big (like debian:buster-slim?). Here is some pro/cons:

Pros:

  • a dev env more similar to classical prod env
  • easier to use latest PHP version (almost impossible with Alpine)
  • Alpine uses the musl library instead of classical libc, which used to break some tool like Blackfire

Cons:

  • base image a bit bigger (~5Mo VS 60Mo)
  • more different base images among all services thus more images to build and store
  • bigger and different base images also slow CI build and can cost more credits (but should be less problematic than when we used normal Debian images weighting 500Mo)

Some read:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:10 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
lyrixxcommented, Mar 24, 2020

So, what we should do ? We are going a new major release with a big BC break: python 3 + invoke instead of fabric so we have a window to break everything

  • 🎉 for sticking on bare alpine
  • 🚀 to switch to debian
1reaction
bastniccommented, Mar 25, 2020

And on using default php:alpine image, I never succeded to set my extensions without dealing with big headeach and with no success at all.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Consider switching base image to Debian buster or Ubuntu ...
Consider switching the default build to use a glibc build such as Debian sid, Ubuntu 18.04 or recent versions of Centos to reduce...
Read more >
Benchmarking Debian vs Alpine as a Base Docker Image
Most official Docker images offer both Debian and Alpine based images but there's some surprising performance results between the 2.
Read more >
Choosing a Base Image For Your Dockerfile - vsupalov.com
Detailed considerations and criteria on how to choose a base image which is right for you ... For others the right answer may...
Read more >
A Comparison of Linux Container Images
Therefore, selecting a base image is quite similar to selecting a Linux distro (See also: Do Linux distributions still matter with containers?).
Read more >
Choosing a secure Docker base image - Blog - flownative.com
What makes a solid and secure Docker base image? Are there alternatives to Alpine? And which other aspects do you need to consider?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found