You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/09/20 09:10:40 UTC
[GitHub] [pulsar] tisonkun commented on a diff in pull request #14513: [Dockerfile] Enable retries for apt-get when building Pulsar docker image
tisonkun commented on code in PR #14513:
URL: https://github.com/apache/pulsar/pull/14513#discussion_r975090435
##########
docker/pulsar/Dockerfile:
##########
@@ -51,6 +51,7 @@ ARG UBUNTU_MIRROR=mirror://mirrors.ubuntu.com/mirrors.txt
# Install some utilities
RUN sed -i "s|http://archive\.ubuntu\.com/ubuntu/|${UBUNTU_MIRROR:-mirror://mirrors.ubuntu.com/mirrors.txt}|g" /etc/apt/sources.list \
+ && echo 'Acquire::http::Timeout "30";\nAcquire::ftp::Timeout "30";\nAcquire::Retries "3";' > /etc/apt/apt.conf.d/99timeout_and_retries \
Review Comment:
Interesting. Now when I build test images locally, it works fine; when I build the pulsar-all image, it fails with `returned a non-zero code: 100`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org