-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathSingularity
46 lines (35 loc) · 1.19 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright (c) 2022 NVIDIA Corporation. All rights reserved.
Bootstrap: docker
FROM: nvcr.io/nvidia/nvhpc:22.7-devel-cuda_multi-ubuntu20.04
%environment
export XDG_RUNTIME_DIR=
export PATH="$PATH:/usr/local/bin:/opt/anaconda3/bin:/usr/bin"
%post
build_tmp=$(mktemp -d) && cd ${build_tmp}
apt-get -y update
apt-get -y dist-upgrade
DEBIAN_FRONTEND=noninteractive apt-get -yq install --no-install-recommends \
m4 vim-nox emacs-nox nano zip\
python3-pip python3-setuptools git-core inotify-tools \
curl git-lfs \
build-essential
rm -rf /var/lib/apt/cache/*
pip3 install --upgrade pip
apt-get update -y
apt-get -y install git nvidia-modprobe
pip3 install jupyterlab
pip3 install ipywidgets
pip3 install jupyter netcdf4
apt-get install --no-install-recommends -y build-essential
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/anaconda3
rm Miniconda3-latest-Linux-x86_64.sh
/opt/anaconda3/bin/conda install -y -q netcdf4
cd /
rm -rf ${build_tmp}
%files
_profiler/ /labs
%runscript
"$@"
%labels
AUTHOR mozhgank