Skip to content

Commit 8621bdd

Browse files
committed
azure: docker: use insecure flag to fix curl downloads
We currently hve some problems with our curl downloads when building Docker images. It's not quite obvious what the problem is and they seem to occur semi-randomly. To unblock our CI, let's add the "--insecure" flag to curl to ignore any certificate errors. This is intended as a temporary solution only.
1 parent 95f329b commit 8621bdd

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

azure-pipelines/docker/bionic

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ RUN apt-get update && \
2525

2626
FROM apt AS mbedtls
2727
RUN cd /tmp && \
28-
curl --location --silent --show-error http://secure.globalsign.com/cacert/gsrsaovsslca2018.crt | openssl x509 -inform der -out /tmp/cacert.pem && \
29-
curl --location --silent --show-error https://curl.haxx.se/ca/cacert.pem >> /tmp/cacert.pem && \
30-
curl --location --silent --show-error https://tls.mbed.org/download/mbedtls-2.16.2-apache.tgz --cacert /tmp/cacert.pem | \
28+
curl --insecure --location --silent --show-error https://tls.mbed.org/download/mbedtls-2.16.2-apache.tgz | \
3129
tar -xz && \
3230
cd mbedtls-2.16.2 && \
3331
scripts/config.pl set MBEDTLS_MD4_C 1 && \

azure-pipelines/docker/xenial

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ RUN apt-get update && \
2929

3030
FROM apt AS mbedtls
3131
RUN cd /tmp && \
32-
curl --location --silent --show-error http://secure.globalsign.com/cacert/gsrsaovsslca2018.crt | openssl x509 -inform der -out /tmp/cacert.pem && \
33-
curl --location --silent --show-error https://curl.haxx.se/ca/cacert.pem >> /tmp/cacert.pem && \
34-
curl --location --silent --show-error https://tls.mbed.org/download/mbedtls-2.16.2-apache.tgz --cacert /tmp/cacert.pem | \
32+
curl --insecure --location --silent --show-error https://tls.mbed.org/download/mbedtls-2.16.2-apache.tgz | \
3533
tar -xz && \
3634
cd mbedtls-2.16.2 && \
3735
scripts/config.pl set MBEDTLS_MD4_C 1 && \
@@ -42,7 +40,7 @@ RUN cd /tmp && \
4240

4341
FROM mbedtls AS libssh2
4442
RUN cd /tmp && \
45-
curl --location --silent --show-error https://www.libssh2.org/download/libssh2-1.8.2.tar.gz | \
43+
curl --insecure --location --silent --show-error https://www.libssh2.org/download/libssh2-1.8.2.tar.gz | \
4644
tar -xz && \
4745
cd libssh2-1.8.2 && \
4846
CFLAGS=-fPIC cmake -G Ninja -DBUILD_SHARED_LIBS=ON -DCRYPTO_BACKEND=Libgcrypt . && \
@@ -52,7 +50,7 @@ RUN cd /tmp && \
5250

5351
FROM libssh2 AS valgrind
5452
RUN cd /tmp && \
55-
curl --location --silent --show-error https://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2 | \
53+
curl --insecure --location --silent --show-error https://sourceware.org/pub/valgrind/valgrind-3.15.0.tar.bz2 | \
5654
tar -xj && \
5755
cd valgrind-3.15.0 && \
5856
./configure && \

0 commit comments

Comments
 (0)