This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSingularity.tutorial
52 lines (47 loc) · 1.98 KB
/
Singularity.tutorial
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
BootStrap: library
From: jcsda/public/jedi-gnu-openmpi-dev:latest
%labels
MAINTAINER Mark Miesch
SPECIES JEDI
%environment
TERM=xterm
export TERM
GIT_MERGE_AUTOEDIT=no
export GIT_MERGE_AUTOEDIT
export LANG=en_US.UTF-8
export LANGUAGE=en_US:en
export PATH=/usr/local/bin:/usr/local/miniconda3/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/jedi/build/bin:/opt/PanoplyJ
alias pip=/usr/local/miniconda3/bin/pip
%post
echo "Hello from inside the container"
apt-get update
apt-get install -y --no-install-recommends mesa-utils libgl1-mesa-glx
git config --global credential.helper 'cache --timeout=3600'
git config --global --add credential.helper 'store'
git config --global url.ssh://git@github.com/.insteadOf https://github.com/
git lfs install --skip-repo
cd /opt/jedi
git clone -b 1.1.1 https://github.com/jcsda/fv3-bundle.git
cd fv3-bundle
git clone https://github.com/JCSDA/jedi-cmake.git -b 1.1.0 --depth=1
git clone https://github.com/JCSDA/oops.git -b 1.1.0 --depth=1
git clone https://github.com/JCSDA/saber.git -b 1.1.0 --depth=1
git clone https://github.com/JCSDA/ioda.git -b 2.0.0 --depth=1
git clone https://github.com/JCSDA/ufo.git -b 1.1.0 --depth=1
git clone https://github.com/JCSDA/femps.git -b 1.1.0 --depth=1
git clone https://github.com/JCSDA/crtm.git -b v2.3-jedi.0 --depth=1
git clone https://github.com/JCSDA/fv3-jedi-linearmodel.git -b 1.1.0 --depth=1 fv3-jedi-lm
git clone https://github.com/JCSDA/fv3-jedi.git -b 1.1.0 --depth=1
mkdir -p /opt/jedi/build
cd /opt/jedi/build
ecbuild --build=Release -DBUILD_PYTHON_BINDINGS=ON ../fv3-bundle
chmod a+rx /opt/jedi/fv3-bundle/ioda/src/engines/Examples/Python/*
make -j4
ctest -R get_
cd /opt/jedi
git clone -b 1.1.0 --depth=1 https://github.com/jcsda-internal/fv3-jedi-tools
cd fv3-jedi-tools
/usr/local/miniconda3/bin/pip install .
rm -rf /var/lib/apt/lists/*
%runscript
bash -l