]> git.lizzy.rs Git - rust.git/commitdiff
Update certificates in some Ubuntu 16 images.
authorEric Huss <eric@huss.org>
Wed, 3 Nov 2021 23:41:33 +0000 (16:41 -0700)
committerEric Huss <eric@huss.org>
Wed, 3 Nov 2021 23:41:33 +0000 (16:41 -0700)
src/ci/docker/host-x86_64/dist-aarch64-linux/Dockerfile
src/ci/docker/host-x86_64/dist-arm-linux/Dockerfile
src/ci/docker/host-x86_64/dist-armhf-linux/Dockerfile
src/ci/docker/host-x86_64/dist-armv7-linux/Dockerfile

index e6b6b6e53b99d32126279b32546d09a7fc798c10..ab588ccc24999cb80bcd52c1a4da4db203770a4b 100644 (file)
@@ -1,5 +1,18 @@
+FROM ubuntu:20.04
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends \
+        curl \
+        ca-certificates
+WORKDIR /tmp
+RUN curl -f https://curl.se/ca/cacert.pem -o cacert.pem
+
 FROM ubuntu:16.04
 
+# The ca-certificates in ubuntu-16 is too old, so update the certificates
+# with something more recent.
+COPY --from=0 /tmp/cacert.pem /tmp/cacert.pem
+ENV CURL_CA_BUNDLE /tmp/cacert.pem
+
 COPY scripts/cross-apt-packages.sh /scripts/
 RUN sh /scripts/cross-apt-packages.sh
 
index 1be3fecd88ffff3f6df6edb515a93559374906de..f41b39d92b020704efbe0c955d6958d776bb062c 100644 (file)
@@ -1,5 +1,18 @@
+FROM ubuntu:20.04
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends \
+        curl \
+        ca-certificates
+WORKDIR /tmp
+RUN curl -f https://curl.se/ca/cacert.pem -o cacert.pem
+
 FROM ubuntu:16.04
 
+# The ca-certificates in ubuntu-16 is too old, so update the certificates
+# with something more recent.
+COPY --from=0 /tmp/cacert.pem /tmp/cacert.pem
+ENV CURL_CA_BUNDLE /tmp/cacert.pem
+
 COPY scripts/cross-apt-packages.sh /scripts/
 RUN sh /scripts/cross-apt-packages.sh
 
index 66eb4137a87ca1a3cbae0ae01d088f33ee668faa..b11a1d3feb2eefa5f44efd2a915f26d553b71f4c 100644 (file)
@@ -1,5 +1,18 @@
+FROM ubuntu:20.04
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends \
+        curl \
+        ca-certificates
+WORKDIR /tmp
+RUN curl -f https://curl.se/ca/cacert.pem -o cacert.pem
+
 FROM ubuntu:16.04
 
+# The ca-certificates in ubuntu-16 is too old, so update the certificates
+# with something more recent.
+COPY --from=0 /tmp/cacert.pem /tmp/cacert.pem
+ENV CURL_CA_BUNDLE /tmp/cacert.pem
+
 COPY scripts/cross-apt-packages.sh /scripts/
 RUN sh /scripts/cross-apt-packages.sh
 
index c13f63911f8fae06089859ba6ac6dce173ce665c..55ca23b293d5e2336b801b15991e71097f30d84c 100644 (file)
@@ -1,5 +1,18 @@
+FROM ubuntu:20.04
+RUN apt-get update && \
+    apt-get install -y --no-install-recommends \
+        curl \
+        ca-certificates
+WORKDIR /tmp
+RUN curl -f https://curl.se/ca/cacert.pem -o cacert.pem
+
 FROM ubuntu:16.04
 
+# The ca-certificates in ubuntu-16 is too old, so update the certificates
+# with something more recent.
+COPY --from=0 /tmp/cacert.pem /tmp/cacert.pem
+ENV CURL_CA_BUNDLE /tmp/cacert.pem
+
 COPY scripts/cross-apt-packages.sh /scripts/
 RUN sh /scripts/cross-apt-packages.sh