SIRF-SuperBuild icon indicating copy to clipboard operation
SIRF-SuperBuild copied to clipboard

removal of intel conda channel resulting in error when building docker image

Open samdporter opened this issue 1 year ago • 2 comments

See: https://community.intel.com/t5/oneAPI-Registration-Download/Disappearance-of-intel-conda-channel/m-p/1614250#M2163

Dockerfile:

FROM synerbi/sirf:latest-gpu
USER root
RUN conda install pytorch && fix-permissions "${CONDA_DIR}" /home/${NB_USER}
USER ${NB_UID}

Error:

 => ERROR [2/2] RUN conda install pytorch && fix-permissions "/opt/conda" /home/jovyan                                     137.3s
------                                                                                                                            
 > [2/2] RUN conda install pytorch && fix-permissions "/opt/conda" /home/jovyan:                                                  
132.0 Retrieving notices: ...working... done                                                                                      
134.0 Channels:                                                                                                                   
134.0  - conda-forge                                                                                                              
134.0  - intel                                                                                                                    
134.0  - ccpi
134.0  - defaults
134.0 Platform: linux-64
134.0 Collecting package metadata (repodata.json): ...working... failed
137.2 
137.2 UnavailableInvalidChannel: HTTP 403 FORBIDDEN for channel intel <https://conda.anaconda.org/intel>
137.2 
137.2 The channel is not accessible or is invalid.
137.2 
137.2 You will need to adjust your conda configuration to proceed.
137.2 Use `conda config --show channels` to view your configuration's current state,
137.2 and use `conda config --show-sources` to view config file locations.
137.2 
137.2 
------
Dockerfile:3
--------------------
   1 |     FROM synerbi/sirf:latest-gpu
   2 |     USER root
   3 | >>> RUN conda install pytorch && fix-permissions "${CONDA_DIR}" /home/${NB_USER}
   4 |     USER ${NB_UID}
--------------------
ERROR: failed to solve: process "/bin/bash -o pipefail -c conda install pytorch && fix-permissions \"${CONDA_DIR}\" /home/${NB_USER}" did not complete successfully: exit code: 1

Attempted to fix by adding lines

RUN conda config --remove-key channels && \
    conda config --add channels defaults && \
    conda config --add channels conda-forge && \

But no good

samdporter avatar Aug 21 '24 13:08 samdporter

I thought this was handled, but @casperdcl can confirm.

KrisThielemans avatar Aug 21 '24 13:08 KrisThielemans

Hmm it might be some demo/example/excercises environment.yml

casperdcl avatar Aug 21 '24 13:08 casperdcl

@casperdcl presumably this can be closed?

KrisThielemans avatar Dec 08 '25 20:12 KrisThielemans

fixed by #921

casperdcl avatar Dec 08 '25 23:12 casperdcl