50 lines
1 KiB
YAML
50 lines
1 KiB
YAML
|
- name: Include variables
|
||
|
include_vars:
|
||
|
file: "../../../variables.yml"
|
||
|
|
||
|
- name: Install docker prerequsistes
|
||
|
apt:
|
||
|
pkg:
|
||
|
- squashfs-tools
|
||
|
- tinc
|
||
|
- curl
|
||
|
- uuid-dev
|
||
|
- libssl-dev
|
||
|
- build-essential
|
||
|
|
||
|
- name:
|
||
|
shell: mkdir singularity_build
|
||
|
|
||
|
- name:
|
||
|
shell: cd singularity_build
|
||
|
|
||
|
- name:
|
||
|
shell: wget https://dl.google.com/go/go{{ singularity_go_ver }}.linux-amd64.tar.gz
|
||
|
|
||
|
- name:
|
||
|
shell: tar -C /usr/local -xzf go{{ singularity_go_ver }}.linux-amd64.tar.gz
|
||
|
|
||
|
- name:
|
||
|
shell: wget https://github.com/sylabs/singularity/releases/download/v{{ singularity_ver }}/singularity-{{ singularity_ver }}.tar.gz
|
||
|
|
||
|
- name:
|
||
|
shell: tar -xvzf singularity-{{ singularity_ver }}.tar.gz
|
||
|
|
||
|
- name:
|
||
|
shell: cd singularity/
|
||
|
|
||
|
- name:
|
||
|
shell: PATH=$PATH:/usr/local/go/bin/
|
||
|
|
||
|
- name:
|
||
|
shell: ./mconfig -s --without-network -p /opt/singularity-{{ singularity_ver }}/
|
||
|
|
||
|
- name:
|
||
|
shell: cd builddir/
|
||
|
|
||
|
- name:
|
||
|
shell: make
|
||
|
|
||
|
- name:
|
||
|
shell: make install
|