Mercurial > hg > sif
annotate cc.def @ 6:c0aed2a91657 default tip
fix typo
author | Henry S Thompson <ht@inf.ed.ac.uk> |
---|---|
date | Fri, 16 Aug 2024 17:36:52 +0100 |
parents | fe8bc9fdba26 |
children |
rev | line source |
---|---|
0 | 1 Bootstrap: docker |
2 From: debian:bullseye | |
3 | |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
4 %files |
4
8bbade4dc167
version from 2024-02-22, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
3
diff
changeset
|
5 /usr/local/bin/stats /usr/local/bin |
8bbade4dc167
version from 2024-02-22, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
3
diff
changeset
|
6 /etc/krb5.conf /etc |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
7 |
0 | 8 %post |
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
9 sed 's/PS1/PSone/' -i .singularity.d/env/99-base.sh |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
10 |
0 | 11 sed '2s/main/main contrib non-free/' -i /etc/apt/sources.list |
12 apt-get -y update | |
13 apt-get -y install locales | |
14 sed '/en_GB.UTF/s/# //;/en_US.UTF/s/# //' -i /etc/locale.gen | |
15 locale-gen | |
16 apt-get -y install apt-utils python3 python3-pip isal less git ack procps psmisc | |
3
9376bcef72f5
version from 2023-11-26, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
2
diff
changeset
|
17 apt-get -y install man-db gdb emacs sqlite3 curl unzip imagemagick file rsync |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
18 apt-get -y install moreutils mercurial qpdf xsel xclip tmux xfce4-terminal |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
19 apt-get -y install default-jdk nano jq r-base |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
20 apt-get -y install libcld2-0 libcld2-dev |
3
9376bcef72f5
version from 2023-11-26, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
2
diff
changeset
|
21 apt-get -y install libxmu-dev libxft-dev libxaw7-dev libgdbm-dev |
9376bcef72f5
version from 2023-11-26, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
2
diff
changeset
|
22 apt-get -y install libgdbm-compat-dev libgmp-dev libssl-dev xbitmaps |
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
23 # do this after the above in order to |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
24 # hide the moreutils version of parallel as moreutils.parallel |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
25 apt-get -y install parallel |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
26 # Allow access to cirrus modules |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
27 apt-get -y install environment-modules |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
28 echo 'module() { eval `/usr/bin/modulecmd bash $*`; }' >> /etc/bashrc |
0 | 29 |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
30 apt-get -y install python3-tk |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
31 pip3 install isal stopit cffi |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
32 # not clear how to make these visible to anaconda/python module |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
33 |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
34 echo "install.packages(c('txtplot','ggplot2'))" | R BATCH --no-save |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
35 |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
36 CFLAGS='-Wno-narrowing' pip3 install cld2-cffi |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
37 # Below not needed if we get anaconda/python3 working... |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
38 # Most are now in ~hst/.local/lib/python3.9/site-labs/ |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
39 # pip3 install six regex chardet urllib3 cryptography |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
40 # pip3 install scipy matplotlib statsmodels |
0 | 41 |
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
42 cd /usr/local/src |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
43 |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
44 curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
45 unzip awscliv2.zip |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
46 ./aws/install |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
47 |
1
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
48 git clone https://github.com/htInEdin/pdfminer.six.git |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
49 git clone https://github.com/htInEdin/pdfx.git |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
50 cd pdfminer.six |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
51 git checkout preferLoggingToWarning |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
52 cd ../pdfx |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
53 git checkout tidy_up_link_extraction |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
54 cd /usr/local/lib/python3.9/dist-packages/ |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
55 ln -s /usr/local/src/pdfx/pdfx . |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
56 ln -s /usr/local/src/pdfminer.six/pdfminer . |
19b134ea79c8
cctest version from 2022-06-29
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
0
diff
changeset
|
57 |
0 | 58 sed '8i\ |
59 if [ "$WSHARED" ]\ | |
60 then\ | |
61 PATH="$WSHARED/bin:$PATH"\ | |
62 fi\ | |
63 ' -i /etc/profile | |
64 | |
65 # REMEMBER to check cc/etc/profile has $WSHARED/bin in front of PATH | |
66 | |
67 %environment | |
68 export WSHARED=/work/dc007/dc007/shared | |
69 export HOME=/work/dc007/dc007/$(whoami) | |
70 export SINGULARITY_SHELL=/usr/bin/bash | |
71 export LESSOPEN="| /usr/bin/lesspipe %s"; | |
72 export LESSCLOSE="/usr/bin/lesspipe %s %s"; | |
3
9376bcef72f5
version from 2023-11-26, never built?
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
2
diff
changeset
|
73 export SS='$SING' |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
74 export SING=sing |
6 | 75 export PS1='\[\033[1m\]$SS\[\033[0m\]<\!>: ' |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
76 if [ -f "$HOME/.singrc" ] |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
77 then |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
78 . "$HOME/.singrc" |
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
79 fi |
0 | 80 |
81 %runscript | |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
82 #!/bin/bash |
0 | 83 if [ -f $WSHARED/.bash_extras ] |
84 then | |
85 . $WSHARED/.bash_extras | |
86 fi | |
87 | |
88 cd $HOME | |
89 | |
90 if [ $# -gt 0 ] | |
91 then | |
92 exec "$@" | |
93 else | |
2
400a79fbe694
cc version from 2023-08-05
Henry S Thompson <ht@inf.ed.ac.uk>
parents:
1
diff
changeset
|
94 exec /bin/bash --login |
0 | 95 fi |