-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfastsim.def
More file actions
42 lines (33 loc) · 973 Bytes
/
fastsim.def
File metadata and controls
42 lines (33 loc) · 973 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
BootStrap: library
From: vrastil/default/fastsim
%help
Contains necessary packages and libraries to build and run FastSim (https://github.com/vrastil/FastSim).
%post
# set number of parallel jobs
NPROCESSES=16
###########
# FastSim #
###########
mkdir /data && cd /data
git clone https://github.com/vrastil/FastSim.git && cd FastSim
git submodule update --init --recursive
mkdir build && cd build
cmake ..
# multi-process can fail
make -j $NPROCESSES > /dev/null 2>&1 || make
make install
############
# Clean-up #
############
ldconfig
cd /data
rm -rf *
apt-get clean
# get basic aliases and color prompt
cd /data && wget -O /data/.bashrc -o /dev/null https://raw.githubusercontent.com/vrastil/Containers/master/utils/.bashrc && chmod +x /data/.bashrc
%environment
. /data/.bashrc
%apprun fastsim
FastSim $@
%apprun jupyter
jupyter notebook --ip='0.0.0.0' $@