forked from nugraph/nugraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuml.def
More file actions
28 lines (24 loc) · 802 Bytes
/
numl.def
File metadata and controls
28 lines (24 loc) · 802 Bytes
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
Bootstrap: docker
From: ubuntu:22.04
%files
numl.yaml /opt/numl.yaml
%post
apt-get -y update
apt-get -y upgrade
apt-get -y install wget
wget https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh
bash Miniforge3-$(uname)-$(uname -m).sh -b -p /opt/miniforge3
rm Miniforge3-$(uname)-$(uname -m).sh
. /opt/miniforge3/etc/profile.d/conda.sh
conda activate
conda env create -p /opt/numl -f /opt/numl.yaml
rm /opt/numl.yaml
%environment
. /opt/miniforge3/etc/profile.d/conda.sh
conda activate /opt/numl
export PYTHONPATH=/nugraph/pynuml:/nugraph/nugraph:$PYTHONPATH
export NUGRAPH_DIR=/nugraph
export NUGRAPH_DATA=/data
export NUGRAPH_LOG=/log
%runscript
/nugraph/scripts/process.py $@