Skip to content

Commit 6577a2d

Browse files
authored
Add c-ares to the run image for all stacks (#307)
So that PgBouncer can use its recommended `c-ares` based DNS backend: heroku/heroku-buildpack-pgbouncer#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: - For the PgBouncer use-case they can instead be installed in the build environment used to compile the PgBouncer binaries. - There don't seem to be many popular `c-ares` language bindings that people might use directly in their apps. GUS-W-15826387.
1 parent ce3c7ee commit 6577a2d

11 files changed

+11
-0
lines changed

heroku-20-build/installed-packages.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ libbsd-dev
127127
libbsd0
128128
libbz2-1.0
129129
libbz2-dev
130+
libc-ares2
130131
libc-bin
131132
libc-client2007e
132133
libc-client2007e-dev

heroku-20/installed-packages.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ libblkid1
9393
libbrotli1
9494
libbsd0
9595
libbz2-1.0
96+
libc-ares2
9697
libc-bin
9798
libc-client2007e
9899
libc-dev-bin

heroku-20/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ packages=(
5353
libaom0
5454
libargon2-1
5555
libass9
56+
libc-ares2 # Used by PgBouncer in heroku-buildpack-pgbouncer.
5657
libc-client2007e
5758
libc6-dev
5859
libcairo2

heroku-22-build/installed-packages.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ libbsd-dev
127127
libbsd0
128128
libbz2-1.0
129129
libbz2-dev
130+
libc-ares2
130131
libc-bin
131132
libc-client2007e
132133
libc-client2007e-dev

heroku-22/installed-packages.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ libbpf0
9393
libbrotli1
9494
libbsd0
9595
libbz2-1.0
96+
libc-ares2
9697
libc-bin
9798
libc-client2007e
9899
libc-dev-bin

heroku-22/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ packages=(
5353
libaom3
5454
libargon2-1
5555
libass9
56+
libc-ares2 # Used by PgBouncer in heroku-buildpack-pgbouncer.
5657
libc-client2007e
5758
libc6-dev
5859
libcairo2

heroku-24-build/installed-packages-amd64.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ libcairo2-dev
127127
libcap-ng0
128128
libcap2
129129
libcap2-bin
130+
libcares2
130131
libcbor0.10
131132
libcc1-0
132133
libcfitsio10t64

heroku-24-build/installed-packages-arm64.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ libcairo2-dev
123123
libcap-ng0
124124
libcap2
125125
libcap2-bin
126+
libcares2
126127
libcbor0.10
127128
libcc1-0
128129
libcfitsio10t64

heroku-24/installed-packages-amd64.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ libcairo2
7979
libcap-ng0
8080
libcap2
8181
libcap2-bin
82+
libcares2
8283
libcbor0.10
8384
libcfitsio10t64
8485
libcgif0

heroku-24/installed-packages-arm64.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ libcairo2
7979
libcap-ng0
8080
libcap2
8181
libcap2-bin
82+
libcares2
8283
libcbor0.10
8384
libcfitsio10t64
8485
libcgif0

heroku-24/setup.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ packages=(
5454
libargon2-1 # Used by the PHP runtime.
5555
libass9 # Used by FFmpeg in heroku-buildpack-activestorage-preview.
5656
libc-client2007e # Used by the PHP IMAP extension.
57+
libcares2 # Used by PgBouncer in heroku-buildpack-pgbouncer.
5758
libdav1d7 # Used by FFmpeg in heroku-buildpack-activestorage-preview.
5859
libev4
5960
libevent-2.1-7 # Used by PgBouncer in heroku-buildpack-pgbouncer.

0 commit comments

Comments
 (0)