-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsingularity.def
39 lines (33 loc) · 1.19 KB
/
singularity.def
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
BootStrap: library
From: ubuntu:22.04
%post
apt-get -y update
apt-get -y install software-properties-common
add-apt-repository universe
apt-get -y update
apt-get -y install cmake git wget gcc g++ pkg-config libpcre3-dev libpcre3 autoconf bsdmainutils attr
git clone https://github.com/mar-file-system/GUFI.git
cd GUFI
git checkout -b build 226b604f4687ac055bde16f0d59742ad472fdb44 # to get older CLI options used in the reports
mkdir build
cd build
cmake ..
make
make install
cp /etc/GUFI/config.example /etc/GUFI/config
sed -i -e 's/IndexRoot/#IndexRoot/' /etc/GUFI/config
sed -i -e 's/Threads/#Threads/' /etc/GUFI/config
echo "IndexRoot=/tmp/GUFI" >> /etc/GUFI/config
echo "Threads=12" >> /etc/GUFI/config
cd /
git clone https://github.com/umich-arc/gufi-archive.git
%environment
export PATH=/gufi-archive/reports:${PATH}
%runscript
echo "Run as:"
echo "singularity exec singuarity.sif"
%labels
Author brockp@umich.edu 2022 Hacks with Friends Group
URL https://github.com/umich-arc/gufi-archive
%help
Reporitng on filesystem state for purposes of archiving or removing unneeded data from primary storage