mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-deb.git
synced 2026-09-20 08:03:46 +08:00
Create switch_archive_sources.sh that rewrites /etc/apt/sources.list from deb.debian.org to archive.debian.org (with backports) for EOL Debian releases (buster, bullseye). Both docker/Dockerfile.deps and the CI install-test step use this script instead of inline fallback logic. Also record the pullsrc-on-host strategy in AGENTS.md.
16 lines
592 B
Docker
Executable File
16 lines
592 B
Docker
Executable File
# Dep image
|
|
# docker build --build-arg BASE_IMAGE=ubuntu:noble -f docker/Dockerfile.deps -t xxx .
|
|
ARG BASE_IMAGE
|
|
FROM ${BASE_IMAGE}
|
|
|
|
COPY --chmod=755 install_deps.sh /tmp/install_deps.sh
|
|
COPY --chmod=755 switch_archive_sources.sh /tmp/switch_archive_sources.sh
|
|
COPY builddep/ /tmp/builddep/
|
|
|
|
# EOL Debian releases (e.g. buster) no longer exist on deb.debian.org;
|
|
# switch to the official archive source before installing build deps.
|
|
RUN /tmp/switch_archive_sources.sh && rm /tmp/switch_archive_sources.sh
|
|
|
|
RUN cd /tmp && ./install_deps.sh \
|
|
&& rm -rf /tmp/install_deps.sh /tmp/builddep
|