[Build][201811] Fix the stretch mirror removed issue (#15082)
* [Build][201811] Fix the stretch mirror removed issue * Remove default mirrors * Fix mirror reference issue
This commit is contained in:
parent
adae46ec5e
commit
d291f19a75
@ -70,7 +70,7 @@ popd
|
|||||||
|
|
||||||
## Build a basic Debian system by debootstrap
|
## Build a basic Debian system by debootstrap
|
||||||
echo '[INFO] Debootstrap...'
|
echo '[INFO] Debootstrap...'
|
||||||
sudo http_proxy=$http_proxy debootstrap --variant=minbase --arch amd64 stretch $FILESYSTEM_ROOT http://debian-archive.trafficmanager.net/debian
|
sudo http_proxy=$http_proxy debootstrap --variant=minbase --arch amd64 stretch $FILESYSTEM_ROOT http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z
|
||||||
|
|
||||||
## Config hostname and hosts, otherwise 'sudo ...' will complain 'sudo: unable to resolve host ...'
|
## Config hostname and hosts, otherwise 'sudo ...' will complain 'sudo: unable to resolve host ...'
|
||||||
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '$HOSTNAME' > /etc/hostname"
|
sudo LANG=C chroot $FILESYSTEM_ROOT /bin/bash -c "echo '$HOSTNAME' > /etc/hostname"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
## Debian mirror on Microsoft Azure
|
## Debian mirror on Microsoft Azure
|
||||||
## Ref: http://debian-archive.trafficmanager.net/
|
## Ref: http://debian-archive.trafficmanager.net/
|
||||||
|
|
||||||
deb http://debian-archive.trafficmanager.net/debian/ stretch main contrib non-free
|
deb http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/ stretch main contrib non-free
|
||||||
deb-src http://debian-archive.trafficmanager.net/debian/ stretch main contrib non-free
|
deb-src http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/ stretch main contrib non-free
|
||||||
deb http://debian-archive.trafficmanager.net/debian-security/ stretch/updates main contrib non-free
|
deb http://packages.trafficmanager.net/snapshot/debian-security/20230101T000243Z stretch/updates main contrib non-free
|
||||||
deb-src http://debian-archive.trafficmanager.net/debian-security/ stretch/updates main contrib non-free
|
deb-src http://packages.trafficmanager.net/snapshot/debian-security/20230101T000243Z stretch/updates main contrib non-free
|
||||||
deb http://debian-archive.trafficmanager.net/debian/ stretch-backports main contrib non-free
|
deb http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/ stretch-backports main contrib non-free
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
deb http://debian-archive.trafficmanager.net/debian/ stretch main contrib non-free
|
deb http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/ stretch main contrib non-free
|
||||||
deb http://debian-archive.trafficmanager.net/debian-security/ stretch/updates main contrib non-free
|
deb http://packages.trafficmanager.net/snapshot/debian-security/20230101T000243Z stretch/updates main contrib non-free
|
||||||
deb http://debian-archive.trafficmanager.net/debian/ stretch-backports main contrib non-free
|
deb http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/ stretch-backports main contrib non-free
|
||||||
|
@ -4,11 +4,11 @@ MAINTAINER gulv@microsoft.com
|
|||||||
|
|
||||||
COPY ["no-check-valid-until", "/etc/apt/apt.conf.d/"]
|
COPY ["no-check-valid-until", "/etc/apt/apt.conf.d/"]
|
||||||
|
|
||||||
RUN echo "deb http://debian-archive.trafficmanager.net/debian/ stretch main contrib non-free" >> /etc/apt/sources.list && \
|
RUN echo "deb http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/ stretch main contrib non-free" > /etc/apt/sources.list && \
|
||||||
echo "deb-src http://debian-archive.trafficmanager.net/debian/ stretch main contrib non-free" >> /etc/apt/sources.list && \
|
echo "deb-src http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/ stretch main contrib non-free" >> /etc/apt/sources.list && \
|
||||||
echo "deb http://debian-archive.trafficmanager.net/debian-security/ stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
|
echo "deb http://packages.trafficmanager.net/snapshot/debian-security/20230101T000243Z stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||||
echo "deb-src http://debian-archive.trafficmanager.net/debian-security/ stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
|
echo "deb-src http://packages.trafficmanager.net/snapshot/debian-security/20230101T000243Z stretch/updates main contrib non-free" >> /etc/apt/sources.list && \
|
||||||
echo "deb http://debian-archive.trafficmanager.net/debian stretch-backports main" >> /etc/apt/sources.list
|
echo "deb http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/ stretch-backports main" >> /etc/apt/sources.list
|
||||||
|
|
||||||
## Make apt-get non-interactive
|
## Make apt-get non-interactive
|
||||||
ENV DEBIAN_FRONTEND=noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
@ -8,9 +8,9 @@ DERIVED_TARGETS = libhiredis-dbg_$(HIREDIS_VERSION_FULL)_amd64.deb libhiredis-de
|
|||||||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||||
rm -rf hiredis-$(HIREDIS_VERSION)
|
rm -rf hiredis-$(HIREDIS_VERSION)
|
||||||
|
|
||||||
wget -O hiredis_$(HIREDIS_VERSION).orig.tar.gz http://http.debian.net/debian/pool/main/h/hiredis/hiredis_$(HIREDIS_VERSION).orig.tar.gz
|
wget -O hiredis_$(HIREDIS_VERSION).orig.tar.gz http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/pool/main/h/hiredis/hiredis_$(HIREDIS_VERSION).orig.tar.gz
|
||||||
wget -O hiredis_$(HIREDIS_VERSION_FULL).debian.tar.xz http://http.debian.net/debian/pool/main/h/hiredis/hiredis_$(HIREDIS_VERSION_FULL).debian.tar.xz
|
wget -O hiredis_$(HIREDIS_VERSION_FULL).debian.tar.xz http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/pool/main/h/hiredis/hiredis_$(HIREDIS_VERSION_FULL).debian.tar.xz
|
||||||
wget -O hiredis_$(HIREDIS_VERSION_FULL).dsc http://http.debian.net/debian/pool/main/h/hiredis/hiredis_$(HIREDIS_VERSION_FULL).dsc
|
wget -O hiredis_$(HIREDIS_VERSION_FULL).dsc http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/pool/main/h/hiredis/hiredis_$(HIREDIS_VERSION_FULL).dsc
|
||||||
|
|
||||||
dpkg-source -x hiredis_$(HIREDIS_VERSION_FULL).dsc
|
dpkg-source -x hiredis_$(HIREDIS_VERSION_FULL).dsc
|
||||||
pushd hiredis-$(HIREDIS_VERSION)
|
pushd hiredis-$(HIREDIS_VERSION)
|
||||||
|
@ -8,9 +8,9 @@ DERIVED_TARGETS = libmpdec-dev_$(MPDECIMAL_VERSION_FULL)_amd64.deb
|
|||||||
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
$(addprefix $(DEST)/, $(MAIN_TARGET)): $(DEST)/% :
|
||||||
rm -rf mpdecimal-$(MPDECIMAL_VERSION)
|
rm -rf mpdecimal-$(MPDECIMAL_VERSION)
|
||||||
|
|
||||||
wget -N -O mpdecimal_$(MPDECIMAL_VERSION).orig.tar.gz http://http.debian.net/debian/pool/main/m/mpdecimal/mpdecimal_$(MPDECIMAL_VERSION).orig.tar.gz
|
wget -N -O mpdecimal_$(MPDECIMAL_VERSION).orig.tar.gz http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/pool/main/m/mpdecimal/mpdecimal_$(MPDECIMAL_VERSION).orig.tar.gz
|
||||||
wget -N -O mpdecimal_$(MPDECIMAL_VERSION_FULL).debian.tar.xz http://http.debian.net/debian/pool/main/m/mpdecimal/mpdecimal_$(MPDECIMAL_VERSION_FULL).debian.tar.xz
|
wget -N -O mpdecimal_$(MPDECIMAL_VERSION_FULL).debian.tar.xz http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/pool/main/m/mpdecimal/mpdecimal_$(MPDECIMAL_VERSION_FULL).debian.tar.xz
|
||||||
wget -N -O mpdecimal_$(MPDECIMAL_VERSION_FULL).dsc http://http.debian.net/debian/pool/main/m/mpdecimal/mpdecimal_$(MPDECIMAL_VERSION_FULL).dsc
|
wget -N -O mpdecimal_$(MPDECIMAL_VERSION_FULL).dsc http://packages.trafficmanager.net/snapshot/debian/20230101T000234Z/pool/main/m/mpdecimal/mpdecimal_$(MPDECIMAL_VERSION_FULL).dsc
|
||||||
|
|
||||||
dpkg-source -x mpdecimal_$(MPDECIMAL_VERSION_FULL).dsc
|
dpkg-source -x mpdecimal_$(MPDECIMAL_VERSION_FULL).dsc
|
||||||
pushd mpdecimal-$(MPDECIMAL_VERSION)
|
pushd mpdecimal-$(MPDECIMAL_VERSION)
|
||||||
|
Loading…
Reference in New Issue
Block a user