Recipes for building the base images for Heroku's stacks
BSD 3-Clause "New" or "Revised" License
267
stars
75
forks
source link
Heroku-24: Custom sources list causes APT to pull packages lists for multiple architectures #286
Closed
edmorley closed 5 months ago
Our image setup scripts currently override the default Ubuntu APT sources list, in order to disable some unwanted repositories.
However, the way they currently do this is via a hardcoded sources list, which starting with Heroku-24 now includes entries for both AMD64 and ARM64: https://github.com/heroku/base-images/blob/dc82a80d1ae1ac0579432b5a37123175b6c25514/heroku-24/setup.sh#L9-L37
At first glance one might presume that APT would act sensibly here, and only pull the repo index for the current architecture.
However, it seems APT pulls all indexes, and only takes the current arch into account when actually installing packages.
As such, our customisation to the APT sources causes a wasteful double pull of the indexes:
(note both
amd64
andarm64
indexes being downloaded)GUS-W-15576471.