InseeFrLab / images-datascience

Collection of Docker images to build the data science catalog of the Onyxia project
MIT License
24 stars 22 forks source link

Use an absolute path for onyxia-set-repositories.sh #129

Closed phlg closed 1 year ago

phlg commented 1 year ago

Follow-up to #128 to fix a sad oversight on my end : not using an absolute path for script file that manages the R/pip/conda repositories. This in turn leads to the pods to not be able to run it, eg :

λ kubectl logs pod/rstudio-167940-0

    start of onyxia-init.sh script en tant que :
    root
    sudo_allowed
    Cluster "in-cluster" set.
    User "user" set.
    Context "in-cluster" created.
    Switched to context "in-cluster".
    base64: invalid input
    configuration of git to a custom crt
    /usr/local/bin/R
    Renviron.site detected
!!  /opt/onyxia-init.sh: line 170: onyxia-set-repositories.sh: No such file or directory
    execution of /init
    [ ... ]

(by the way, there seems to be a problem with a base64 command, according to the above output, though this is out this PR's scope)