From afcc93b02ebce423e31153f11c7e803379aa5a6b Mon Sep 17 00:00:00 2001 From: dweinholz Date: Mon, 29 Jan 2024 13:48:36 +0100 Subject: [PATCH] removed miniconda role --- jupyterlab/jupyterlab.yml | 24 ++++++++++++++++++------ packer/requirements.yml | 2 -- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/jupyterlab/jupyterlab.yml b/jupyterlab/jupyterlab.yml index 7849b791..10b6a8fa 100644 --- a/jupyterlab/jupyterlab.yml +++ b/jupyterlab/jupyterlab.yml @@ -4,15 +4,27 @@ name: geerlingguy.swap vars: swap_file_size_mb: "2024" +- name: Download Miniconda + get_url: + url: https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh + dest: /tmp/miniconda.sh -- name: Install miniconda role - include_role: - name: andrewrothstein.miniconda - vars: - miniconda_parent_dir: /home/{{jupyterlab_vars.default_user}} - miniconda_link_subdir: miniconda3 +- name: Install Miniconda + command: bash /tmp/miniconda.sh -b -p {{jupyterlab_vars.CONDA_DIR}} + args: + creates: "{{jupyterlab_vars.CONDA_DIR}}/bin/conda" + when: not jupyterlab_vars.create_only_backend + +- name: Add Miniconda to PATH + lineinfile: + path: /etc/profile + 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: name: andrewrothstein.conda-env diff --git a/packer/requirements.yml b/packer/requirements.yml index 77a7704c..f4809ac5 100644 --- a/packer/requirements.yml +++ b/packer/requirements.yml @@ -9,8 +9,6 @@ roles: - name: andrewrothstein.miniconda version: v6.2.0 - - name: andrewrothstein.conda-env - version: v2.2.0 - name: geerlingguy.docker version: 7.0.2