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

add Salomon

parent d3463393
......@@ -16,10 +16,10 @@ yum -y install acl acpid alsa-lib alsa-lib-devel amtu apr aspell at atk atk-deve
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
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 -j 16
make install
# pip
......
This diff is collapsed.
......@@ -16,10 +16,10 @@ yum -y install acl acpid alsa-lib alsa-lib-devel amtu apr aspell at atk atk-deve
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
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 -j 16
make install
# pip
......
This diff is collapsed.
Bootstrap: docker
From: ubuntu:latest
%setup
cp /opt/mpss /tmp -R
cp ./rpm.tar.gz /tmp0
%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
# 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
# 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 16
make install
# APPS and SCRATCH
mkdir /apps
mkdir /scratch
cd /bin
rm sh && ln -s /bin/bash sh
# mpss
mv /tmp/mpss /opt/mpss
find /opt -exec chmod 0755 {} \;
cd /tmp
tar xvf rpm.tar.gz
cd rpm
rpm -i *.rpm
%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
......@@ -266,7 +266,7 @@ do
done
if [ -f "image.img" ]; then
mkdir -p "$IMAGE_PATH/$IMAGE/$VERSION$TYPE/"
mkdir -p "$IMAGE_PATH/$IMAGE/$VERSION$TYPE/" && chmod 0755 $IMAGE_PATH/$IMAGE/$VERSION$TYPE/ -R && chown $USER_IMAGE:$USER_IMAGE $IMAGE_PATH/$IMAGE/$VERSION$TYPE/ -R
echo -n "Copy image to $IMAGE_PATH/$IMAGE/$VERSION$TYPE/$IMAGE-$VERSION${TYPE}_${DATE}.img .......................................... ["
mv image.img "$IMAGE_PATH/$IMAGE/$VERSION$TYPE/$IMAGE-$VERSION${TYPE}_${DATE}.img" || ( echo -e "\e[31mFALSE\e[0m]" && exit 1 ) && echo -e "\e[32mOK\e[0m]"
echo -n "chown $USER_IMAGE:$USER_IMAGE $IMAGE_PATH/$IMAGE/$VERSION$TYPE/$IMAGE-$VERSION${TYPE}_${DATE}.img .............................. ["
......
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