Skip to content

Commit 6789fda

Browse files
committed
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
1 parent 4ec5df9 commit 6789fda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

julia_src/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ ARG NREL_ROOT_CERT_URL_ROOT=""
55
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
66
ENV REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
77

8+
# Use git cli instead of Julia's libgit2, since we're facing SSL issues with it.
9+
RUN apt-get update && apt-get -y install git && rm -rf /var/lib/apt/lists/* /var/lib/dpkg/*-old /var/cache/* /var/log/*
10+
ENV JULIA_PKG_USE_CLI_GIT=true
11+
812
# Install Julia packages
913
ENV JULIA_NUM_THREADS=2
1014
ENV XPRESS_JL_SKIP_LIB_CHECK=True

0 commit comments

Comments
 (0)