pimcore / docker

73 stars 49 forks source link

Outdated Debian (Buster) Repository #166

Closed aarongerig closed 2 months ago

aarongerig commented 2 months ago

When trying to extend the pimcore/pimcore:PHP7.4-fpm image, the following error is thrown on a simple apt-get update.

1.744 E: The repository 'http://deb.debian.org/debian buster-backports Release' does not have a Release file.
------
failed to solve: process "/bin/sh -c apt-get update" did not complete successfully: exit code: 100

This seems to be because of an outdated Debian Repository (see article).

Would it not make sense to upgrade to Debian bullseye or even bookworm?

brusch commented 2 months ago

@aarongerig PHP 7.4 is already EOL. All the supported ones, are already on a newer Debian version, see: https://github.com/pimcore/docker/blob/3.x/.github/workflows/release.yml#L30

In general, we're just extending from the official PHP images, therefore we also use the Debian distro which is given by this images 😉

aarongerig commented 2 months ago

@brusch That's what I feared. 😉 Unfortunately, we are still dependent on PHP7.4 for this project and therefore cannot update to a newer Docker image.

For all those who also have this issue, here is a workaround. Add the following line before any apt-get calls.

FROM pimcore/pimcore:PHP7.4-fpm

# Add buster-backports to fix issue with outdated Debian Buster repository
RUN echo "deb http://archive.debian.org/debian buster-backports main contrib non-free" > /etc/apt/sources.list.d/backports.list

...
brusch commented 2 months ago

@aarongerig 👍 thanks for sharing the workaround 😊