From 97d18cb451fcac78816604556629278c9ca49d3c Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 11 Oct 2023 12:04:21 +0200 Subject: [PATCH] builder-support: Use curl's "fail fast with no output at all on server errors" option --- builder-support/dockerfiles/Dockerfile.debbuild | 2 +- builder-support/dockerfiles/Dockerfile.rpmbuild | 2 +- builder-support/helpers/install_rust.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/builder-support/dockerfiles/Dockerfile.debbuild b/builder-support/dockerfiles/Dockerfile.debbuild index 29f10e8e27..71d30f6ee8 100644 --- a/builder-support/dockerfiles/Dockerfile.debbuild +++ b/builder-support/dockerfiles/Dockerfile.debbuild @@ -18,7 +18,7 @@ RUN mv pdns-recursor*.deb /dist; mv pdns-recursor*.ddeb /dist || true @IF [ -n "$M_dnsdist$M_all" ] RUN mkdir /libh2o && cd /libh2o && \ apt-get update && apt-get install -y cmake curl libssl-dev zlib1g-dev && \ - curl -L https://github.com/PowerDNS/h2o/archive/refs/tags/v2.2.6+pdns2.tar.gz | tar xz && \ + curl -f -L https://github.com/PowerDNS/h2o/archive/refs/tags/v2.2.6+pdns2.tar.gz | tar xz && \ CFLAGS='-fPIC' cmake -DWITH_PICOTLS=off -DWITH_BUNDLED_SSL=off -DWITH_MRUBY=off -DCMAKE_INSTALL_PREFIX=/opt ./h2o-2.2.6-pdns2 && \ make install diff --git a/builder-support/dockerfiles/Dockerfile.rpmbuild b/builder-support/dockerfiles/Dockerfile.rpmbuild index ee316caa0d..350bbf42e1 100644 --- a/builder-support/dockerfiles/Dockerfile.rpmbuild +++ b/builder-support/dockerfiles/Dockerfile.rpmbuild @@ -52,7 +52,7 @@ RUN touch /var/lib/rpm/* && if $(grep -q 'release 7' /etc/redhat-release); then # this is fine because --allowerasing is only there to deal with libcurl conflicting with libcurl-minimal on some el9 images RUN touch /var/lib/rpm/* && mkdir /libh2o && cd /libh2o && \ yum install -y --allowerasing curl libcurl openssl-devel cmake || yum install -y curl libcurl openssl-devel cmake && \ - curl -L https://github.com/PowerDNS/h2o/archive/refs/tags/v2.2.6+pdns2.tar.gz | tar xz && \ + curl -f -L https://github.com/PowerDNS/h2o/archive/refs/tags/v2.2.6+pdns2.tar.gz | tar xz && \ CFLAGS='-fPIC' cmake -DWITH_PICOTLS=off -DWITH_BUNDLED_SSL=off -DWITH_MRUBY=off -DCMAKE_INSTALL_PREFIX=/opt ./h2o-2.2.6-pdns2 && \ make install diff --git a/builder-support/helpers/install_rust.sh b/builder-support/helpers/install_rust.sh index 97a766b63e..f9e9313856 100755 --- a/builder-support/helpers/install_rust.sh +++ b/builder-support/helpers/install_rust.sh @@ -35,7 +35,7 @@ fi cd /tmp echo $0: Downloading $RUST_TARBALL -curl -o $RUST_TARBALL $SITE/$RUST_TARBALL +curl -f -o $RUST_TARBALL $SITE/$RUST_TARBALL # Line below should echo two spaces between digest and name echo $VALUE" "$RUST_TARBALL | sha256sum -c - tar -zxf $RUST_TARBALL -- 2.47.2