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

new repo

parents
*.img
*.swp
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Bootstrap: docker
From: debian:jessie
%post
apt -y update && apt -y upgrade
apt -y install python curl wget gcc g++ make vim mc libncurses-dev rsync tclsh lua5.2 liblua5.2 gfortran ssh
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools python-graph-core python-graph-dot tabulate numpy scipy pandas wheel --upgrade
wget https://github.com/luarocks/luarocks/archive/v2.4.2.tar.gz
tar xvf v2.4.2.tar.gz
cd luarocks-2.4.2
./configure
make build
make install
mkdir ~/.luarocks
echo "fs_use_modules = false" > ~/.luarocks/config.lua
luarocks install luaposix
luarocks install luafilesystem
LUAROCKS_PREFIX=/usr/local
export LUA_PATH="$LUAROCKS_PREFIX/share/lua/5.1/?.lua;$LUAROCKS_PREFIX/share/lua/5.1/?/init.lua;;"
export LUA_CPATH="$LUAROCKS_PREFIX/lib/lua/5.1/?.so;;"
echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make install
cd /bin
rm sh && ln -s /bin/bash sh
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
mkdir /apps
mkdir /scratch
%environment
. /apps/all/Lmod/7.7.7/lmod/lmod/init/profile
ml purge --force
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
export -f clearMT
Bootstrap: docker
From: fedora:latest
%post
yum -y update && yum -y upgrade
# CentOS repo
yum -y groupinstall "Development Tools"
yum -y install python gcc gcc-c++ gcc-gfortran make wget vim mc procps tcl pkg-config lua tolua++ lua-posix lua-logging lua-sql lua-socket lua-filesystem lua-sec lua-json lua-term
# Fedora repo
yum -y install bash-completion pigz tmux
cd /tmp
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.0.tar.gz
tar xvf openmpi-2.1.0.tar.gz && cd openmpi-2.1.0
./configure --prefix=/usr/local
make -j 14
make install
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
ln -s /apps/all/Lmod/7.7.7/lmod/etc /opt/apps/lmod/etc
# pip
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools --upgrade
%environment
. /opt/apps/lmod/7.7.7/init/profile
ml purge --force
export -f ml
export -f module
export -f clearMT
# Singularity on IT4Innovations
On the clusters we support an images of various Linux distributions. The list of supported systems can be found below.
Support GPU and MIC card on CentOS images.
## Type Images
* Classic
* CentOS/6.9
* CentOS/7.3
* Ubuntu/16.04
* Debian/8.0
* Fedora/26
* GPU
* CentOS/6.9-GPU
* MIC
* CentOS/6.9-MIC
## Dependency
* LMOD 7.7.7
* Singularity (required 2.3.2)
* OpenMPI/2.1.0-GCC-6.3.0-2.27 (required)
* For GPU
* GPU drivers
* For MIC
* MPSS
* MIC rpm
## Install
**Only ROOT**
A CONFIG file must be filled in.
```console
# ./install.sh
./install.sh ... create and build singularity image
-i OS (CentOS, Fedora, Debian, Ubuntu)
-v Version OS (CentOS 6.9 or CentOS 7.3, Fedora 26, Debian 8.0, Ubuntu 16.04)
-o OpenMPI module (default is OpenMPI/2.1.0-GCC-6.3.0-2.27)
-t classic, GPU, MIC (default is classic)
Example:
./install.sh -i CentOS -v 6.9
```
### Example
**Classic image**
```console
# ./install.sh -i Ubuntu -v 16.04
GPU card ............................... [DISABLE]
MIC card ............................... [DISABLE]
Check CONFIG ........................... [OK]
Image .................................. [OK]
Version ................................ [OK]
Type set to default (classic) .......... [OK]
OpenMPI set to default ................. [OK]
ROOT ................................... [OK]
Create & Build singularity image (Ubuntu-16.04-classic)
/apps/all/Singularity/2.3.2/bin
Initializing Singularity image subsystem
Opening image file: image.img
Creating 2000MiB image
Binding image to loop
Creating file system within image
Image is done: image.img
Create image ........................... [OK]
Sanitizing environment
Building from bootstrap definition recipe
Adding base Singularity environment to container
```
**GPU image**
Checking GPU card
```console
# ./install.sh -i Ubuntu -v 16.04 -t GPU
GPU card ............................... [OK]
MIC card ............................... [DISABLE]
Check CONFIG ........................... [OK]
Image .................................. [OK]
Version ................................ [OK]
Type set to default (classic) .......... [OK]
OpenMPI set to default ................. [OK]
ROOT ................................... [OK]
Create & Build singularity image (Ubuntu-16.04-classic)
/apps/all/Singularity/2.3.2/bin
Initializing Singularity image subsystem
Opening image file: image.img
Creating 2000MiB image
Binding image to loop
Creating file system within image
Image is done: image.img
Create image ........................... [OK]
Sanitizing environment
Building from bootstrap definition recipe
Adding base Singularity environment to container
```
**MIC image**
Checking MIC card(s) in /dev/
```console
# ./install.sh -i Ubuntu -v 16.04 -t MIC
GPU card ............................... [DISABLE]
MIC card ............................... [OK]
Check CONFIG ........................... [OK]
Image .................................. [OK]
Version ................................ [OK]
Type set to default (classic) .......... [OK]
OpenMPI set to default ................. [OK]
ROOT ................................... [OK]
Create & Build singularity image (Ubuntu-16.04-classic)
/apps/all/Singularity/2.3.2/bin
Initializing Singularity image subsystem
Opening image file: image.img
Creating 2000MiB image
Binding image to loop
Creating file system within image
Image is done: image.img
Create image ........................... [OK]
Sanitizing environment
Building from bootstrap definition recipe
Adding base Singularity environment to container
```
## Use OS Images
* OS modules
```console
$ ml av
------------------------------------------------------------------------------------------------ /apps/modules/OS -------------------------------------------------------------------------------------------------
CentOS/6.9-MIC-shell (S) CentOS/6.9-shell (S) CentOS/7.3-shell (S) Debian/8.0-shell (S) Fedora/26-shell (S) Ubuntu/16.04-shell (S)
CentOS/6.9-MIC (S) CentOS/6.9 (S) CentOS/7.3 (S,D) Debian/8.0 (S,D) Fedora/26 (S,D) Ubuntu/16.04 (S,D)
```
**-shell** .. autoload image
* load module
```console
$ ml CentOS/6.9
```
* use non shell module
```console
$ ml CentOS/6.9
Your image of CentOS/6.9 is at location: /home/kru0052/.singularity/images/CentOS-6.9_20171101115949.img
[kru0052@login3.salomon ~]$ image-
image-exec image-load image-mpi image-shell image-update
[kru0052@login3.salomon ~]$ image-mpi hostname
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
login3
```
Bootstrap: docker
From: ubuntu:latest
%post
apt -y update && apt -y upgrade
apt -y install python curl wget gcc g++ make vim mc libncurses-dev rsync tclsh lua5.2 liblua5.2 gfortran ssh
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools python-graph-core python-graph-dot tabulate numpy scipy pandas wheel --upgrade
wget https://github.com/luarocks/luarocks/archive/v2.4.2.tar.gz
tar xvf v2.4.2.tar.gz
cd luarocks-2.4.2
./configure
make build
make install
mkdir ~/.luarocks
echo "fs_use_modules = false" > ~/.luarocks/config.lua
luarocks install luaposix
luarocks install luafilesystem
LUAROCKS_PREFIX=/usr/local
export LUA_PATH="$LUAROCKS_PREFIX/share/lua/5.1/?.lua;$LUAROCKS_PREFIX/share/lua/5.1/?/init.lua;;"
export LUA_CPATH="$LUAROCKS_PREFIX/lib/lua/5.1/?.so;;"
echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make install
cd /bin
rm sh && ln -s /bin/bash sh
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
%environment
. /apps/all/Lmod/7.7.7/lmod/lmod/init/profile
ml purge --force
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
export -f clearMT
# !/bin/bash
if [ -z "IMAGE_PATH_LOCAL" ]; then
echo -e "\e[31mAn error occured, exiting...\e[0m"
exit 1
fi
if [ -z "$1" ]; then
echo -e "\e[32mUsage: image-exec COMMAND\e[0m"
exit 1
fi
singularity exec --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL "$@"
# !/bin/bash
if [ -z "IMAGE_ROOT" ] || [ -z "IMAGE_OS" ] || [ -z "IMAGE_VERSION" ]; then
echo -e "\e[31mAn error occured, exiting...\e[0m"
exit 1
fi
VERSION=$(ls -t $IMAGE_ROOT | grep .img | head -1)
if [ ! -d "$HOME/.singularity/images" ]; then
mkdir -p $HOME/.singularity/images
fi
LOCAL=$(ls $HOME/.singularity/images | grep $IMAGE_OS-$IMAGE_VERSION* | head -1)
if [[ -z "$LOCAL" ]]; then
echo -ne "\e[33mPreparing image \e[0m"
rsync --progress -h $IMAGE_ROOT/$VERSION $HOME/.singularity/images/$VERSION
LOCAL=$VERSION
fi
if [ "$LOCAL" \< "$VERSION" ]; then
if [ "$1" == "shell" ]; then
echo -ne "\e[33mNew version of $IMAGE_OS image was found.\e[0m (New: $VERSION Old: $LOCAL)\nDo you want to update local copy? (\e[31mWARNING all user modifications will be deleted\e[0m) [y/N]: "
read CONTINUE
if [ "$CONTINUE" == "y" ] || [ "$CONTINUE" == "Y" ]; then
echo -ne "\e[32mUpdating image\e[0m "
rsync --progress -h $IMAGE_ROOT/$VERSION $HOME/.singularity/images/$VERSION
echo -e "\e[32mNew version is ready.\e[0m ($HOME/.singularity/images/$VERSION)"
[ -f $HOME/.singularity/images/$LOCAL ] && rm $HOME/.singularity/images/$LOCAL
LOCAL=$VERSION
else
echo -e "\e[31mIgnoring new version...\e[0m ($VERSION)."
fi
else
echo -e "\e[33mNew version of $IMAGE_OS image was found.\e[0m (\e[33mNew:\e[0m $VERSION \e[33mOld:\e[0m $LOCAL)\nFor updating image use: \e[32mimage-update\e[0m"
fi
fi
if [ "$1" == "shell" ]; then
export IMAGE_PATH_LOCAL="$HOME/.singularity/images/$LOCAL"
singularity shell --bind /scratch --bind /apps --writable $HOME/.singularity/images/$LOCAL
SYS=`/bin/cat /etc/centos-release`
echo -e "\e[33mWelcome to the normal operating system ($SYS)\e[0m"
else
export IMAGE_PATH_LOCAL="$HOME/.singularity/images/$LOCAL"
echo -e "\e[33mYour image of $IMAGE_OS/$IMAGE_VERSION is at location:\e[0m $HOME/.singularity/images/$LOCAL"
fi
#!/bin/bash
#play a usage message.
usage () {
cat <<EOF
Usage: image-mpi [ options ] <program> [ <args> ]
Open MPI mpirun wrapper for Singularity images. Use "man mpirun" for further help.
EOF
}
if [ -z "$IMAGE_PATH_LOCAL" ]; then
echo -e "An error occured, exiting..."
exit 1
fi
if [ -z "$1" ]; then
usage
exit 1
fi
PARAM=""
EXEC=""
while [[ $# -gt 0 ]]
do
key="$1"
case $key in
-gmca|--gmca|-mca|--mca)
PARAM="$PARAM $1 $2 $3"
shift # past argument
shift
;;
-N|--npernode|-max-vm-size|--max-vm-size|-H|-host|--host|-hostfile|--hostfile|-default-hostfile|--default-hostfile|-machinefile|--machinefile|-cpu-set|--cpu-set|-c|-n|--n|-np|-map-by|-npersocket|--npersocket|-npernode|--npernode|--map-by|--rank-by|--bind-to|-cpus-per-proc|--cpus-per-proc|-cpus-per-rank|--cpus-per-rank|-rf|--rankfile|-output-filename|--output-filename|-stdin|--stdin|-xml-file|--xml-file|-xterm|--xterm|-path|--path|--prefix|--preload-files|-wd|-wdir|-x|-am|-debugger|--debugger|--app|-cf|--cartofile|-max-restarts|--max-restarts|-ompi-server|--ompi-server|-personality|--personality|--ppr|-report-events|--report-events|-report-pid|--report-pid|-report-uri|--report-uri|--timeout)
PARAM="$PARAM $1 $2"
shift # past argument
;;
-h|--help|-q|--quiet|-v|--verbose|-V|--version|-display-map|--display-map|-display-allocation|--display-allocation|-output-proctable|--output-proctable|-dvm|--dvm|-novm|--novm|-pernode|--pernode|-bycore|--bycore|-byslot|--byslot|-nolocal|--nolocal|-nooversubscribe|--nooversubscribe|-oversubscribe|--oversubscribe|-bynode|--bynode|-bind-to-core|--bind-to-core|-bind-to-socket|--bind-to-socket|-report-bindings|--report-bindings|-tag-output|--tag-output|-timestamp-output|--timestamp-output|-xml|--xml|--noprefix|-s|--preload-binary|-set-cwd-to-session-dir|--set-cwd-to-session-dir|-debug|--debug|--get-stack-traces|-tv|--tv|--allow-run-as-root|-disable-recovery|--disable-recovery|-do-not-launch|--do-not-launch|-do-not-resolve|--do-not-resolve|-enable-recovery|--enable-recovery|-index-argv-by-rank|--index-argv-by-rank|-leave-session-attached|--leave-session-attached|-report-child-jobs-separately|--report-child-jobs-separately|-show-progress|--show-progress|-use-hwthread-cpus|--use-hwthread-cpus|-use-regexp|--use-regexp|-d|--debug-devel|--debug-daemons|--debug-daemons-file|-display-devel-allocation|--display-devel-allocation|-display-devel-map|--display-devel-map|-display-diffable-map|--display-diffable-map|-display-topo|--display-topo|-launch-agent|--launch-agent|--report-state-on-timeout)
PARAM="$PARAM $1"
;;
*)
EXEC="$@"
break
;;
esac
shift # past argument or value
done
PARAM=$(echo "$PARAM" | sed -e 's/ */ /g' -e 's/^ *\(.*\) *$/\1/')
#echo "mpirun $PARAM singularity exec --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL $EXEC"
mpirun ${PARAM} singularity exec --bind /scratch --bind /apps --writable "$IMAGE_PATH_LOCAL" "$EXEC"
# !/bin/bash
if [ -z "IMAGE_PATH_LOCAL" ]; then
echo -e "\e[31mAn error occured, exiting...\e[0m"
exit 1
fi
singularity run --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL "$@"
# !/bin/bash
if [ -z "IMAGE_PATH_LOCAL" ]; then
echo -e "\e[31mAn error occured, exiting...\e[0m"
exit 1
fi
singularity shell --bind /scratch --bind /apps --writable $IMAGE_PATH_LOCAL $@
#!/bin/bash
if [ -z "IMAGE_ROOT" ] || [ -z "IMAGE_OS" ] || [ -z "IMAGE_VERSION" ]; then
echo -e "\e[31mAn error occured, exiting...\e[0m"
exit 1
fi
APPS_VERSION=$(ls -t $IMAGE_ROOT | grep .img | head -1)
LOCAL_VERSION=$(ls $HOME/.singularity/images | grep $IMAGE_OS-$IMAGE_VERSION* | head -1)
if [ "$LOCAL_VERSION" \< "$APPS_VERSION" ]; then
echo -ne "\e[33mNew version of CentOS image was found.\e[0m (\e[33mNew:\e[0m $APPS_VERSION \e[33mOld:\e[0m $LOCAL_VERSION)\nDo you want to update local copy? (\e[31mWARNING all user modification will be deleted\e[0m) [y/N]: "
read CONTINUE
if [ "$CONTINUE" == "y" ] || [ "$CONTINUE" == "Y" ]; then
echo -ne "\e[33mUpdating image \e[0m "
rsync --progress -h $IMAGE_ROOT/$APPS_VERSION $HOME/.singularity/images/$APPS_VERSION
echo -e "\e[32mNew version is ready.\e[0m ($HOME/.singularity/images/$APPS_VERSION)"
unset IMAGE_PATH_LOCAL
export IMAGE_PATH_LOCAL="$HOME/.singularity/images/$APPS_VERSION"
[ -f $HOME/.singularity/images/$LOCAL_VERSION ] && rm $HOME/.singularity/images/$LOCAL_VERSION
else
echo "Exiting..."
fi
else
echo -e "\e[33mYou already have the newest version of\e[0m $IMAGE_OS \e[33mimage.\e[0m"
fi
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
GPU_DRIVER_VERSION=390.30
GPU_DRIVER_PATH=/apps/easybuild/sources/n/NVIDIA/NVIDIA-Linux-x86_64-390.30.run
CUDA_VERSION=9.1.85
CUDA_PATH=/apps/easybuild/sources/c/CUDA/cuda_9.1.85_linux-run
MPSS_PATH=/opt/mpss
MIC_PATH=./rpm.tar.gz
SINGULARITY_BIN_PATH=/apps/all/Singularity/2.4.2/bin
IMAGE_PATH=/apps/all/OS
MODULEFILE_PATH=/apps/modules
USER_IMAGE=easybuild
LMOD_VERSION=7.7.7
export EBROOTSQUASHFSMINTOOLS=/apps/all/squashfs-tools/4.3
Bootstrap: docker
From: debian:jessie
%post
apt -y update && apt -y upgrade
apt -y install python curl wget gcc g++ make vim mc libncurses-dev rsync tclsh lua5.2 liblua5.2 gfortran ssh
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools python-graph-core python-graph-dot tabulate numpy scipy pandas wheel --upgrade
wget https://github.com/luarocks/luarocks/archive/v2.4.2.tar.gz
tar xvf v2.4.2.tar.gz
cd luarocks-2.4.2
./configure
make build
make install
mkdir ~/.luarocks
echo "fs_use_modules = false" > ~/.luarocks/config.lua
luarocks install luaposix
luarocks install luafilesystem
LUAROCKS_PREFIX=/usr/local
export LUA_PATH="$LUAROCKS_PREFIX/share/lua/5.1/?.lua;$LUAROCKS_PREFIX/share/lua/5.1/?/init.lua;;"
export LUA_CPATH="$LUAROCKS_PREFIX/lib/lua/5.1/?.so;;"
echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make install
cd /bin
rm sh && ln -s /bin/bash sh
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
mkdir /apps
mkdir /scratch
%environment
. /apps/all/Lmod/7.7.7/lmod/lmod/init/profile
ml purge --force
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
export -f clearMT
Bootstrap: docker
From: fedora:latest
%post
yum -y update && yum -y upgrade
# CentOS repo
yum -y groupinstall "Development Tools"
yum -y install python gcc gcc-c++ gcc-gfortran make wget vim mc procps tcl pkg-config lua tolua++ lua-posix lua-logging lua-sql lua-socket lua-filesystem lua-sec lua-json lua-term
# Fedora repo
yum -y install bash-completion pigz tmux
cd /tmp
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.0.tar.gz
tar xvf openmpi-2.1.0.tar.gz && cd openmpi-2.1.0
./configure --prefix=/usr/local
make -j 14
make install
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
ln -s /apps/all/Lmod/7.7.7/lmod/etc /opt/apps/lmod/etc
# pip
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools --upgrade
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
mkdir /apps
mkdir /scratch
%environment
. /opt/apps/lmod/7.7.7/init/profile
ml purge --force
export -f ml
export -f module
export -f clearMT
Bootstrap: docker
From: ubuntu:latest
%post
apt -y update && apt -y upgrade
apt -y install python curl wget gcc g++ make vim mc libncurses-dev rsync tclsh lua5.2 liblua5.2 gfortran ssh
curl -s -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
pip install setuptools python-graph-core python-graph-dot tabulate numpy scipy pandas wheel --upgrade
wget https://github.com/luarocks/luarocks/archive/v2.4.2.tar.gz
tar xvf v2.4.2.tar.gz
cd luarocks-2.4.2
./configure
make build
make install
mkdir ~/.luarocks
echo "fs_use_modules = false" > ~/.luarocks/config.lua
luarocks install luaposix
luarocks install luafilesystem
LUAROCKS_PREFIX=/usr/local
export LUA_PATH="$LUAROCKS_PREFIX/share/lua/5.1/?.lua;$LUAROCKS_PREFIX/share/lua/5.1/?/init.lua;;"
export LUA_CPATH="$LUAROCKS_PREFIX/lib/lua/5.1/?.so;;"
echo "# !/bin/bash" > /bin/logger
echo "exit 0" >> /bin/logger
chmod +x /bin/logger
# OpenMPI
wget https://www.open-mpi.org/software/ompi/v2.1/downloads/openmpi-2.1.1.tar.gz
tar xvf openmpi-2.1.1.tar.gz && cd openmpi-2.1.1
./configure --prefix=/usr/local
make -j 14
make install
cd /bin
rm sh && ln -s /bin/bash sh
rm /tmp/get-pip.py /tmp/openmpi-2.1.0.tar.gz -rf
%environment
. /apps/all/Lmod/7.7.7/lmod/lmod/init/profile
ml purge --force
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
export -f ml
export -f module
export -f clearMT
This diff is collapsed.
help([[
Description
===========
The CentOS Project is a community-driven free software effort focused on delivering a robust open source ecosystem. For users, we offer a consistent manageable platform that suits a wide variety of deployments. For open source communities, we offer a solid, predictable base to build upon, along with extensive resources to build, test, release, and maintain their code.
We’re also expanding the availability of CentOS images across a number of vendors, providing official images for Amazon, Google, and more. For self-hosted cloud, we also provide a generic cloud-init enabled image.
For more information about updates and improvements in CentOS 7, please check out the release notes or the release announcement in the mailing list archive.
More information
================
- Homepage: https://www.centos.org/
]])
whatis([[Description: The CentOS Project is a community-driven free software effort focused on delivering a robust open source ecosystem. For users, we offer a consistent manageable platform that suits a wide variety of deployments. For open source communities, we offer a solid, predictable base to build upon, along with extensive resources to build, test, release, and maintain their code.
We’re also expanding the availability of CentOS images across a number of vendors, providing official images for Amazon, Google, and more. For self-hosted cloud, we also provide a generic cloud-init enabled image.
For more information about updates and improvements in CentOS 7, please check out the release notes or the release announcement in the mailing list archive.
]])
whatis([[Homepage: https://www.centos.org/]])
help([[
Description
===========
The CentOS Project is a community-driven free software effort focused on delivering a robust open source ecosystem. For users, we offer a consistent manageable platform that suits a wide variety of deployments. For open source communities, we offer a solid, predictable base to build upon, along with extensive resources to build, test, release, and maintain their code.
We’re also expanding the availability of CentOS images across a number of vendors, providing official images for Amazon, Google, and more. For self-hosted cloud, we also provide a generic cloud-init enabled image.
For more information about updates and improvements in CentOS 7, please check out the release notes or the release announcement in the mailing list archive.
More information
================
- Homepage: https://www.centos.org/
]])
whatis([[Description: The CentOS Project is a community-driven free software effort focused on delivering a robust open source ecosystem. For users, we offer a consistent manageable platform that suits a wide variety of deployments. For open source communities, we offer a solid, predictable base to build upon, along with extensive resources to build, test, release, and maintain their code.
We’re also expanding the availability of CentOS images across a number of vendors, providing official images for Amazon, Google, and more. For self-hosted cloud, we also provide a generic cloud-init enabled image.
For more information about updates and improvements in CentOS 7, please check out the release notes or the release announcement in the mailing list archive.
]])
whatis([[Homepage: https://www.centos.org/]])
# !/bin/bash
# load config
. ../CONFIG
IMAGE=$1
VERSION=$2
OMPI=$3
# 1 ... classic, 2 ... gpu, 3 ... mic
TYPE=$4
VERSION2=$VERSION
if [ "$TYPE" == 1 ]; then
NAME="$VERSION.lua"
elif [ "$TYPE" == 2 ]; then
NAME="$VERSION-GPU.lua"
VERSION2="$VERSION-GPU"
elif [ "$TYPE" == 3 ]; then
NAME="$VERSION-MIC.lua"
VERSION2="$VERSION-MIC"
else
echo "Image TYPE is unsupported, exiting..."
exit 1
fi
if [ "$IMAGE" == "CentOS" ]; then
if [ "$VERSION" == "6.9" ]; then
PATH="./centos/6.9"
elif [ "$VERSION" == "7.4" ]; then
PATH="./centos/7.4"
else
echo "Unsupported OS Version"
exit 1
fi
elif [ "$IMAGE" == "Fedora" ]; then
PATH="./fedora/template"
elif [ "$IMAGE" == "Debian" ]; then
PATH="./debian/template"
elif [ "$IMAGE" == "Ubuntu" ]; then