Skip to content

Commit 0b6882a

Browse files
committed
docker: Fix creating linuxfr.org using docker-compose
This commit fixes errors related to the recent-ish archival of Debian Stretch. Indeed, the linuxfr.org container is still based on Debian Stretch but this version of the distribution was archived when Bookworm was released. This implies a change in the APT sources but neither the debian:stretch-slim nor this repository were updated accordingly. The errors fixed are: - we replace the `deb.debian.org` domain with `archive.debian.org`, where the archived repositories are located; - we downgrade `zlib1g` forcefully because the version which is already installed in the upstream container is newer than the one we can find in the archived repositories, and it caused a dependency issue when trying to install the `zlib1g-dev` package.
1 parent 8a0a715 commit 0b6882a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

deployment/linuxfr.org/Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ LABEL description="Run LinuxFr.org Ruby on Rails website"
77
WORKDIR /linuxfr.org
88

99
# Install system dependencies
10-
RUN echo 'deb http://deb.debian.org/debian stretch-backports main' >> '/etc/apt/sources.list.d/linuxfr.list' \
10+
# Debian Stretch has been archived so we replace the sources with the archived ones
11+
RUN echo 'deb http://archive.debian.org/debian stretch main' > '/etc/apt/sources.list' \
12+
&& echo 'deb http://archive.debian.org/debian stretch-proposed-updates main' >> '/etc/apt/sources.list' \
13+
&& echo 'deb http://archive.debian.org/debian stretch-backports main' >> '/etc/apt/sources.list.d/linuxfr.list' \
1114
&& apt-get update \
12-
&& apt-get install -y --no-install-recommends \
15+
&& apt-get install -y --no-install-recommends --allow-downgrades \
1316
mysql-client libmysql++-dev git \
14-
build-essential openssl libreadline-dev curl libcurl4-openssl-dev zlib1g \
17+
build-essential openssl libreadline-dev curl libcurl4-openssl-dev zlib1g=1:1.2.8.dfsg-5 \
1518
zlib1g-dev libssl-dev libxml2-dev libxslt-dev autoconf libgmp-dev libyaml-dev \
1619
ncurses-dev bison automake libtool imagemagick libc6-dev hunspell \
1720
hunspell-fr-comprehensive ruby ruby-dev ruby-rack \

0 commit comments

Comments
 (0)