Commit 7dbff8b3 authored by Andreas Gocht's avatar Andreas Gocht

inital recepies

parents
Bootstrap: docker
From: debian:testing
%runscript
echo "This is what happens when you run the container..."
%post
echo "Hello from inside the container"
#sed -i 's/$/ universe/' /etc/apt/sources.list
apt-get update
apt-get dist-upgrade -y
apt-get -y install vim
# build environment
apt-get -y install wget curl
apt-get -y install build-essential make g++ gfortran
apt-get -y install openmpi-bin
apt-get -y install openmpi-common
apt-get -y install git
apt-get -y install subversion
apt-get -y install cmake
apt-get -y install python
gcc --version
mkdir /apps
###################################
# install scorep
###################################
# scorep requirements
apt-get -y install libopenmpi-dev zlib1g-dev autotools-dev automake autoconf
apt-get -y install gcc-7-plugin-dev
apt-get -y install flex bison
cd /apps
svn co --username scorep --password foo42bar https://silc.zih.tu-dresden.de/svn/hooks-root/afs-dev/tags/REL-05/
cd REL-05/
./install-scorep-dev.05.sh --prefix=/usr/local
export PATH=/usr/local/bin:$PATH
cd /apps
svn co --username scorep --password foo42bar https://silc.zih.tu-dresden.de/svn/silc-root/trunk scorep
cd scorep
./bootstrap
mkdir build
cd build
../configure '--prefix=/usr/' \
'--with-libbfd=no' \
'--with-libhdf5=no'\
'--with-nocross-compiler-suite=gcc' \
'--with-mpi=openmpi' \
'--without-gui' \
'--disable-silent-rules' \
'--enable-backend-test-runs' \
'--enable-static=no' \
'--enable-shared=yes' \
'--enable-debug' \
'CFLAGS=-g' \
'CXXFLAGS=-g'
make -j 4
make install
###################################
# scorep python tracing
###################################
apt-get -y install python-dev
cd /apps
git clone https://github.com/score-p/scorep_binding_python
cd scorep_binding_python
git checkout mpi2
python setup.py install
###################################
# espressopp
###################################
apt-get -y install libfftw3-dev
apt-get -y install python-mpi4py
apt-get -y install libboost-dev libboost-mpi-dev libboost-python-dev libboost-serialization-dev libboost-system-dev libboost-filesystem-dev
apt-get -y install python-numpy
cd /apps
git clone https://github.com/espressopp/espressopp.git
cd espressopp
mkdir build
cd build
SCOREP_WRAPPER=off cmake -DEXTERNAL_BOOST=ON -DEXTERNAL_MPI4PY=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_COMPILER='scorep-mpicxx' -DCMAKE_Fortran_COMPILER='scorep-mpif90' -DCMAKE_C_COMPILER='scorep-mpicc' ..
make -j 4
make install
Bootstrap: docker
From: ubuntu:16.04
%runscript
echo "This is what happens when you run the container..."
%post
echo "Hello from inside the container"
#sed -i 's/$/ universe/' /etc/apt/sources.list
apt-get update
apt-get dist-upgrade -y
apt-get -y install vim
# build environment
apt-get -y install wget curl
apt-get -y install build-essential make g++ gfortran
apt-get -y install openmpi-bin
apt-get -y install openmpi-common
apt-get -y install git
apt-get -y install cmake
apt-get -y install python
gcc --version
mkdir /apps
###################################
# install scorep
###################################
# scorep requirements
apt-get -y install libopenmpi-dev zlib1g-dev
apt-get -y install gcc-5-plugin-dev
cd /apps
[ ! -f scorep-3.1.tar.gz ] && wget http://www.vi-hps.org/upload/packages/scorep/scorep-3.1.tar.gz
tar -xf scorep-3.1.tar.gz
cd scorep-3.1
[ -d build ] && rm -rf build
mkdir build
cd build
../configure '--prefix=/usr/' \
'--with-libbfd=no' \
'--with-libhdf5=no'\
'--with-nocross-compiler-suite=gcc' \
'--with-mpi=openmpi' \
'--without-gui' \
'--disable-silent-rules' \
'--enable-backend-test-runs' \
'--enable-static=no' \
'--enable-shared=yes' \
'--enable-debug' \
'CFLAGS=-g' \
'CXXFLAGS=-g'
make -j 4
make install
###################################
# scorep python tracing
###################################
apt-get -y install python-dev
cd /apps
git clone https://github.com/score-p/scorep_binding_python
cd scorep_binding_python
git checkout binutils_2.26.1
python setup.py install
###################################
# espressopp
###################################
apt-get -y install libfftw3-dev
apt-get -y install python-mpi4py
apt-get -y install libboost-dev libboost-mpi-dev libboost-python-dev libboost-serialization-dev libboost-system-dev libboost-filesystem-dev
apt-get -y install python-numpy
cd /apps
git clone https://github.com/espressopp/espressopp.git
cd espressopp
mkdir build
cd build
SCOREP_WRAPPER=off cmake -DEXTERNAL_BOOST=ON -DEXTERNAL_MPI4PY=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_CXX_COMPILER='scorep-mpicxx' -DCMAKE_Fortran_COMPILER='scorep-mpif90' -DCMAKE_C_COMPILER='scorep-mpicc' ..
export SCOREP_WRAPPER_COMPILER_FLAGS='-Wl,-no-as-needed'
make -j 4
make install
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