Skip to content

Commit

Permalink
Merge branch 'refactor/miniforge' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Jan 7, 2025
2 parents ac33f7c + 4fb3a48 commit 81d0379
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
19 changes: 9 additions & 10 deletions jupyterlab/jupyterlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,23 @@
name: geerlingguy.swap
vars:
swap_file_size_mb: "2024"
- name: Download Miniconda

- name: Download Miniforge
get_url:
url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
dest: /tmp/miniconda.sh
url: https://github.com/conda-forge/miniforge/releases/download/{{jupyterlab_vars.MINI_FORGE_RELEASE}}/Miniforge3-{{jupyterlab_vars.MINI_FORGE_RELEASE}}-Linux-x86_64.sh
dest: /tmp/miniforge.sh

- name: Install Miniconda
command: bash /tmp/miniconda.sh -b -p {{jupyterlab_vars.CONDA_DIR}}
- name: Install Miniforge
command: bash /tmp/miniforge.sh -b -p {{ jupyterlab_vars.CONDA_DIR }}
args:
creates: "{{jupyterlab_vars.CONDA_DIR}}/bin/conda"
when: not jupyterlab_vars.create_only_backend
creates: "{{ jupyterlab_vars.CONDA_DIR }}/bin/mamba"

- name: Add Miniconda to PATH
- name: Add Miniforge to PATH
lineinfile:
path: /etc/profile
line: 'export PATH={{jupyterlab_vars.CONDA_DIR}}/bin:$PATH'
line: 'export PATH={{ jupyterlab_vars.CONDA_DIR }}/bin:$PATH'
become: true
become_user: root
when: not jupyterlab_vars.create_only_backend

- name: Install conda-env role
include_role:
Expand Down
4 changes: 3 additions & 1 deletion jupyterlab/jupyterlab_vars_file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ jupyterlab_vars:
base_url:
default_user: ubuntu
DEFAULT_TOKEN: simplevm
CONDA_DIR: /home/ubuntu/miniconda3
CONDA_DIR: /home/ubuntu/miniforge
conda_env_environment_yml: ./jupyterlab_env.yml
ENV_NAME: denbi
TIMEOUT_LENGTH: 5m
MINI_FORGE_RELEASE: 24.11.2-1

0 comments on commit 81d0379

Please sign in to comment.