heroku / base-images

Recipes for building the base images for Heroku's stacks
BSD 3-Clause "New" or "Revised" License
267 stars 75 forks source link

Add `c-ares` to the run image for all stacks #307

Closed edmorley closed 4 months ago

edmorley commented 4 months ago

So that PgBouncer can use its recommended c-ares based DNS backend: https://github.com/heroku/heroku-buildpack-pgbouncer/issues/188 https://www.pgbouncer.org/install.html https://c-ares.org/

The package is named libcares2 on Heroku-24 and libc-ares2 on older stacks: https://packages.ubuntu.com/noble/libcares2 https://packages.ubuntu.com/jammy/libc-ares2 https://packages.ubuntu.com/focal/libc-ares2

This only adds ~200 KB to the run image.

I've not added the corresponding headers to the build image, since:

GUS-W-15826387.