Skip to content
Snippets Groups Projects
Commit 6e08d1e7 authored by Michael Blaschek's avatar Michael Blaschek :bicyclist:
Browse files

LC update, ICON ubuntu 20.04

parent a069b45f
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ From: almalinux:8 ...@@ -18,6 +18,7 @@ From: almalinux:8
echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS" echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS"
%environment %environment
export LC_ALL=C
export LANG=C.UTF-8 export LANG=C.UTF-8
export LIBRARY=/usr/lib64:/lib64:/lib export LIBRARY=/usr/lib64:/lib64:/lib
export INCLUDE=/usr/include export INCLUDE=/usr/include
\ No newline at end of file
...@@ -27,6 +27,7 @@ From: almalinux:8 ...@@ -27,6 +27,7 @@ From: almalinux:8
echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS" echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS"
%environment %environment
export LC_ALL=C
export LANG=C.UTF-8 export LANG=C.UTF-8
export LIBRARY=/usr/lib64:/lib64:/lib export LIBRARY=/usr/lib64:/lib64:/lib
export INCLUDE=/usr/include export INCLUDE=/usr/include
\ No newline at end of file
...@@ -53,6 +53,8 @@ From: almalinux:8 ...@@ -53,6 +53,8 @@ From: almalinux:8
echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS" echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS"
%environment %environment
export LC_ALL=C
export LANG=C.UTF-8
export LIBRARY=/usr/lib64:/lib64:/lib export LIBRARY=/usr/lib64:/lib64:/lib
export INCLUDE=/usr/lib64/gfortran/modules:/usr/include export INCLUDE=/usr/lib64/gfortran/modules:/usr/include
...@@ -48,6 +48,8 @@ From: almalinux:8 ...@@ -48,6 +48,8 @@ From: almalinux:8
echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS" echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS"
%environment %environment
export LC_ALL=C
export LANG=C.UTF-8
# need to add openmpi to PATH # need to add openmpi to PATH
export PATH=/usr/lib64/openmpi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin export PATH=/usr/lib64/openmpi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
export LIBRARY=/usr/lib64/openmpi/lib:/usr/lib64:/lib64:/lib export LIBRARY=/usr/lib64/openmpi/lib:/usr/lib64:/lib64:/lib
......
...@@ -69,6 +69,8 @@ From: almalinux:8 ...@@ -69,6 +69,8 @@ From: almalinux:8
spack gc -y spack gc -y
%environment %environment
export LC_ALL=C
export LANG=C.UTF-8
export SPACK_ROOT=/opt/spack export SPACK_ROOT=/opt/spack
export DEBIAN_FRONTEND=noninteractive export DEBIAN_FRONTEND=noninteractive
......
...@@ -18,6 +18,7 @@ From: ubuntu:18.04 ...@@ -18,6 +18,7 @@ From: ubuntu:18.04
echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS" echo "linux $(cat /etc/os-release | grep PRETTY_NAME | cut -d'=' -f2)" >> "$SINGULARITY_LABELS"
%environment %environment
export LC_ALL=C
export LANG=C.UTF-8 export LANG=C.UTF-8
export LIBRARY=/usr/lib64:/lib64:/lib export LIBRARY=/usr/lib64:/lib64:/lib
export INCLUDE=/usr/include export INCLUDE=/usr/include
\ No newline at end of file
Bootstrap: docker Bootstrap: docker
From: ubuntu:18.04 From: ubuntu:20.04
%labels %labels
maintainer IT-IMGW <it.img-wien@univie.ac.at> maintainer IT-IMGW <it.img-wien@univie.ac.at>
%post %post
# set noninteractive installation
export DEBIAN_FRONTEND=noninteractive
# Install building tools and ICON dependencies: # Install building tools and ICON dependencies:
apt install -y \ apt update -y \
&& apt install -y \
build-essential \ build-essential \
python3 \ python3 \
gcc-6 \ gcc \
gfortran-6 \ gfortran \
libopenmpi-dev \ libopenmpi-dev \
libmpich-dev \
libhdf5-dev \ libhdf5-dev \
libnetcdf-dev \ libnetcdf-dev \
libnetcdff-dev \ libnetcdff-dev \
...@@ -21,16 +23,19 @@ apt install -y \ ...@@ -21,16 +23,19 @@ apt install -y \
liblapack-dev \ liblapack-dev \
libxml2-dev libxml2-dev
# Select the compiler: # Select the compiler:
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 50 \ #update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 50 \
--slave /usr/bin/gfortran gfortran /usr/bin/gfortran-6 # --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-6
# The command above can be reverted as follows: # The command above can be reverted as follows:
# sudo update-alternatives --remove gcc /usr/bin/gcc-6 # sudo update-alternatives --remove gcc /usr/bin/gcc-6
# Select MPI libraries and compiler wrappers # Select MPI libraries and compiler wrappers
update-alternatives --set mpi /usr/include/mpich # update-alternatives --set mpi /usr/include/mpich
update-alternatives --set mpirun /usr/bin/mpirun.mpich # update-alternatives --set mpirun /usr/bin/mpirun.mpich
# update-alternatives --set mpi /usr/lib/x86_64-linux-gnu/openmpi/include
# update-alternatives --set mpirun /usr/bin/mpirun.openmpi
# If the two non-interactive commands above do not work, # If the two non-interactive commands above do not work,
# try the interactive analogues: # try the interactive analogues:
...@@ -40,5 +45,11 @@ update-alternatives --set mpirun /usr/bin/mpirun.mpich ...@@ -40,5 +45,11 @@ update-alternatives --set mpirun /usr/bin/mpirun.mpich
# Install optional tools: # Install optional tools:
apt install -y ksh cdo apt install -y ksh cdo
# set timezone manually
ln -fs /usr/share/zoneinfo/UTC /etc/localtime
dpkg-reconfigure --frontend noninteractive tzdata
%environment %environment
#What do we need to build ICON? # What do we need to build ICON?
\ No newline at end of file export INCLUDE=/usr/include/x86_64-linux-gnu
export LIBRARY=/usr/lib/x86_64-linux-gnu
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment