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

Remove hard-coding of packages in Dockerfile #139

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

rmuraix
Copy link
Contributor

@rmuraix rmuraix commented Sep 10, 2024

Changes

  • Remove hard-coding about conda_env.yml in Dockerfile
  • Change build commands so that COPY can be used

Why:

  • Hardcoding was complicating dependency updates and causing builds to fail
=> ERROR [15/18] RUN conda env create -f conda_env.yml                                                                                                                       49.5s
------                                                                                                                                                                              
 > [15/18] RUN conda env create -f conda_env.yml:                                                                                                                                   
0.992 Channels:                                                                                                                                                                     
0.992  - pytorch                                                                                                                                                                    
0.992  - conda-forge                                                                                                                                                                
0.992  - defaults
0.992 Platform: linux-64
0.992 Collecting package metadata (repodata.json): ...working... done
18.43 Solving environment: ...working... failed
26.71 Channels:
26.71  - pytorch
26.71  - conda-forge
26.71  - defaults
26.71 Platform: linux-64
26.71 Collecting package metadata (repodata.json): ...working... done
40.76 Solving environment: ...working... failed
49.47 
49.47 LibMambaUnsatisfiableError: Encountered problems while solving:
49.47   - package numba-0.53.1-py38ha9443f7_0 requires tbb >=2020.3, but none of the providers can be installed
49.47 
49.47 Could not solve for environment specs
49.47 The following packages are incompatible
49.47 ├─ numba ==0.53.1 py38ha9443f7_0 is installable and it requires
49.47 │  └─ tbb >=2020.3 , which can be installed;
49.47 └─ tbb ==2020.2 hc9558a2_0 is not installable because it conflicts with any installable versions previously reported.
49.47 
------
Dockerfile:124
--------------------
 122 |     ' >> conda_env.yml
 123 |     
 124 | >>> RUN conda env create -f conda_env.yml
 125 |     RUN conda clean -afy
 126 |     RUN rm ./Miniconda3-latest-Linux-x86_64.sh
--------------------
ERROR: failed to solve: process "/bin/bash -c conda env create -f conda_env.yml" did not complete successfully: exit code: 1

@v-iashin
Copy link
Owner

amazing. thanks.

@v-iashin v-iashin merged commit 8ddde4e into v-iashin:master Sep 12, 2024
@rmuraix rmuraix deleted the hotfix-docker branch September 12, 2024 09:15
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

Successfully merging this pull request may close these issues.

2 participants