Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Singularity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IMGW
Singularity
Commits
0ec2582f
Commit
0ec2582f
authored
1 year ago
by
Maximilian Meindl
Browse files
Options
Downloads
Patches
Plain Diff
Upload ICON.def
parent
9d295301
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
models/ICON/ICON.def
+50
-0
50 additions, 0 deletions
models/ICON/ICON.def
with
50 additions
and
0 deletions
models/ICON/ICON.def
0 → 100644
+
50
−
0
View file @
0ec2582f
BootStrap: localimage
From: /home/maximilian/ubuntu-mpi.img
%labels
maintainer IT-IMGW <it.img-wien@univie.ac.at>
%post
# set noninteractive installation
export DEBIAN_FRONTEND=noninteractive
# Install building tools and ICON dependencies:
apt update -y \
&& apt install -y \
python3 \
libhdf5-dev \
libnetcdf-dev \
libnetcdff-dev \
libeccodes-dev \
libblas-dev \
liblapack-dev \
libxml2-dev
# Select the compiler:
#update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 50 \
# --slave /usr/bin/gfortran gfortran /usr/bin/gfortran-6
# The command above can be reverted as follows:
# sudo update-alternatives --remove gcc /usr/bin/gcc-6
# Select MPI libraries and compiler wrappers
# update-alternatives --set mpi /usr/include/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,
# try the interactive analogues:
# sudo update-alternatives --config mpirun
# sudo update-alternatives --config mpi
# Install optional tools:
apt install -y ksh cdo
# set timezone manually
ln -fs /usr/share/zoneinfo/UTC /etc/localtime
dpkg-reconfigure --frontend noninteractive tzdata
%environment
# What do we need to build ICON?
export INCLUDE=/usr/include/x86_64-linux-gnu
export LIBRARY=/usr/lib/x86_64-linux-gnu
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment