Force container builds to use http.us.debian.org
httpredir has multiple mirrors behind it, meaning on any given build we're relying on several mirrors to all stay up at the same time. This happens much less often than we'd like. By forcing this to http.us.debian.org, we're using a more curated set of mirrors which are less likely to be flakey. The long term fix is to use a debian mirror provided by infra for check/gate builds, but until that exists this should help. Depends-on: I5169faf25c36cfb494c9c1fafb14fb4f7f82cd9e Related-bug: #1571829 Change-Id: Ia7ea8d909df9ae86a6dbd68ba94746b171535eb8
This commit is contained in:
parent
8ce07c88be
commit
407a91c369
@ -13,8 +13,11 @@ ADD . /tmp/ironic-python-agent
|
||||
# 1.6. Using the ARG command will be a much cleaner solution.
|
||||
COPY proxy.sh /usr/bin/proxy.sh
|
||||
|
||||
# Ensure we hit a single mirror for builds, since httpredir is flakey
|
||||
RUN sed -i 's/httpredir/http.us/g' /etc/apt/sources.list
|
||||
|
||||
# Add 'backports' for qemu-utils
|
||||
RUN echo 'deb http://httpredir.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list
|
||||
RUN echo 'deb http://http.us.debian.org/debian jessie-backports main' > /etc/apt/sources.list.d/backports.list
|
||||
|
||||
# Install requirements: Python for ironic-python-agent, others for putting an
|
||||
# image on disk
|
||||
|
Loading…
x
Reference in New Issue
Block a user