From 6789fdae52e45be1745db635cda2d7c2e0302fe3 Mon Sep 17 00:00:00 2001 From: "Rathod, Bhavesh" Date: Mon, 19 Aug 2024 16:06:57 -0400 Subject: [PATCH] workaround fix for SSL issue The underlying SSL issue appears to be tied to libgit2 library being unable to read a PEM file format, and hence errors. Workaround is to use --- julia_src/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/julia_src/Dockerfile b/julia_src/Dockerfile index 60bb2034c..e75b58da6 100644 --- a/julia_src/Dockerfile +++ b/julia_src/Dockerfile @@ -5,6 +5,10 @@ ARG NREL_ROOT_CERT_URL_ROOT="" RUN set -x && if [ -n "$NREL_ROOT_CERT_URL_ROOT" ]; then curl -fsSLk -o /usr/local/share/ca-certificates/nrel_root.crt "${NREL_ROOT_CERT_URL_ROOT}/nrel_root.pem" && curl -fsSLk -o /usr/local/share/ca-certificates/nrel_xca1.crt "${NREL_ROOT_CERT_URL_ROOT}/nrel_xca1.pem" && update-ca-certificates; fi ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt +# Use git cli instead of Julia's libgit2, since we're facing SSL issues with it. +RUN apt-get update && apt-get -y install git && rm -rf /var/lib/apt/lists/* /var/lib/dpkg/*-old /var/cache/* /var/log/* +ENV JULIA_PKG_USE_CLI_GIT=true + # Install Julia packages ENV JULIA_NUM_THREADS=2 ENV XPRESS_JL_SKIP_LIB_CHECK=True