Skip to content

Commit

Permalink
improve conda install
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Nov 29, 2021
1 parent a006a39 commit 59c3456
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 3 additions & 3 deletions gpu.dockerfile
Expand Up @@ -28,16 +28,16 @@ ENV CONDA_DIR=${CONDA_DIR:-/opt/conda} \
LANG=${LANG:-en_US.UTF-8} \
LANGUAGE=${LANGUAGE:-en_US.UTF-8}
ENV PATH="${CONDA_DIR}/bin:${PATH}"
COPY install_conda.sh .
RUN ./install_conda.sh
COPY install_conda.sh /tmp/
RUN /tmp/install_conda.sh

## Install packages with Conda
RUN conda install --quiet -y \
# openjdk maven \
nodejs \
ipywidgets \
nb_conda_kernels \
# jupyterlab \
jupyterlab \
jupyterlab-git \
jupyterlab-lsp \
jupyter-lsp-python \
Expand Down
6 changes: 4 additions & 2 deletions jupyter_notebook_config.py
Expand Up @@ -32,10 +32,12 @@
os.system('cat extensions.txt | xargs -I {} jupyter {} install --user')

if os.path.exists('environment.yml'):
os.system('mamba env create -f environment.yml')
os.system('conda env create -f environment.yml')
# os.system('mamba env create -f environment.yml')

if os.path.exists('environment.yaml'):
os.system('mamba env create -f environment.yaml')
os.system('conda env create -f environment.yaml')
# os.system('mamba env create -f environment.yaml')

if workspace:
os.chdir(workspace)
Expand Down

0 comments on commit 59c3456

Please sign in to comment.