Commit ed453ce1 authored by Lukáš Krupčík's avatar Lukáš Krupčík

deleted: install/CENTOS7LATEST

parent e62c6a04
Bootstrap: docker
From: centos:7
%post
yum -y update && yum -y upgrade
# CentOS repo
yum -y install bash-completion pigz tmux
yum -y groupinstall "Development Tools"
yum -y install perf perftest gperf nano vim mc symlinks telnet net-tools ipmitool smartmontools wget ntp openssh-ldap sssd tmux lsof strace psmisc tcsh libffi-devel screen libfabric libfabric-devel time samba ksh zsh libsecret-devel libcap-devel libxslt docbook-style-xsl nfs-utils.x86_64 nfs4-acl-tools bind-utils edac-utils tcl tcl-devel
#X11
yum -y install libXdmcp libXfont2 libXxf86misc libxkbfile libXtst libX11-devel mesa-libGLU mesa-dri-drivers mesa-filesystem mesa-private-llvm xkeyboard-config xorg-x11-server-utils xorg-x11-xauth xorg-x11-xinit xorg-x11-xkb-utils motif motif-devel gtk3
# MPI
yum -y install numactl-devel
cd /tmp
# UCX
wget https://github.com/openucx/ucx/archive/v1.6.1.tar.gz
tar xvf v1.6.1.tar.gz && cd ucx-1.6.1
./autogen.sh
./configure --prefix=/usr/local
make -j 36
make install
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v3.1/downloads/openmpi-3.1.5.tar.gz
tar xvf openmpi-3.1.5.tar.gz && cd openmpi-3.1.5
./configure --prefix=/usr/local -with-ucx=/usr/local #-disable-dlopen
make -j 36
make install
# pip
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools numpy scipy pandas wheel --upgrade
# lua
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/lua-posix-32-2.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/lua-filesystem-1.6.2-2.el7.x86_64.rpm
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/lua-devel-5.1.4-15.el7.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/l/lua-bitop-1.0.2-3.el7.x86_64.rpm
rpm -ihv lua-devel-5.1.4-15.el7.x86_64.rpm
rpm -ihv lua-filesystem-1.6.2-2.el7.x86_64.rpm
rpm -ihv lua-bitop-1.0.2-3.el7.x86_64.rpm
rpm -ihv lua-posix-32-2.el7.x86_64.rpm
# Lmod
wget https://github.com/TACC/Lmod/archive/7.7.7.tar.gz
tar xvf 7.7.7.tar.gz
cd Lmod-7.7.7
./configure --prefix=/opt/apps
make install
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
%environment
source /opt/apps/lmod/7.7.7/init/profile
clearMT
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
export -f clearMT
export OMPI_MCA_btl_tcp_if_include=10.33.4.0/24
export OMPI_MCA_orte_base_help_aggregate=0
export OMPI_MCA_btl_openib_if_include=mlx5_0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment