summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunar Borge <runar@borge.nu>2020-01-27 19:55:55 +0100
committerRunar Borge <runar@borge.nu>2020-01-27 19:55:55 +0100
commit3446ab67778fbc4040fc7fe40ba5110491fb6222 (patch)
treedc69d32045e040f9db15c6e08dfba4bd38bcf4b9
parent44a8ad0a88d4a98ba8abbc93402483df6318c73d (diff)
downloadvyos-build-3446ab67778fbc4040fc7fe40ba5110491fb6222.tar.gz
vyos-build-3446ab67778fbc4040fc7fe40ba5110491fb6222.zip
Docker: T1927: Readd curl certificate fix
-rw-r--r--docker/Dockerfile7
1 files changed, 6 insertions, 1 deletions
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 \