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

Use environment.yml to install packages in Dockerfiles #938

Closed
RobertLucian opened this issue Apr 2, 2020 · 0 comments
Closed

Use environment.yml to install packages in Dockerfiles #938

RobertLucian opened this issue Apr 2, 2020 · 0 comments
Labels
enhancement New feature or request refactor Improve code quality

Comments

@RobertLucian
Copy link
Member

Description

Create the base environment and install the python packages in one go by using an environment.yml config file. For now, this is not advised, because the dev machines don't have enough RAM memory. Once the machines are upgraded, this will possible. Related PR here #880.

name: env
channels:
    - defaults
    - conda-forge
dependencies:
    - conda-forge::python=3.6.9
    - pip
    - pip:
        - --install-option="--no-cache-dir"
        - -r file:lib/requirements.txt
        - -r file:serve/requirements.txt

Motivation

When working with conda environments, it's best to install everything (conda packages & pip packages) in one go to prevent the environment from entering a broken state. The likelihood of the environment to break gets higher the more commands are run one after the another.

@RobertLucian RobertLucian added the enhancement New feature or request label Apr 2, 2020
@deliahu deliahu added refactor Improve code quality and removed enhancement New feature or request labels Jun 25, 2020
@deliahu deliahu added the enhancement New feature or request label Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor Improve code quality
Projects
None yet
Development

No branches or pull requests

3 participants