-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity
52 lines (41 loc) · 1.34 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
47
48
49
50
51
52
Bootstrap: docker
From: ubuntu:16.04
IncludeCmd: yes
%labels
MAINTAINER icaoberg
EMAIL [email protected]
WEBSITE http://linus.cbd.cs.cmu.edu
VERSION v1.0
%runscript
exec /usr/bin/python "$@"
%post
/usr/bin/apt-get update && /usr/bin/apt-get -y upgrade
/usr/bin/apt-get -y install module-init-tools
/usr/bin/apt-get update --fix-missing
/usr/bin/apt-get install -y --no-install-recommends apt-utils
/usr/bin/apt-get install -y build-essential
/usr/bin/apt-get install -y rar unrar p7zip-full
if [ ! -d /images ]; then mkdir /images; fi
if [ ! -d /projects ]; then mkdir /projects; fi
if [ ! -d /containers ]; then mkdir /containers; fi
if [ ! -d /share ]; then mkdir /share; fi
if [ ! -d /scratch ]; then mkdir /scratch; fi
if [ ! -d /webservers/pfenningweb ]; then mkdir -p /webservers/pfenningweb; fi
####################################################################################
%appenv unrar
BEST_APP=unrar
export BEST_APP
%apprun unrar
unrar "$@"
####################################################################################
%appenv rar
BEST_APP=rar
export BEST_APP
%apprun rar
rar "$@"
####################################################################################
%appenv 7z
BEST_APP=7z
export BEST_APP
%apprun 7z
7z "$@"