-
Notifications
You must be signed in to change notification settings - Fork 1
/
Singularity.sierrapy
executable file
·37 lines (27 loc) · 1.14 KB
/
Singularity.sierrapy
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
Bootstrap: docker
From: alpine:3.8
%post
apk update
apk upgrade
apk add bash bzip2-dev g++ gcc libc-dev make ncurses-dev xz-dev zlib-dev musl-dev perl-app-cpanminus perl-dev tzdata
apk add curl freetype-dev libpng-dev python2 python2-dev py2-pip
apk add perl-path-tiny perl-json perl-data-dumper perl-file-slurp perl-datetime perl-datetime-timezone
pip install sierrapy
# No idea why this wants to be installed on its own, but it works.
#cpanm --no-wget IPC::System::Simple
cpanm --no-wget RTF::Writer
#cpanm --no-wget JSON
#cpanm --no-wget Data::Dumper
#cpanm --no-wget File::Slurp
#cpanm --no-wget DateTime
#cpanm --no-wget DateTime::TimeZone
curl -fsSL https://raw.githubusercontent.com/connor-lab/singularity-recipes/master/scripts/buildreport.pl -o /usr/local/bin/buildreport.pl
chmod 775 /usr/local/bin/buildreport.pl
curl -fsSL https://raw.githubusercontent.com/connor-lab/singularity-recipes/master/scripts/phw.jpg -o /usr/local/bin/phw.jpg
%environment
export TZ=Europe/London
%runscript
exec sierrapy "$@"
%labels
Maintainer m-bull
Version sierrapy-latest