File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -126,13 +126,14 @@ let
126126 rustPackages . "psyche-sidecar"
127127 python3Packages . huggingface-hub
128128 ( pkgs . runCommand "entrypoint" { } ''
129- mkdir -p $out/bin $out/etc $out/tmp $out/var/tmp $out/run
129+ mkdir -p $out/bin $out/etc/ssl/certs $out/tmp $out/var/tmp $out/run
130130 cp ${ ../docker/train_entrypoint.sh } $out/bin/train_entrypoint.sh
131131 cp ${ ../docker/sidecar_entrypoint.sh } $out/bin/sidecar_entrypoint.sh
132132 chmod +x $out/bin/train_entrypoint.sh
133133 chmod +x $out/bin/sidecar_entrypoint.sh
134134 ln -s ${ bashInteractive } /bin/bash $out/bin/bash
135135 ln -s ${ bashInteractive } /bin/bash $out/bin/sh
136+ ln -s ${ cacert } /etc/ssl/certs/ca-certificates.crt $out/etc/ssl/certs/ca-certificates.crt
136137 '' )
137138 ]
138139 ++ cudaRuntimeLibs ;
144145 "LD_LIBRARY_PATH=${ lib . makeLibraryPath cudaRuntimeLibs } :/usr/local/nvidia/lib64:/lib:/usr/lib"
145146 "PATH=${ lib . makeBinPath ( with pkgs ; [ bashInteractive coreutils curl findutils gnugrep ] ) } "
146147 "SSL_CERT_FILE=${ pkgs . cacert } /etc/ssl/certs/ca-certificates.crt"
148+ "CURL_CA_BUNDLE=${ pkgs . cacert } /etc/ssl/certs/ca-certificates.crt"
149+ "NIX_SSL_CERT_FILE=${ pkgs . cacert } /etc/ssl/certs/ca-certificates.crt"
147150 "LOGNAME=root"
148151 "TORCHINDUCTOR_CACHE_DIR=/tmp/torchinductor"
149152 "PYTHONUNBUFFERED=1"
You can’t perform that action at this time.
0 commit comments