Skip to content

Commit 98f658a

Browse files
authored
Use different mirror for loongarch64 builds (#1723)
1 parent 65c889c commit 98f658a

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

src/azurelinux/3.0/net10.0/cross/loongarch64/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ ARG ROOTFS_DIR=/crossrootfs/loongarch64
33
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net10.0-crossdeps-builder-amd64 AS builder
44
ARG ROOTFS_DIR
55

6-
RUN PYTHON_EXECUTABLE="$ROOTFS_PIP_HOME/bin/python" /scripts/eng/common/cross/build-rootfs.sh loongarch64 sid --skipunmount --skipemulation
6+
# Use a network-allowed Debian mirror (deb.debian.org is blocked in network-restricted Azure build environments).
7+
# amd64/arm64 use the Azure-hosted mirror; loongarch64 uses the Debian Fastly CDN because
8+
# debian-archive.trafficmanager.net does not serve loongarch64 packages.
9+
RUN PYTHON_EXECUTABLE="$ROOTFS_PIP_HOME/bin/python" /scripts/eng/common/cross/build-rootfs.sh loongarch64 sid --skipunmount --skipemulation --debian-repo http://cdn-fastly.deb.debian.org/debian
710

811
RUN TARGET_TRIPLE="loongarch64-linux-gnu" && \
912
GCC_VER=$(basename "$(find "$ROOTFS_DIR/usr/include/c++/" -mindepth 1 -maxdepth 1 -type d | sort -V | head -n1)") && \

src/azurelinux/3.0/net11.0/cross/loongarch64/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ ARG ROOTFS_DIR=/crossrootfs/loongarch64
33
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-3.0-net11.0-crossdeps-builder-amd64 AS builder
44
ARG ROOTFS_DIR
55

6-
RUN PYTHON_EXECUTABLE="$ROOTFS_PIP_HOME/bin/python" /scripts/eng/common/cross/build-rootfs.sh loongarch64 sid --skipunmount --skipemulation
6+
# Use a network-allowed Debian mirror (deb.debian.org is blocked in network-restricted Azure build environments).
7+
# amd64/arm64 use the Azure-hosted mirror; loongarch64 uses the Debian Fastly CDN because
8+
# debian-archive.trafficmanager.net does not serve loongarch64 packages.
9+
RUN PYTHON_EXECUTABLE="$ROOTFS_PIP_HOME/bin/python" /scripts/eng/common/cross/build-rootfs.sh loongarch64 sid --skipunmount --skipemulation --debian-repo http://cdn-fastly.deb.debian.org/debian
710

811
RUN TARGET_TRIPLE="loongarch64-linux-gnu" && \
912
GCC_VER=$(basename "$(find "$ROOTFS_DIR/usr/include/c++/" -mindepth 1 -maxdepth 1 -type d | sort -V | head -n1)") && \

src/azurelinux/4.0/net11.0/cross/loongarch64/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ ARG ROOTFS_DIR=/crossrootfs/loongarch64
33
FROM mcr.microsoft.com/dotnet-buildtools/prereqs:azurelinux-4.0-net11.0-crossdeps-builder-amd64 AS builder
44
ARG ROOTFS_DIR
55

6-
RUN PYTHON_EXECUTABLE="$ROOTFS_PIP_HOME/bin/python" /scripts/eng/common/cross/build-rootfs.sh loongarch64 sid --skipunmount --skipemulation
6+
# Use a network-allowed Debian mirror (deb.debian.org is blocked in network-restricted Azure build environments).
7+
# amd64/arm64 use the Azure-hosted mirror; loongarch64 uses the Debian Fastly CDN because
8+
# debian-archive.trafficmanager.net does not serve loongarch64 packages.
9+
RUN PYTHON_EXECUTABLE="$ROOTFS_PIP_HOME/bin/python" /scripts/eng/common/cross/build-rootfs.sh loongarch64 sid --skipunmount --skipemulation --debian-repo http://cdn-fastly.deb.debian.org/debian
710

811
RUN TARGET_TRIPLE="loongarch64-linux-gnu" && \
912
GCC_VER=$(basename "$(find "$ROOTFS_DIR/usr/include/c++/" -mindepth 1 -maxdepth 1 -type d | sort -V | head -n1)") && \

0 commit comments

Comments
 (0)