forked from openhackathons-org/End-to-End-AI-for-Science
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity
executable file
·31 lines (25 loc) · 1.16 KB
/
Singularity
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
# Copyright (c) 2023 NVIDIA Corporation. All rights reserved.
# To build this : $ singularity build --fakeroot --sandbox End-to-End-AI-for-Science.sif Singularity
# To Run this : $ singularity run --writable --nv End-to-End-AI-for-Science.simg jupyter-lab --no-browser --allow-root --ip=0.0.0.0 --port=8888 --NotebookApp.token="" --notebook-dir=/workspace/python
Bootstrap: docker
FROM: nvcr.io/nvidia/modulus/modulus:23.08
%environment
%post
pip3 install gdown cdsapi
pip3 install wandb ruamel.yaml netCDF4 mpi4py cdsapi
pip3 install --upgrade nbconvert
python3 /workspace/python/source_code/dataset.py
python3 /workspace/python/source_code/fourcastnet/decompress.py
rm -rf /workspace/python/source_code/fourcastnet/pre_data
apt update
apt install -y gdb unzip libatomic1 ca-certificates libglu1-mesa libsm6 libegl1 libgomp1 python3 gcc g++ make binutils libxrandr-dev
apt install -y libnvidia-gl-525
apt install -y ffmpeg
bash /workspace/python/source_code/omniverse/get-kit.sh
chmod +x /workspace/python/source_code/omniverse/*.sh
%files
workspace/* /workspace/
%runscript
"$@"
%labels
AUTHOR aswkumar