forked from icaoberg/singularity-compression
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Singularity
38 lines (31 loc) · 1.22 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
Bootstrap: docker
From: ubuntu:16.04
IncludeCmd: yes
%labels
MAINTAINER icaoberg
EMAIL [email protected]
WEBSITE http://linus.cbd.cs.cmu.edu
VERSION v1.0
%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/murphylab ]; then mkdir -p /projects/murphylab; 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
####################################################################################
%apprun unrar
unrar "$@"
####################################################################################
%apprun rar
rar "$@"
####################################################################################
%apprun 7z
7z "$@"