Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
samdporter opened this issue Aug 21, 2024 · 2 comments
Assignees

Comments

@samdporter
Copy link

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

@KrisThielemans KrisThielemans transferred this issue from SyneRBI/SIRF Aug 21, 2024
@KrisThielemans
Copy link
Member

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

@casperdcl
Copy link
Member

casperdcl commented Aug 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants