FROM debian:11 # Avoid interactive prompts during install ENV DEBIAN_FRONTEND=noninteractive # Copy the package list into the container COPY packages_modified.txt /tmp/packages.txt RUN apt-get update RUN apt-get install -y perl=5.32.1-4+deb11u4 RUN apt-get install -y systemd=247.3-7+deb11u4 libsystemd0=247.3-7+deb11u4 --allow-downgrades RUN \ echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20240301 bullseye main contrib non-free" > /etc/apt/sources.list && \ echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/20240301 bullseye-security main contrib non-free" >> /etc/apt/sources.list && \ echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20240301 bullseye-updates main contrib non-free" >> /etc/apt/sources.list && \ echo "deb [check-valid-until=no] http://snapshot.debian.org/archive/debian-debug/20240301 bullseye-debug main contrib non-free" >> /etc/apt/sources.list # Update & install specific package versions RUN apt-get -o Acquire::Check-Valid-Until=false update && \ xargs -a /tmp/packages.txt -r apt-get install -y --no-install-recommends --allow-downgrades -o Debug::pkgProblemResolver=yes && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* RUN wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb && \ dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb && \ percona-release setup ps80 && \ apt-get update RUN apt install mariadb-server-core-10.5-dbgsym mariadb-server-10.5-dbgsym # will install v. 10.5.23-0+deb11u1 # Install Percona XtraBackup 2.4 and qpress RUN apt-get install -y --no-install-recommends \ percona-xtrabackup-24 \ qpress && \ apt-get clean # Set working directory to the mounted source WORKDIR /work/mariadb CMD ["/bin/bash"]