Commit b4723bfe authored by Greg Becker's avatar Greg Becker

Initial commit of spack tutorial dockerfile and artifacts

parents
build_cache
*~
#*#
FROM ubuntu:16.04
RUN mkdir /mirror
COPY build_cache /mirror/build_cache
COPY public.key /mirror/public.key
#COPY sc-tutorial-sysconfig/packages.yaml /etc/spack/packages.yaml
#RUN chmod -R go+r /etc/spack
RUN chmod -R go+r /mirror
RUN apt-get -yqq update && apt-get -yqq install ca-certificates
RUN apt-get -yqq update \
&& apt-get -yqq install \
ca-certificates curl g++ \
gcc-4.7 g++-4.7 gfortran-4.7 \
gcc gfortran git gnupg2 \
iproute2 make \
openssh-server python python-pip tcl \
clang clang-3.7 emacs unzip \
autoconf
# copy in scripts to test container
COPY tutorial-test.sh /tutorial/.test/tutorial-test.sh
RUN chmod -R go+rx /tutorial/.test/tutorial-test.sh
RUN useradd -ms /bin/bash spack
USER spack
WORKDIR /home/spack
CMD ["bash"]
File added
#!/bin/bash -e
working_dir=~/testing
# make working ir
echo started in `pwd`
rm -rf $working_dir
mkdir $working_dir
cd $working_dir
# clean up spack configuration
echo entered `pwd`
rm -rf ~/.spack/*
# clone a new spack
git clone https://github.com/spack/spack
cd spack
git checkout releases/v0.12
# shell init
. share/spack/setup-env.sh
which spack
# run tutorial commands
# For basic usage section
spack install zlib
spack mirror add tutorial /mirror
spack gpg trust /mirror/public.key
spack install zlib %clang
spack install zlib @1.2.8
spack install zlib %gcc@4.7
spack install zlib @1.2.8 cppflags=-O3
spack find
spack find -lf
spack install tcl
spack install tcl ^zlib @1.2.8 %clang
spack install tcl ^/64mn
spack find -ldf
spack install hdf5
spack install hdf5~mpi
spack install hdf5+hl+mpi ^mpich
spack find -ldf
spack graph hdf5+hl+mpi ^mpich
spack install trilinos
spack install trilinos +hdf5 ^hdf5+hl+mpi ^mpich
spack find -d trilinos
spack graph trilinos
spack find -d tcl
spack find zlib
spack find -lf zlib
spack find ^mpich
spack find cppflags=-O3
spack find -px
spack install gcc@7.2.0
spack find -p gcc
spack compiler add `spack location -i gcc@7.2.0`
spack compiler remove gcc@7.2.0
# Packagin
spack install mpileaks
# Modules
spack install lmod
source `spack location -i lmod`/lmod/7.8/init/bash
spack compiler add `spack location -i gcc@7.2.0`
spack install netlib-scalapack ^openmpi ^openblas %gcc@7.2.0
spack install netlib-scalapack ^openmpi ^netlib-lapack %gcc@7.2.0
spack install netlib-scalapack ^mpich ^openblas %gcc@7.2.0
spack install netlib-scalapack ^mpich ^netlib-lapack %gcc@7.2.0
spack install py-scipy ^openblas %gcc@7.2.0
spack compiler remove gcc@7.2.0
# Advanced packaging
spack install netlib-lapack
spack install mpich
spack install openmpi
spack install --only=dependencies armadillo ^openblas
spack install --only=dependencies elpa
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