-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity.centos
44 lines (37 loc) · 1.43 KB
/
Singularity.centos
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# MPI Ubuntu Package for running on CARC Wheeler - derived from initial UUtah CHPC
# package specification at:
# https://github.com/CHPC-UofU/Singularity-ubuntu-mpi/blob/master/Singularity
Bootstrap: docker
From: centos:latest
%post
# Wheeler mount points
mkdir -p /wheeler/scratch
mkdir -p /nfs/scratch
yum -y update && yum clean all
yum groupinstall -y "Development Tools"
yum install -y \
which \
curl \
git
yum install -y epel-release
yum install -y python-pip python-devel
pip install --upgrade pip
pip install setuptools
# Set up some required environment defaults
#MC issue with locale (LC_ALL, LANGUAGE), to get it right:
export LANGUAGE="en_US.UTF-8"
echo 'LANGUAGE="en_US.UTF-8"' >> /etc/default/locale
echo 'LC_ALL="en_US.UTF-8"' >> /etc/default/locale
# Update to the latest pip (newer than repo)
pip install --no-cache-dir --upgrade pip
# Install other commonly-needed packages
pip install --no-cache-dir --upgrade \
future \
matplotlib \
scipy
# IB stuff, based on https://community.mellanox.com/docs/DOC-2431
yum -y install dapl dapl-utils ibacm infiniband-diags libibverbs libibverbs-devel libibverbs-utils libmlx4 librdmacm librdmacm-utils mstflint opensm-libs perftest qperf rdma
yum clean all
%environment
# path to mlx IB libraries in Ubuntu
LD_LIBRARY_PATH=/usr/lib/libibverbs:$LD_LIBRARY_PATH