Skip to content

Commit

Permalink
Merge pull request #252 from ewels/master
Browse files Browse the repository at this point in the history
NGI-MethylSeq - use singularity image.
  • Loading branch information
sylvinite authored Sep 19, 2017
2 parents 56ba684 + dcf0fd4 commit f5db90a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 2 additions & 1 deletion roles/ngi-methylseq/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ngi_methylseq_dest: "{{ sw_path }}/ngi-methylseq"
ngi_methylseq_repo: "https://github.com/SciLifeLab/NGI-MethylSeq.git"
ngi_methylseq_version: "0.3"
ngi_methylseq_docker: "docker://scilifelab/ngi-methylseq"
ngi_methylseq_version: "0.3.1"
12 changes: 11 additions & 1 deletion roles/ngi-methylseq/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
---

- name: Fetch NGI-MethySeq from GitHub
- name: Fetch NGI-MethylSeq from GitHub
git: repo="{{ ngi_methylseq_repo }}"
dest="{{ ngi_methylseq_dest }}"
version="{{ ngi_methylseq_version }}"
force=yes

- name: Create NGI-MethylSeq Singularity folder
file: name="{{ ngi_resources }}/singularity/ngi-methylseq" state=directory mode=g+s

- name: Pull NGI-MethylSeq Singularity image
command: "singularity pull {{ ngi_methylseq_docker }}:{{ ngi_methylseq_version }} --name ngi-methylseq-{{ ngi_methylseq_version }}.img"
environment:
SINGULARITY_CACHEDIR: "/scratch"
args:
chdir: "{{ ngi_resources }}/singularity/ngi-methylseq/"

- name: Create NGI-RNAseq config
template:
src: "ngi-methylseq_site.config"
Expand Down
1 change: 1 addition & 0 deletions roles/ngi-methylseq/templates/ngi-methylseq_site.config
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
params.project = '{{ item.project_id }}'
process.container = '{{ ngi_resources }}/singularity/ngi-methylseq/ngi-methylseq-{{ ngi_methylseq_version }}.img'

0 comments on commit f5db90a

Please sign in to comment.