From 3446ab67778fbc4040fc7fe40ba5110491fb6222 Mon Sep 17 00:00:00 2001 From: Runar Borge Date: Mon, 27 Jan 2020 19:55:55 +0100 Subject: Docker: T1927: Readd curl certificate fix --- docker/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index bee084c5..a00422f2 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -104,7 +104,12 @@ RUN apt-get update && apt-get install -y \ unzip # Update certificate store to not crash ocaml package installf -RUN dpkg-reconfigure ca-certificates +# Apply fix for https in curl running on armhf +RUN dpkg-reconfigure ca-certificates; \ + if dpkg-architecture -iarmhf; then \ + echo "cacert=/etc/ssl/certs/ca-certificates.crt" >> ~/.curlrc; \ + fi + # Installing OCAML needed to compile libvyosconfig RUN curl https://raw.githubusercontent.com/ocaml/opam/2.0.2/shell/install.sh \ -- cgit v1.2.3