Skip to content

Commit 7cbb34a

Browse files
authored
Merge pull request #284 from Aratz/miniforge
Use Miniforge instead of regular conda
2 parents 20d7334 + d5aa6ea commit 7cbb34a

File tree

12 files changed

+15
-72
lines changed

12 files changed

+15
-72
lines changed

host_vars/deploy/main.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ static_ngi_log_path: "{{ static_ngi_pipeline_path }}/log"
3939
ngi_softlinks: "{{ ngi_pipeline_workdir }}/softlinks"
4040

4141
NGI_venv_name: "NGI"
42-
NGI_venv_py2_name: "NGI_py2"
43-
ngi_pipeline_venv: "{{ sw_path }}/anaconda/envs/{{ NGI_venv_name }}"
44-
ngi_pipeline_venv_py2: "{{ sw_path }}/anaconda/envs/{{ NGI_venv_py2_name }}"
42+
ngi_pipeline_venv: "{{ anaconda_path }}/envs/{{ NGI_venv_name }}"
4543

4644
ngi_pipeline_conf: "{{ root_path }}/conf/"
4745
ngi_resources: "{{ root_path }}/resources/"

install.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@
9595
- { role: arteria-sequencing-report-ws, tags: arteria-sequencing-report }
9696
- { role: snpseq-metadata-service, tags: snpseq-metadata-service }
9797
- { role: standalone_scripts, tags: standalone_scripts }
98-
- { role: delivery, tags: delivery }
9998
- { role: misc-tools, tags: misc-tools }
10099
- { role: archive-upload-ws, tags: archive-upload }
101100
- { role: archive-verify-ws, tags: archive-verify }

roles/anaconda/defaults/main.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
anaconda_file: Anaconda3-2021.05-Linux-x86_64.sh
2-
anaconda_checksum: 2751ab3d678ff0277ae80f9e8a74f218cfc70fe9a9cdc7bb1c137d7e47e33d53
3-
anaconda_url: "http://repo.anaconda.com/archive/{{ anaconda_file }}"
4-
anaconda_src: "/scratch/{{ anaconda_file }}"
1+
anaconda_version: "24.7.1-0"
2+
anaconda_file: "Miniforge-pypy3-{{ anaconda_version }}-Linux-x86_64.sh"
3+
anaconda_checksum: 538afb0f656fffcc4b4015b676fbf3905052d3817dd091e3b1043bd7f68f0de6
4+
anaconda_url: "https://github.com/conda-forge/miniforge/releases/download/{{ anaconda_version }}/{{ anaconda_file }}"
5+
anaconda_src: "/scratch/{{ anaconda_file }}"

roles/anaconda/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
creates: "{{ anaconda_path }}/LICENSE.txt"
1212

1313
- name: Update anaconda
14-
shell: "{{ anaconda_path }}/bin/conda update -n base -c defaults conda -y"
14+
shell: "{{ anaconda_path }}/bin/conda update -n base -c conda-forge conda -y"
1515

1616
- name: "Check if {{ conda_tools_env }} virtual env exists"
1717
shell: "{{ anaconda_path }}/bin/conda env list"

roles/archive-upload-ws/tasks/1_install.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
args:
66
creates: "{{ arteria_service_env_root }}"
77

8+
- name: make sure pip is up to date
9+
shell: "{{ arteria_service_env_root }}/bin/python -m ensurepip --upgrade"
10+
811
- name: get archive-upload from git
912
git:
1013
repo: "{{ archive_upload_repo }}"

roles/arteria-checksum-ws/tasks/1_install.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
- name: create virtual python env for arteria-checksum
44
shell: "conda create --name {{ arteria_service_name }} python=2.7"
5-
args:
5+
args:
66
creates: "{{ arteria_service_env_root }}"
77

8+
- name: make sure pip is up to date
9+
shell: "{{ arteria_service_env_root }}/bin/python -m ensurepip --upgrade"
10+
811
- name: get arteria-checksum from git
912
git:
1013
repo: "{{ arteria_checksum_repo }}"

roles/delivery/defaults/main.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

roles/delivery/meta/main.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

roles/delivery/tasks/main.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

roles/delivery/templates/sourceme_ugc.sh.j2

Lines changed: 0 additions & 4 deletions
This file was deleted.

roles/nf-core/tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
register: "nfcore_envs"
55

66
- name: Setup {{ nf_core_env_name }} virtual env with python3 and nf-core v{{ nf_core_version }}
7-
command: "conda create -n {{ nf_core_env_name }} -c conda-forge -c bioconda -c anaconda python={{ python3_version }} nf-core={{ nf_core_version }} nextflow={{ nextflow_version_tag }} awscli={{ awscli_version }}"
7+
command: "conda create -n {{ nf_core_env_name }} -c conda-forge -c bioconda python={{ python3_version }} nf-core={{ nf_core_version }} nextflow={{ nextflow_version_tag }} awscli={{ awscli_version }}"
88
when: not nf_core_env_name in nfcore_envs.stdout|split
99

1010
# Setup pipelines

roles/ngi_pipeline/tasks/main.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
shell: "conda create -n {{ NGI_venv_name }} pip python={{ python3_version }}"
99
when: not NGI_venv_name in py_venv_exists.stdout|split
1010

11-
- name: Setup virtual env with python{{ python2_version }} and install dependencies
12-
shell: "conda create -n {{ NGI_venv_py2_name }} -c anaconda python={{ python2_version }}"
13-
when: not NGI_venv_py2_name in py_venv_exists.stdout|split
14-
1511
- name: Fetch ngi_pipeline from github
1612
git:
1713
repo: "{{ ngi_pipeline_repo }}"

0 commit comments

Comments
 (0)