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-test
62 lines (56 loc) · 2.42 KB
/
Singularity.tutorial-test
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
52
53
54
55
56
57
58
59
60
61
BootStrap: library
From: jcsda/public/jedi-gnu-openmpi-dev:latest
%labels
MAINTAINER Mark Miesch
SPECIES JEDI
%files
ssh-key/github_academy_rsa /root/github_academy_rsa
%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
mkdir -p /root/.ssh
mv /root/github_academy_rsa /root/.ssh/github_academy_rsa
eval "$(ssh-agent -s)"
ssh-add /root/.ssh/github_academy_rsa
ssh -T -o "StrictHostKeyChecking=no" [email protected] || mkdir -p /opt/jedi
git config --global credential.helper 'cache --timeout=3600'
git config --global --add credential.helper 'store'
git config --global url.ssh://[email protected]/.insteadOf https://github.com/
git lfs install --skip-repo
cd /opt/jedi
git clone -b release/1.1.0 [email protected]:jcsda/fv3-bundle.git
cd fv3-bundle
git clone [email protected]:JCSDA-internal/jedi-cmake.git -b release/1.1.0 --depth=1
git clone [email protected]:JCSDA-internal/oops.git -b release/1.1.0 --depth=1
git clone [email protected]:JCSDA-internal/saber.git -b release/1.1.0 --depth=1
git clone [email protected]:JCSDA-internal/ioda.git -b release/2.0.0 --depth=1
git clone [email protected]:JCSDA-internal/ufo.git -b release/1.1.0 --depth=1
git clone [email protected]:JCSDA-internal/femps.git -b release/1.1.0 --depth=1
git clone [email protected]:jcsda/crtm.git -b v2.3-jedi.0 --depth=1
git clone [email protected]:JCSDA-internal/fv3-jedi-linearmodel.git -b release/1.1.0 --depth=1 fv3-jedi-lm
git clone [email protected]:JCSDA-internal/fv3-jedi.git -b release/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 https://github.com/jcsda-internal/fv3-jedi-tools
cd fv3-jedi-tools
git checkout release/1.1.0
/usr/local/miniconda3/bin/pip install .
rm /root/.ssh/github_academy_rsa
rm -rf /var/lib/apt/lists/*
%runscript
bash -l